I have read https://wisej.com/docs/html/Events.htm but I can not trigger javascript events.
I have a listview that allows HTML and I want to trigger a javascript event from <a> tag.
Hello Sebastian,
This is exactly the scenario for which we added the Role property. See attached samples and few points below:
The solution that is available with Wisej is a lot simpler (attached). give a role attribute to the tag (to any tag or even multiple tags within the same cell) and handle ItemClick. The arguments will have the value of the role string in the Role property.
Best,
Luca
myLV.Subitems.add("<a href='javascript: this.fireEvent(""labelClicked"",""4"");'> Item 4 </a>")
I want fire an event when I click on the HTML link that is inside a subitem of the listview
Please attach a small sample and description of what you need to do: what event, where are you sending it to, who’d handling the event, …
Thanks,
Luca