Skip to content

how to make tuiCheckbox when using formControlName #11198

Closed Answered by waterplea
vytautas-pranskunas- asked this question in Q&A
Discussion options

You must be logged in to vote

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 on tuiCheckbox – it will be disabled (not focusable, not clickable) but visually without the disabled transparency. You can control its state with native [checked]="boolean".

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by waterplea
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants