How to dispatch a triggered event from a custom item renderer
A custom item renderer should dispatch
Event.TRIGGERED when it is tapped or clicked, similar to a
TapToTrigger class, it's easy to dispatch
Event.TRIGGERED on tap or click:
That's it! The
TouchEvent.TOUCH listeners will be added automatically, and your item renderer will dispatch
Event.TRIGGERED like a button.
You should also learn how to use
TapToSelect to change
isSelected and dispatch
Event.CHANGE when tapped or clicked.