Timeline for How do I add and remove classes using event listeners in Lit-HTML?
Current License: CC BY-SA 4.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 23, 2019 at 17:40 | comment | added | Sumomo |
Thanks for the great tip regarding classList , I copied from old code and ender up with cruft, well spotted! I am really looking for the syntax to set the event listeners to make these changes to the class within the lit-html template. Your example code would work in part, but misses the vital syntax to integrate with the event listening :(
|
|
Jan 23, 2019 at 17:07 | history | answered | Daniel | CC BY-SA 4.0 |