Settings API - Actions schema table
Actions (builtin:ua.screen-actions
)
You can define here actions for multiple screen elements.
Schema ID | Schema groups | Scope |
---|---|---|
builtin:ua.screen-actions |
| ua-screen |
Parameters
Property | Label | Type | Description | Required |
---|---|---|---|---|
actionScope | Scope | enum | Defines in which card type this action is shown. If you select a dynamic card (such as chart group or entity list), specific cards can be referred via the card key as well. | required |
key | Card key | text | Unique key of the card, which is used to reference desired card configuration. To add this actions in every card of this type, leave it empty. | optional |
actionLocation | Action location | enum | Defines where on the card the action is displayed.
| required |
mainAction | Main actions | boolean | If true, buttons will be displayed outside of actions menu | optional |
actions | List of actions | list | Define all actions and their parameters you want to show on this element. | required |
Request body objects
The Visualization
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
displayName | Display name | text | Override/set action button display name. It will be deduced from action definition if not set. | optional |
color | Color | enum | Override/set action button theme color. | optional |
icon | Icon | text | Include the barista icon action button. | optional |
iconOnly | Show only icon | boolean | If selected, only icon will be rendered in the action button. Display name will be moved to the tooltip on hover. | optional |
The Action
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
actionExpression | Action expression | text | The definition of an action Single action expression. The format is: actionName|key=param|key2=param2 | required |
visualization | Button visualization | Visualization | If applicable, you can define visualization properties of action button | optional |
conditions | List of conditions | set | All conditions from the list need to be fulfilled for the action to be visible | required |