Constructor
new module:react-aiot/components/Toolbar(props)
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props |
object | Properties
Properties
|
Extends
- React.Component
props.activeButton
is
set all other ToolbarButton
`s are disabled expect the props.backButton
- then the user clicks on the cancel button (props.backButton.label
)
and the onCancel
callback of the ToolbarButton gets executed.
If the ToolbarButton has a valid onSave
callback the toolbar has an additional save button (props.backButton.save
)
- then the user clicks on the save button and the callback gets executed.
Name | Type | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props |
object | Properties
Properties
|