# Opening and closing nodes demo

You may also want to read the documentation on open_branch, close_branch, open_all and close_all. To initially open some nodes when the tree loads - take a look at the opened config option. When opening/closing the beforeopen, beforeclose, onopen, onclose, onopen_all and onclose_all callbacks are triggered.

- Root node 1
  - Child node 1
    - Child node 1.1
    - Child node 1.2
  - Child node 2
    - Child node 2.1
    - Child node 2.2
  - Some other child node with longer text
- Root node 2
  - Child node
  - Child node