Jmol.setCheckboxGroup() involves defining groups of leader+follower checkboxes.
Plan: to implement a visual indicator of partial selection, i.e the leader is "partially checked" when some of its followers are checked, others not.
There is now support for this via the HTML5 "indeterminate" property.
See e.g.
https://css-tricks.com/indeterminate-checkboxes/
http://jsfiddle.net/5tpXc/
I have the solution, in js/JSmolControls.js
but yet I don't know where in the source it should go
It only works one level deep (i.e. for the parent leader but not for the grandparent leader checkbox).
Note the visual aspect of the 'indeterminate' checkbox is set by the browser GUI (and quite differently style among browsers).
I'm working on the fix that will recurse to upper-level leaders and make them indeterminate if needed. I think I've got it solved. More soon...
This is working now. See http://biomodel.uah.es/JSmol/test_cbGroup.htm
It still needs to be implemented in the source of js/JSmolControls.js for a future release.
Last edit: Angel Herraez 2015-11-13