Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA checkbox tree of org units with a switch that decides whether choosing a unit includes its sub-units. Use this when a report or list can be limited to units, and sometimes only to the unit itself.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
Use it for reports, dashboards and exports filtered by organisation unit or region.
Do not use it when the choice always includes sub-units (use checkbox-tree with cascade) or the units are flat.
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Default | Description |
|---|---|---|---|
units | TreeNode[] | - | The org units. |
onChange | (unitIds) => void | - | The units that apply, with sub-units when the switch is on. |
role="switch" with a visible label, and changing it re-reports the filter.The pattern ships with a Testing Library test (org-unit-checkbox-filter.test.tsx) that covers the expansion rule, both switch states and independent ticking.