Skip to content

Commit

Permalink
add colors to actions
Browse files Browse the repository at this point in the history
Co-authored-by: Luke Stanley <[email protected]>
  • Loading branch information
gsambrotta and lukestanley authored Nov 12, 2024
1 parent bae6ff1 commit ed9a951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/workflow/blocks/actions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Supported properties

- **label** (string) - the text for the button label
- **id** (string) - the unique identifier for the button
- **color** (string) - passed as the “color” attribute to the material button. Use one of the supportedMaterial color values, such as “primary”, “warn”, “accent”. Leave as “default” to use the default button styling for a plain button.
- **color** (string) - passed as the “color” attribute to the material button. Use one of the supported Material colour values, such as “primary”, “warn”, “accent”. Leave as “default” to use the default button styling for a plain button.
- **enabledGetter** (string) - A value from the state or context. Based on this value, it generates an "enabled" property on the button. The button will be shown as disabled (greyed out) or enabled accordingly. The default value of this property is `true`. After the block is loaded, it will automatically add a property to the block json: `"enabled": true`. If `enabledGetter` is set to `false` the automatic property will be then shown as `"enabled": false`.
- **valueGetters** (string) - A value that will be pass as context to whichever action is being executed. This is a JMESPath mapping.
- **blocks** (array) - the list of workflow items to run when this button is pressed.
Expand Down

0 comments on commit ed9a951

Please sign in to comment.