class documentation
class ActionButton(BaseModel): (source)
The data required for creating an actionButton in Vue.
Currently this cannot be used to submitData, or to submitOnEvent.
| Class Variable | action |
The name of the action to be triggered. |
| Class Variable | button |
Specify whether the button is styled as a primary button. |
| Class Variable | can |
Specify whether the action can be terminated. |
| Class Variable | confirmation |
The message for the confirmation modal. |
| Class Variable | disabled |
Specify whether the button is disabled. |
| Class Variable | element |
Undocumented |
| Class Variable | modal |
Specify whether to show a progress modal. |
| Class Variable | notify |
Specify whether to a notification on successful completion. |
| Class Variable | poll |
The interval for polling in seconds. |
| Class Variable | requires |
Specify whether a confirmation modal is needed. |
| Class Variable | response |
Set True to use the action response as the success message. |
| Class Variable | stream |
Specify whether to show a mini stream preview in the progress modal. |
| Class Variable | submit |
The label for the action button. |
| Class Variable | success |
The message to show on successful completion. |
| Class Variable | thing |
The Thing "path" for the Thing instance. |
| Class Variable | update |
If True the action button emits a requestUpdate signal when completed. |
Set True to use the action response as the success message.
If success_message is set, this is never used.
Specify whether to show a mini stream preview in the progress modal.
This option only has an effect if modal_progress is True.
If modal_progress is False, no modal (and therefore no stream preview) is shown.