Browse Source

Merge branch 'dev' of https://github.com/abpframework/abp into dev

pull/6691/head
Halil İbrahim Kalkan 5 years ago
parent
commit
7879998c8e
  1. 25
      docs/en/UI/Blazor/Components/SubmitButton.md

25
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
<SubmitButton Clicked="@YourSaveOperation" />
```
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
<SubmitButton Clicked="@YourSaveOperation" SaveResourceKey="YourSaveName" />
```
### With custom content
```html
<SubmitButton Clicked="@YourSaveOperation">
@L["Save"]
</SubmitButton>
```
Loading…
Cancel
Save