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
Expand and collapse some parent nodes in the tree
Check some parent nodes and their children
Click the buttons to see the different results
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
Batch Processing: Process all selected categories that are currently collapsed
Data Export: Export only the collapsed parent selections
UI State Management: Track which collapsed categories are selected
Selective Operations: Perform actions only on collapsed parent nodes
Memory Management: Work with selected items that don't have their children loaded