Adds a button. This is useful for creating an optional answer.
If you want to add multiple buttons, use field.button-radio-group.
The button size depends on the length of the text.
View exampleName | Type | Description |
---|---|---|
type * | "field.button-radio" | Set component type. |
data * | writable | Data with values that will be processed or changed. Learn more about working with data. |
label | string | Label above the component. |
disabled | boolean | This property prevents clicking the button. If the value is true , the button is not active (a Toloker will not be able to click it). |
hint | string | Hint text. |
rtl | object | In some languages, like Arabic or Hebrew, text is written from right to left. Use this property to set up the correct display mode for the component. View example Learn more about RTL languages. |
rtl.mode | string | Display mode:
|
validation | condition | Validation based on condition. |
valueToSet | string | The value of the output data when the button is clicked. |
Last updated: May 26, 2023