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

Treeview, how to get checked item? #8

Open
akayueh opened this issue Nov 11, 2020 · 1 comment
Open

Treeview, how to get checked item? #8

akayueh opened this issue Nov 11, 2020 · 1 comment

Comments

@akayueh
Copy link

akayueh commented Nov 11, 2020

Hi Serhill

Quick question, there doesn't seem to be a clear indication on the DOM for me to find which node has been check when using the checkbox.

for example:

Uncheck
image
image

Checked:
image
image

Is there something I missed? or is there a javascript function we can call to get all the nodes that have been checked?

@ncxn
Copy link

ncxn commented Nov 12, 2020

hi, try event data-on-check-click="TreeCheckClick"

function TreeCheckClick(state, check, node, tree){
console.log(node);
}

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

2 participants