Sets the value from payload
in the data in the data
property.
Learn more about working with data.
For example, let's say you want to add shortcuts for the field.radio-group option. You need the shortcut to perform the same action as the selected option, which is to set the specified value in the data. To set this action, use action.set
.
As another example, you can use this component to count the number of clicks on an option and write the value in the output data. When the page is refreshed, set the value to 0.
View exampleName | Type | Description |
---|---|---|
type * | "action.set" | Set component type. |
data | writable | Data with values that will be processed or changed. Learn more about working with data. |
payload | any | The value to write to the data. |