@angular/material
Version:
Angular Material
21 lines (20 loc) • 830 B
TypeScript
/**
* @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';
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 {
}