DaffCheckboxControlValueAccessorDirective

A directive for binding the DaffCheckboxComponent and the Control Value Accessor.

Selector: 'daff-checkbox[ngModel], daff-checkbox[formControl], daff-checkbox[formControlName]'

Properties

Name Type Description
_onChange (val: any) => void
_onTouched () => void
@Input() value any The value of the ControlValueAccessor
@Input() name string The name of the ControlValueAccessor _control NgControl
ngOnInit void A lifecycle method called when the directive is initialized.
writeValue void writes a new value down into the component.
registerOnChange void Registers the change handler
registerOnTouched void Registers the touched handler
setDisabledState void Sets the disabled state.
fireSelect calls the child checkbox's select function
fireDeselect calls the child checkbox's deselect function
Graycore, LLC © 2018 - 2024. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.