datepicker-toggle.d.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 { AfterContentInit, ChangeDetectorRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
  9. import { MatButton } from '@angular/material/button';
  10. import { MatDatepicker } from './datepicker';
  11. import { MatDatepickerIntl } from './datepicker-intl';
  12. /** Can be used to override the icon of a `matDatepickerToggle`. */
  13. export declare class MatDatepickerToggleIcon {
  14. }
  15. export declare class MatDatepickerToggle<D> implements AfterContentInit, OnChanges, OnDestroy {
  16. _intl: MatDatepickerIntl;
  17. private _changeDetectorRef;
  18. private _stateChanges;
  19. /** Datepicker instance that the button will toggle. */
  20. datepicker: MatDatepicker<D>;
  21. /** Tabindex for the toggle. */
  22. tabIndex: number | null;
  23. /** Whether the toggle button is disabled. */
  24. disabled: boolean;
  25. private _disabled;
  26. /** Whether ripples on the toggle should be disabled. */
  27. disableRipple: boolean;
  28. /** Custom icon set by the consumer. */
  29. _customIcon: MatDatepickerToggleIcon;
  30. /** Underlying button element. */
  31. _button: MatButton;
  32. constructor(_intl: MatDatepickerIntl, _changeDetectorRef: ChangeDetectorRef, defaultTabIndex: string);
  33. ngOnChanges(changes: SimpleChanges): void;
  34. ngOnDestroy(): void;
  35. ngAfterContentInit(): void;
  36. _open(event: Event): void;
  37. private _watchStateChanges;
  38. }