Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


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



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • 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