Thursday, August 29, 2019

checkboxes - nested checkbox behavior check/uncheck


I have a hierarchical category tree and checkboxes next to each item that allow to enable/disable the correpsonding category.


enter image description here


I assume it is an expected default behavior that all subategories of natural environment become checked when I check the natural environment category. But what about unchecking it again: Should this automatically uncheck all subcategories or restore the previous state in case some were checked already? Furthermore... Should unchecking one of the subcategories cause the parent category to become unchecked?



Answer



This is a common pattern for users.





  • If a subset of child items are selected, the parent item indicates partial selection.




  • If the parent item is clicked while in the "partial" state, all child items will also be selected.




  • If the parent is deselected, all child items will be deselected.





Clicking a parent item to select all children


No comments:

Post a Comment

technique - How credible is wikipedia?

I understand that this question relates more to wikipedia than it does writing but... If I was going to use wikipedia for a source for a res...