From 2a81a493118429d436ca77872265503ef4145b63 Mon Sep 17 00:00:00 2001 From: Mladen Macanovic Date: Thu, 17 Dec 2020 08:07:35 +0100 Subject: [PATCH] Documentation for submit button --- docs/en/UI/Blazor/Components/SubmitButton.md | 25 ++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 docs/en/UI/Blazor/Components/SubmitButton.md diff --git a/docs/en/UI/Blazor/Components/SubmitButton.md b/docs/en/UI/Blazor/Components/SubmitButton.md new file mode 100644 index 0000000000..1caec28c81 --- /dev/null +++ b/docs/en/UI/Blazor/Components/SubmitButton.md @@ -0,0 +1,25 @@ +# Blazor UI: SubmitButton component + +`SubmitButton` is a simple wrapper around `Button` component. It is used to be placed inside of page Form or Modal dialogs where it can response to user actions and to be activated as a default button by pressing an ENTER key. Once clicked it will go into the `disabled` state and also it will show a small loading indicator until clicked event is finished. + +## Quick Example + +```html + +``` + +Notice that we didn't specify any text, like `Save Changes`. This is because `SubmitButton` will by default pull text from the localization. If you want to change that you either specify a localization key or you can add custom content. + +### With localization key + +```html + +``` + +### With custom content + +```html + + @L["Save"] + +``` \ No newline at end of file