-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Checkbox indeterminate state #674
Comments
…del value for indeterminate state check. (#675) fix #674 Triggered by commit: 2b82345 Travis build: https://travis-ci.org/formly-js/ngx-formly/builds/332732121
I would like to remove the state 'indeterminate', because sometimes I won't have an initial model for a checkbox type field, and I don't want an 'indeterminate' state, I mean, instead of a 'dash' checkbox, I want to see a empty checkbox. Is there any way to avoid this state? {
key: 'example',
type: 'checkbox',
templateOptions: {
label: 'example',
indeterminate: false
},
} Having a initial model like: example = false, it's not a solution for me. |
…eterminate state for checkbox. (#678) fix #674 Triggered by commit: 78b0775 Travis build: https://travis-ci.org/formly-js/ngx-formly/builds/333245992
Now it's perfect! Thanks! ;) |
Hello,
How can I assign a default value to checkbox. I tried with defaultValue: true, but it does not work.
Or how can I remove the "indeterminate view-state" of a checkbox.
https://css-tricks.com/wp-content/uploads/2011/08/checkboxstates.png
Thanks
The text was updated successfully, but these errors were encountered: