sebastianha / angular-bootstrap-checkbox

A checkbox for AngularJS styled to fit the Twitter Bootstrap standard design
MIT License
148 stars 66 forks source link

Indeterminate / Tri-State / Three-State #3

Closed sroe closed 8 years ago

sroe commented 10 years ago

Hi, your Checkbox lacks support of the indeterminate state as it is part of the future standard html5 see http://www.w3.org/html/wg/drafts/html/master/forms.html#checkbox-state-(type=checkbox) Just as a hint :wink: And thank you for sharing your work! Regards

sebastianha commented 10 years ago

Hi,

thank you very much for the hint, as soon I will have some spare time, I will look into it!

achadee commented 8 years ago

+1 to this! keep up the good work:)

sebastianha commented 8 years ago

Finally I implemented this, see release 0.5.0 Let me now if this works for you!

michahell commented 8 years ago

Hmm, we are having trouble getting the indeterminate state to work, could you maybe include a small example on the readme ? for some reason, we cannot change the checkbox model value to any value we specify the indeterminate state to be, only true or false are somehow allowed. How does that work anyway ?

sebastianha commented 8 years ago

Did you check the index.html? There is an example for the tri-stage box. When you set it to "undefined" it should work.