Controls (Triggers)
Karl Sjöstrand avatar
Written by Karl Sjöstrand
Updated over a week ago

In the Control group of the Triggers sections, there are blocks that initiate the execution of a blockchain.

Control action blocks

When [Object name] emits [Event type] do

Initiate a blockchain execution when a button is clicked or when the mouse cursor hovers over it.

Configuration

Inputs

Description

Object name

Select a button from the workbook

Event type

  • On click - when the button is clicked the action block is executed

  • On hover - when the button is hovered with the mouse cursor the action block is executed

Examples

Toggle visibility of an object when button is clicked

Dashboards can sometimes require additional guidance for users who haven't used the application before. One way to assist these users is by adding contextual information and explanations of KPIs directly on the dashboard. Incorporating a button to show and hide this information can be an effective method to enhance user experience.

Clicking on the button with name Show/hide Information Button will show the object/group with name Information if it's hidden and hide it if it's visible. This is done with the use of the not condition operator block that will change a True to False and False to True.

Clear filter in field when button is clicked

Enabling users to quickly clear specific fields can enhance the user experience in guided analytics applications.

Clicking on the button with name Clear Customer ID Filters Button will clear the filters in the field Customer ID in the table Order.

Create image hover effect when button is hovered

When crafting pixel-perfect data storytelling workbooks with Astrato, enhancing user interaction responsiveness is crucial. A compelling way to do this is by displaying different images when a button is hovered over.

To implement this, create two buttons:

  1. Hover On Button: This will display an image when hovered over.

  2. Hover Off Button: This will revert to the original image when not hovered over. Place the Hover On Button directly over the Hover Off Button, but make it slightly smaller for a seamless transition.

Set up two actions:

  • On Hover Action: Show the hover image when the Hover On Button is hovered over.

  • Off Hover Action: Hide the hover image when the Hover Off Button detects a hover.

This setup ensures a dynamic and responsive user experience in your Astrato workbooks.

Did this answer your question?