checkboxes.js
checkboxes.js copied to clipboard
Feature: Hierarchy
Would be useful to add a "hierarchy" super power to checkboxes? Suppose we have the following HTML:
The "hierarchy" super power will enhance the hierarchy context of checkboxes with the following behaviour:
- Checking a checkbox will...
- ...check its parent (this will be recursive until no more parent is found in the hierarchy).
- ...check all of its children.
- Unchecking a checkbox will...
- ...uncheck its parent only if all siblings of that checkbox are unchecked (this will be recursive until no more parent is found in the hierarchy).
- ...uncheck all of its children.
Any suggestion, or comments?