Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New option to add default listener #1

Open
MrLeninstalock opened this issue Jun 7, 2018 · 0 comments
Open

New option to add default listener #1

MrLeninstalock opened this issue Jun 7, 2018 · 0 comments

Comments

@MrLeninstalock
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant