Button widget
The button widget enables users to make a selection and send a response back to the agent.
Example
Properties
Property |
Description |
Default value |
Data type |
---|---|---|---|
|
Button action when user clicks, which is one of: |
submit
|
enum |
|
Position of the inline style button relative to the parent container, which is one of: |
center
|
enum |
|
See Context properties. |
string (JSON) |
|
|
Name of event that fires when a user clicks the button, in the format: |
string (JSON) |
|
|
Unique identifier of this widget. |
string |
|
|
Indicates whether the engine sets focus to this widget. Default is If set to |
false
|
Boolean |
|
Button size, which is either: |
small
|
enum |
|
Button style, which is one of:
|
outline- block
|
enum |
|
Text displayed on the button. |
string |
|
type
|
Rich-media type, which is always Button . |
string
|
Context properties
Context property |
Description |
Data type |
---|---|---|
|
Button border color as a hex color code. |
string (hex color code) |
|
Button border radius. |
number |
|
Button border width. |
number |
|
Accepts either:
|
either enum or string (JSON with hex color code) |
|
Text color as a hex color code. |
string (hex color code) |