You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, nice job for this module, really great !
Actually I'm using it in my project, and that's pretty nice. BUT when converting my JSON to table, when creatings my <li> I need to make them clickable.
By the moment, I'm just taking all my <li> tag, decomposing them and adding the listener :
li.children[ind].outerHTML = "<li onClick = select_node(this)>"+li.children[ind].textContent+"</li>" // Adding the listener
I can't use jQuery since they don't get an ID.
I thought it would be cool to be able to add a default listener to the <li> (or to any tag) when converting to a table, cause actually, the way I'm doing it is quite dirty !
Baptiste
The text was updated successfully, but these errors were encountered:
Hi guys,
First of all, nice job for this module, really great !
Actually I'm using it in my project, and that's pretty nice. BUT when converting my JSON to table, when creatings my
<li>
I need to make them clickable.By the moment, I'm just taking all my
<li>
tag, decomposing them and adding the listener :li.children[ind].outerHTML = "<li onClick = select_node(this)>"+li.children[ind].textContent+"</li>" // Adding the listener
I can't use jQuery since they don't get an ID.
I thought it would be cool to be able to add a default listener to the
<li>
(or to any tag) when converting to a table, cause actually, the way I'm doing it is quite dirty !Baptiste
The text was updated successfully, but these errors were encountered: