qooxdoo / qooxdoo

qooxdoo - Universal JavaScript Framework
http://qooxdoo.org
Other
764 stars 259 forks source link

add cycle behaviour to ToggleButton #10655

Closed p9malino26 closed 3 months ago

p9malino26 commented 3 months ago

This PR gives the programmer the ability to control the behaviour of tristate checkboxes when they are clicked. Currently, they only toggle between the enabled/disabled state, but it is impossible for the end user to enter the undetermined state.

This adds a new property to ToggleButton, clickBehaviour, which can either be set to "toggle" (reflects current behaviour), or "cycle" (cycle between disabled, undetermined, enabled).