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

tree.on('checkboxChange' #723

Open
jstTrt opened this issue Apr 27, 2023 · 0 comments
Open

tree.on('checkboxChange' #723

jstTrt opened this issue Apr 27, 2023 · 0 comments

Comments

@jstTrt
Copy link

jstTrt commented Apr 27, 2023

var tree = $('.treeDocuments').tree({
primaryKey: 'id',
uiLibrary: 'bootstrap5',
dataSource: this.props.terms,
cascadeCheck: false,
checkboxes: true,
checkedField: 'selected',
textField: 'text'
});

this.tree.on('checkboxChange', (e: any, node: any, record: ISoapTaxonomyResponse, state: string) => {
tree.uncheckAll();
tree.check(node);
});

In first checkbox clicked it works. and the second node clicked, unchekAll is missing.

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