Overview
The createGroup composable extendscreateSelection to support batch selection operations and tri-state (mixed/indeterminate) support. Perfect for checkbox trees, multi-select dropdowns, and bulk operations.
Signature
Configuration options (inherits from SelectionOptions)
Group selection instance with batch operations
Usage
Batch Selection
Tri-State (Mixed/Indeterminate)
Select All / Unselect All
Toggle All
Initial Indeterminate State
Ticket-Level Tri-State Methods
Checkbox Tree Example
Computed State
Batch Operations Performance
Type Safety
Mixed State Behavior
select(id)clears mixed state before selectingmix(id)clears selected state before setting mixedtoggle(id)on mixed item selects it (resolves indeterminate positively)- Mixed state works on disabled items (it’s computed state, not user action)
- Selecting/unselecting clears any mixed state on affected items
Context Pattern
See Also
- createSelection - Base selection system
- createSingle - Single-selection variant
- createNested - Hierarchical tree with cascading selection