Hello, inside my Pager's onPageChanged I need access to the data/payload of the currently displayed element in order to decide whether to execute a certain command or not. Currently, this is not working, null is returned if I try:
... "layouts": { "CustomPager": { "parameters": [ { "name": "data", "default": [] }, { "name": "direction", "default": "vertical" } ], "item": { "width": "100%", "height": "100%", "type": "Frame", "items": { "type": "Pager", "data": "${data}", "width": "100%", "height": "100%", "navigation": "normal", "pageDirection": "${direction}", "id": "myPager", "onPageChanged":[ { "type": "SpeakItem", "sequencer": "onPageChangedSpeaking", "componentId": "invisbleSpeechOuputText${event.source.value}" }, { "type": "SendEvent", "delay": "${data.delay}", "arguments": [ "page:${data.number}" ] } ], ...
I do not simply need the current page index (I know that you can get it with event.source.value).
Do you know any solution to this problem or any workaround / suggestions to solve it?