| 239 | private _validatorChangeFn = () => {}; |
| 240 | |
| 241 | constructor() { |
| 242 | inject(_CdkPrivateStyleLoader).load(_StructuralStylesLoader); |
| 243 | const tabIndex = inject(new HostAttributeToken('tabindex'), {optional: true}); |
| 244 | this._options = this._options || checkboxDefaults; |
| 245 | this.color = this._options.color || checkboxDefaults.color; |
| 246 | this.tabIndex = tabIndex == null ? 0 : parseInt(tabIndex) || 0; |
| 247 | this.id = this._uniqueId = inject(_IdGenerator).getId('mat-mdc-checkbox-'); |
| 248 | this.disabledInteractive = this._options?.disabledInteractive ?? false; |
| 249 | } |
| 250 | |
| 251 | ngOnChanges(changes: SimpleChanges<this>) { |
| 252 | if (changes['required']) { |