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

Want a "selectionType: 'none' " to be able to only use checkboxes. #727

Open
Tarpon907 opened this issue Nov 8, 2023 · 0 comments
Open

Comments

@Tarpon907
Copy link

I am using a tree with checkboxes, and I only want checkboxes, not selection of nodes.

I've edited my local copy of the giglio.js to support this functionality. It's a 2 line change.

In gj.tree.methods.displayClickHandler, wrap the call to "select" in a conditional:

if ($tree.data('selectionType') !== 'none') {
	gj.tree.methods.select($tree, $node, cascade);
}

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