almende / vis

⚠️ This project is not maintained anymore! Please go to https://github.com/visjs
7.85k stars 1.48k forks source link

Groups and filter #4171

Closed fredlavoine closed 5 years ago

fredlavoine commented 5 years ago

Hello, Is-it possible to do a data filter with checkbox ? groups Thank you

Loxxe commented 5 years ago

Yes you can hide/show nodes if thats what you mean. DataSet.update({id: nodeId, hidden: true/false}); //or an array of objects And you can get the nodeIds of a specific group with: DataSet.get({filter: function(item) { return item.group === groupName }})