Button
Button
Description
Defines a single button that can be utilized to call a function as well as close the parent dialog
Keys
- Text – Text to display on the button
- IsCloseDialogWhenClick – Boolean to decide whether the dialog should be closed when the button is fired – Default is true if excluded
- CallbackFunc – The Lua function to call when the button is clicked
Return Value
If the dialog will be closed, the value for the key of ClickedButtonID will be this button’s ControlID
Example
data = { ControlID="myButton", ControlType="Button", Text="Create Arc", IsCloseDialogWhenClick=false, CallbackFunc=myFunction }