Skip to content

New option to add default listener #1

@MrLeninstalock

Description

@MrLeninstalock

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions