Pages

02 January, 2024

Prevent default (ionChange) ion-checkbox

What i´m trying to do is to prevent default event on (ionChange).



I want to be able to set the checkbox checked= true or checked= false



If a condition is true or false.


{{classroom.name}}





---


updateClassroom(item, cbox: Checkbox){
//cbox.preventDefault(); ------> Not Work

if(something){
cbox.checked = true
}else{
cbox.checked = false
}
}

No comments:

Post a Comment

Thanks