Answers for "change checkbox color angular material"

0

mat-checkbox change

// in HTML
<mat-checkbox id="parent" (change)="onChangeDemo($event)"></mat-checkbox>
// in TS
onChangeDemo(ob: MatCheckboxChange) {
    console.log(ob.checked + " => " + ob.source.id);
}
Posted by: Guest on June-30-2021
0

material design checkbox change colooru

// overwrite the checkbox background
::ng-deep .mat-checkbox-checked .mat-checkbox-background, 
.mat-checkbox-indeterminate .mat-checkbox-background {
  background-color: black !important;
}

// overwrite the ripple overlay on hover and click
::ng-deep .mat-checkbox:not(.mat-checkbox-disabled) .mat-checkbox-ripple .mat-ripple-element {
  background-color: black !important;
}
Posted by: Guest on February-23-2021

Code answers related to "change checkbox color angular material"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language