JSON representation of an Action
Members
# component Optional
Action component. When set to false action will be invoked immediately after clicking it, to put in another words: there wont be an action view
# containerWidth
containerWidth passed from the action setup.
# custom
Any custom options passed from the Action configuration.
- New:
- in version 3.3
View Source admin-bro/src/frontend/interfaces/action/action-json.interface.ts, line 93
# guard Optional
Guarding message which should be presented in alert()
after clicking the action button
# hasHandler
Indicates if action has action handler defined
- New:
- in version 3.3
View Source admin-bro/src/frontend/interfaces/action/action-json.interface.ts, line 87
# parent
If action is nested
- New:
- in version 3.3
View Source admin-bro/src/frontend/interfaces/action/action-json.interface.ts, line 81
# variant
action variant
- New:
- in version 3.3
View Source admin-bro/src/frontend/interfaces/action/action-json.interface.ts, line 75
Type Definitions
# ParsedLayoutElement
It is generated from Array.<LayoutElement> passed in Action#layout
Properties:
Name | Type | Description |
---|---|---|
properties |
Array.<string> | List of paths to properties which should be rendered by given element |
props |
PropsWithChildren.<any> | props passed to React component which wraps elements |
layoutElements |
Array.<ParsedLayoutElement> | Nested layout elements |
component |
string | Component which should be used as a wrapper |