Starts in:
3 DAYS
11 HRS
57 MIN
44 SEC
Starts in:
3 D
11 H
57 M
44 S

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

<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

<SubmitButton Clicked="@YourSaveOperation" SaveResourceKey="YourSaveName" />

With custom content

<SubmitButton Clicked="@YourSaveOperation">
    @L["Save"]
</SubmitButton>

Contributors


Last updated: October 04, 2024 Edit this page on GitHub

Was this page helpful?

Please make a selection.

To help us improve, please share your reason for the negative feedback in the field below.

Please enter a note.

Thank you for your valuable feedback!

Please note that although we cannot respond to feedback, our team will use your comments to improve the experience.

In this document
Community Talks

What’s New with .NET 9 & ABP 9?

21 Nov, 17:00
Online
Register Now
Mastering ABP Framework Book
Mastering ABP Framework

This book will help you gain a complete understanding of the framework and modern web application development techniques.

Learn More