StableEvent
On click
Overview
Fires when the user clicks or taps the component.
Purpose
The most common event: buttons, links, icons, images, cards and containers all use it to navigate, save, open modals or change state.
Inputs
- Supported by: Button, Icon Button, Link, Text, Icon, Image, Container, Card, KPI, Cards, Calendar and Scheduler (empty day cells), charts.
Configuration
- Add the event in the component's Actions tab and list the actions in order. A Button inside a Form with Submits the surrounding form enabled triggers the form's On submit instead.
Outputs
- Usually no event data. Exceptions: Cards pass
Event › recordandEvent › id; Calendar / Scheduler passEvent › date(the clicked day,YYYY-MM-DD); charts passEvent › category,Event › valueandEvent › series. - Inside a list, table or detail view, Current record is the record the clicked component belongs to.
Example
Open the customer from a card
Example
Card › On click:
1. Go to page Customer detail
Page parameters: id = Current record › idErrors
- An error in any action stops the list and shows a message.
Limitations
- Containers and cards with an On click event become clickable as a whole; nested buttons still handle their own clicks.