eyzy-tree
  • Introduction
  • Component props
  • Customization
  • Guides
    • Async content
    • Accordion
    • Redux integration
  • Examples
    • Custom Theme
    • JSON view
  • API
    • Basic
    • Tree API
    • Node API
    • Query
    • Useful hooks
Powered by GitBook
On this page
  1. API

Useful hooks

Multiple selection

Impossible to please everyone... pass a parameter to call someone and select these nodes at the same time. The tree doesn't has such parameter.

this.api.findAll(/Class (A|B)/).select(true)

// to select multiple nodes (new set)
this.api.unselectAll()
this.api.findAll(/Class (A|B)/).select(true)

// one more way (be careful with this example :) )
while(this.api.select({text: /^Class/, selected: false}, true))) { }

PreviousQuery

Last updated 6 years ago