Button¶
The Button widget triggers actions when clicked.
XML Fields¶
XPathprovides the data context available to the button label and script. It does not itself store a button value.Label/Contentis the visible label and can use a data template.HandleScript/Contentis the script run after successful validation.ValidationGrouplimits validation to rules in that group. If validation fails, the click script is not run.Iconselects the displayed icon andHtmlClasssupplies an optional presentation class.Hintsgives help text;Rulescontrols conditional visibility or editability.
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$Xmland supportsasync/awaitsyntax.
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 theHandleScriptis not executed.
Example¶
1 2 3 4 5 6 7 8 9 10 | |