|
In previous releases of ThingWorx, the Confirmation dialog was part of the Button and Logout widgets. This function merges the functionality into a set of properties that you can bind to any widget. To create the same functionality, bind the Clicked event of a Button or a Logout widget to the function.
|
Option | Description |
---|---|
Description | A description for the function |
Title Text | The title of the confirmation dialog |
Message Text | The message to display in the confirmation dialog |
Dialog Width | Specifies a fixed width for the dialog. Set to 600 by default |
Dialog Height | Specifies a fixed height for the dialog. Set to 260 by default |
Cancel Button Label | The label for the Cancel button |
Cancel Button Icon | Specifies the icon for the cancel button. |
Cancel Button Tooltip | The text label for the cancel button tooltip |
Cancel Button Tooltip Icon | Specifies the icon for tooltip of the cancel button |
Action Button Position | The position of the action button in the dialog. You can set it to Left or Right |
Action Button Label | The text label for the action button |
Action Button Icon | Specifies the icon for the action button |
Action Button Tooltip | The text label for the action button tooltip |
Action Button Tooltip Icon | Specifies the icon for the action button tooltip |
Action Button Type | The action button type. You can set it to Primary or Danger |
Add a Second Action Button | Displays a second action button |
Second Button Label | The text label for the second action button |
Second Button Icon | Specifies the icon for the second action button |
Second Button Tooltip | The text label for the tooltip of the second action button |
Second Button Tooltip Icon | Specifies the icon for tooltip of the second action button |
Close Button | Displays a close button in the confirmation dialog |
Property | Description | Base Type | Default Value | Bindable? (Y/N) | Localizable? (Y/N) |
---|---|---|---|---|---|
TitleText | Sets the title of the dialog. | STRING | n/a | Y | Y |
MessageText | Sets the text message for the dialog. | STRING | n/a | Y | Y |
DialogWidth | Sets a fixed width for the dialog. | NUMBER | 600 | Y | N |
DialogHeight | Sets a fixed height for the dialog. | NUMBER | 260 | Y | N |
OpenConfirmation | A service that opens the confirmation dialog. | n/a | n/a | Y | N |
ActionClick | An event that triggers when the primary action button is clicked. | n/a | n/a | Y | N |
SecondActionClick | An event that triggers when the second action button is clicked. | n/a | n/a | Y | N |
CancelClick | An event that triggers when the cancel button is clicked. | n/a | n/a | Y | N |