slide-toggle-config.d.ts 767 B

1234567891011121314151617
  1. /**
  2. * @license
  3. * Copyright Google LLC All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.io/license
  7. */
  8. import { InjectionToken } from '@angular/core';
  9. /** Default `mat-slide-toggle` options that can be overridden. */
  10. export interface MatSlideToggleDefaultOptions {
  11. /** Whether toggle action triggers value changes in slide toggle. */
  12. disableToggleValue?: boolean;
  13. /** Whether drag action triggers value changes in slide toggle. */
  14. disableDragValue?: boolean;
  15. }
  16. /** Injection token to be used to override the default options for `mat-slide-toggle`. */
  17. export declare const MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS: InjectionToken<MatSlideToggleDefaultOptions>;