ngx-form-control
Version:
Form controls for angular 6
17 lines (16 loc) • 584 B
TypeScript
import { ValidationErrors } from '@angular/forms';
import { BaseControlComponent } from '../../utils/base-control.component';
export declare class FormToggleComponent extends BaseControlComponent {
type: 'checkbox' | 'toggle';
private _innerValue;
private _isTouch;
value: boolean;
readonly invalid: boolean;
readonly valid: boolean;
readonly errorMessages: Array<string>;
readonly isCheckboxType: boolean;
readonly isToggleType: boolean;
writeValue(value: boolean): void;
validate(): ValidationErrors;
reset(): void;
}