Hi David,
I encountered a similar problem where I needed some html to trigger a function in Servoy and pass it specific data of the click into that function.
Turns out that the bootstrap label (not the data-label!) can handle html AND will trigger the onAction event.
Through the attribute 'data-target' you can pass your data, the click will find the nearest data-target attribute.
Be careful, the data can be empty, so make sure the onAction method will handle that situation.
- Code: Select all
<div data-target="myData">text to be displayed</div>
Hope this helps