Define event mappings for Work scheduler
Add event mappings required for card interactions and for the card properties transformation to the page configurations in Work scheduler.
Before you begin
Role required: admin, workspace_admin, or ui_builder_admin
Procedure
In the Page configuration section, select the Events tab.
Attach the Transform workItem to cardProps to the Page ready event.
In the Page ready menu, select +Add a new event handler.
In the pop-up screen, go the Scripts section and select Transform workItem to cardProps.
Select Add.
Attach the Transform workItem to cardProps to the Page ready event.
In the Page ready menu, select +Add a new event handler.
In the pop-up screen, go the Scripts section and select Transform workItem to cardProps.
Select Add.
Attach the Transform workItem to cardProps to the Page property changed event.
In the Page property changed menu, select +Add a new event handler.
In the pop-up screen, go the Scripts section and select Transform workItem to cardProps.
Select Add.
Attach the CARD_CLICKED and CARD_CLICKED (Work item cards) events.
The Create an event popup screen displays.
| To Attach | Do this |
|---|---|
| The CARD_CLICKED event |
|
| The CARD_ACTION_CLICKED (Work item cards) event |
|
Here's a demo on how to define event mappings for the Work scheduler.
What to do next
Configure container components for Work scheduler
Parent Topic:Create a Work scheduler card using the Next Experience UI Builder
Related topics