Handler - ValueButton
The ValueButton handler sets static values in data card view mode. The handler works with number, decimal, date, and string static values. When an attribute has no value, this handler shows buttons that can be configured earlier in the metadata section. Clicking a button sets the attribute to a corresponding value and triggers a save on the data card. When an attribute has a value, it is shown instead of buttons. When a viewer has no permission to edit an attribute, buttons are not visible.
A buttons generated with ValueButton handler:

Table 1. Attribute Metadata
| Name | Value | Description |
|---|---|---|
| label_1 | presentation text | Text to be shown on a button, it can be a presentation key text or direct intended text. |
| color_1 | [green | red] | Color for button. |
| value_1 | static value | Static value which will be set when click. |
| icon_1 | [ef-icon-remove-bold | ef-icon-approve] | Specify button's icon. |
If want to have more than one button additional metadata(label_*, color_*, value_*, icon_*) needs to be configured with proper index.
Table of Contents