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 |
- In the Dispatched events section, select +Add.
- In the Event label field, enter CARD_CLICKED.
- From the Target parent event handler menu, select CARD_CLICKED (Work item cards)
- Click Add.
|
| The CARD_ACTION_CLICKED (Work item cards) event |
- In the Dispatched events section, select +Add.
- In the Event label field, enter CARD_ACTION_CLICKED.
- From the Target parent event handler menu, select CARD_ACTION_CLICKED (Work item cards)
- Click Add.
|
Here's a demo on how to define event mappings for the Work scheduler.