Topic: Disable a input checkbox with MDB pro angular
herve pro asked 5 years ago
Good morning,
How can I conditionnaly disable an input type checkbox with the angular version of MDB Pro ?
The disable tag works but there's no condition, and [disabled]="..." doesn't work.
Thank you
Damian Gemza staff answered 5 years ago
Dear herve,
Please use the mdb-checkbox
component instead of input type checkbox.
Here's the working code.
.html:
<mdb-checkbox [default]="true" [disabled]="true">Material unchecked</mdb-checkbox>
Best Regards, Damian
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.0.0
- Device: pc
- Browser: chrome
- OS: w7
- Provided sample code: No
- Provided link: No