how to make tuiCheckbox when using formControlName #11198
-
I have tried both ways
doe snot work. Thanks for the answer |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
There is no such thing as readOnly checkbox on the web. If you want checkbox on form that is non-interactive – you have to use disabled and then |
Beta Was this translation helpful? Give feedback.
-
thank you |
Beta Was this translation helpful? Give feedback.
There is no such thing as readOnly checkbox on the web. If you want checkbox on form that is non-interactive – you have to use disabled and then
getRawValue()
on form to get all values, even disabled. Per popular request for purely decorative checkbox we added following behavior: if you do not use ngModel or reactive form directives ontuiCheckbox
– it will be disabled (not focusable, not clickable) but visually without the disabled transparency. You can control its state with native [checked]="boolean".