How to properly do an "onclick" in custom rendered html? #915
henriknordgren
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using the useful custom button card to generate a calendar of sorts. It is really basic with a html table. When I click on a table cell I want to call a hass.service.... to set an input_number that other cards will trigger on.
The problem is that I cant make the onClick() for the table cells to work. They are simply not clickable. The html renders beautifully, but I cant get the interactivity to work.
If this is not possible, is there another way to go about this? I really need to generate a table (or grid) where each cell is clickable/tapable (like a calendar).
Beta Was this translation helpful? Give feedback.
All reactions