checkboxes.js icon indicating copy to clipboard operation
checkboxes.js copied to clipboard

Feature: Hierarchy

Open rmariuzzo opened this issue 9 years ago • 0 comments

Would be useful to add a "hierarchy" super power to checkboxes? Suppose we have the following HTML:

screen shot 2015-03-09 at 12 29 59 pm

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?

rmariuzzo avatar Mar 09 '15 16:03 rmariuzzo