igx-checkbox disabled state
New DiscussionHi everyone,
I am having trouble setting the disabled status of a checkbox.
I get the html element for the checkbox with a querySelector:
let myCheckbox: HtmlInputElement | null = document.querySelector("#idOfMyIgxCheckbox");
(I can’t use a ViewChild at this point, because the checkbox is not displayed directly when creating the view / the component in which the checkbox is used)
There I have the possibility to set the disabled state of this checkbox:
myCheckbox.disabled = true;
But setting this property has no effect. After setting this proprty to true, the checkbox is still enabled and can be edited.
Could you please suggest a solution on how I can change the disabled state of a checkbox.
Thanks in advance and best regards
Michael
Sign In
to post a reply
Replies
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Favorites
0 Replies
3 Created On
Sep 29, 2023 Last Post
2 years, 5 months ago