Button¶
The Button widget triggers actions when clicked.
Properties¶
Label
: Specifies the text displayed on the button. This can be a static string or a data template.HandleScript
: Contains the JavaScript code to execute on click. This script can access client-side scripting objects like$Xml
and supportsasync/await
syntax.
Info
If script execution exceeds 50ms, a loading spinner is displayed until completion.
Icon
: Specifies an icon to display on the button.ValidationGroup
: Specifies the validation group associated with the button. Clicking the button triggers validation only for rules within this group. If any rule fails, the click event is canceled, and theHandleScript
is not executed.
Example¶
1 2 3 4 5 6 7 8 |
|