getClosedChecked Command Demo

This demo showcases the new getClosedChecked command that returns only checked parent nodes that are currently closed (collapsed), excluding their children.

Tree Structure

Command Comparison

getChecked() - All Checked Items

Returns all checked nodes including children

getOpenChecked() - Open Parent Items Only

Returns only checked parent nodes that are currently open

getClosedChecked() - Closed Parent Items Only

Returns only checked parent nodes that are currently closed

Instructions

  1. Expand and collapse some parent nodes in the tree
  2. Check some parent nodes and their children
  3. Click the buttons to see the different results
  4. Notice the differences:
    • getChecked: All checked items (parents + children)
    • getOpenChecked: Only checked parents that are expanded
    • getClosedChecked: Only checked parents that are collapsed

Use Cases for getClosedChecked