Bootstrap event handlers using on:* directive
I'm trying to handle the bootstrap dropdown events using the on:* directive.
I added this to a .d.ts file
But the event names contain dots which does not work in JSX it seems. Is there any way to escape the dots or map the event names used in the JSX to the actual event names?
Something like this would be ideal
Or do i need to wire up these event listeners the vanilla js way using
ref.addEventListener
?Dropdowns
Toggle contextual overlays for displaying lists of links and more with the Bootstrap dropdown plugin.
3 Replies
you should be able to do this
though i'm not entirely sure about
on:*
if that's a compiled attribute then it's a bit harder
yeah nvm that only solves half the problem
This actually worked, thank you!
oh lol what