Button widget can be used to take actions.
Event: On click#
To add an event to a button, click on the widget handle to open the widget properties on the right sidebar. Go to the Events section and click on Add handler.
On Click event is triggered when the button is clicked. Just like any other event on Insight, you can set multiple handlers for on click event.
Check Action Reference docs to get the detailed information about all the Actions.
|Button Text||It can be used to set the label of the button.||Any String value:
|Loading state||Loading state can be used to show a spinner as the button content. Loading state is commonly used with isLoading property of the queries to show a loading status while a query is being run.||Switch the toggle On or click on
|Show on desktop||Toggle on or off to display desktop view.||You can programmatically determing the value by clicking on
|Show on mobile||Toggle on or off to display mobile view.||You can programmatically determing the value by clicking on
|Background color||You can change the background color of the widget by entering the Hex color code or choosing a color of your choice from the color picker.|
|Text color||You can change the color of the Text in button by entering the Hex color code or choosing a color of your choice from the color picker.|
|Visibility||Toggle on or off to control the visibility of the widget. You can programmatically change its value by clicking on the
|Disable||Toggle on to lock the widget. You can programmatically change its value by clicking on the
|Border radius||Use this property to modify the border radius of the button.|
Any property having
Fx button next to its field can be programmatically configured.