creativetimofficial / ct-material-dashboard-pro-angular

68 stars 35 forks source link

Request - Tri-State Checkboxes (status Indeterminate) #209

Open brampeirs opened 6 years ago

brampeirs commented 6 years ago

It would be nice if a checkbox could have a status 'indeterminate'.

See: https://material.angular.io/components/checkbox/examples

Indeterminate schermafbeelding 2018-03-23 om 15 12 06 Unchecked schermafbeelding 2018-03-23 om 15 12 11 Checked schermafbeelding 2018-03-23 om 15 12 15

alexandru-paduraru commented 6 years ago

@brampeirs thank you for the feedback. Can you please give us more details about a real-life use case? Sincerely, this is the first time when somebody is requesting this on our products.

Best, Alex

brampeirs commented 6 years ago

Dear Alex,

I am using tree structures in a project. When children are selected I would like to add an indeterminate to the parent.

Example schermafbeelding 2018-03-27 om 09 12 28

schermafbeelding 2018-03-27 om 09 15 35

Kind regards, Bram

alexandru-paduraru commented 6 years ago

@brampeirs I understand, that makes sense. I will talk with the team and see how this can be implemented. Do the browsers support that statement from HTML? I've found only this: https://developer.mozilla.org/en-US/docs/Web/CSS/:indeterminate.