You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.2 KiB
25 lines
1.2 KiB
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
import { Provider } from '@angular/core';
|
|
import { CheckboxRequiredValidator } from '@angular/forms';
|
|
import * as ɵngcc0 from '@angular/core';
|
|
export declare const MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR: Provider;
|
|
/**
|
|
* Validator for Material slide-toggle components with the required attribute in a
|
|
* template-driven form. The default validator for required form controls asserts
|
|
* that the control value is not undefined but that is not appropriate for a slide-toggle
|
|
* where the value is always defined.
|
|
*
|
|
* Required slide-toggle form controls are valid when checked.
|
|
*/
|
|
export declare class MatSlideToggleRequiredValidator extends CheckboxRequiredValidator {
|
|
static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<MatSlideToggleRequiredValidator, never>;
|
|
static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration<MatSlideToggleRequiredValidator, "mat-slide-toggle[required][formControlName], mat-slide-toggle[required][formControl], mat-slide-toggle[required][ngModel]", never, {}, {}, never>;
|
|
}
|
|
|
|
//# sourceMappingURL=slide-toggle-required-validator.d.ts.map
|