UNPKG

@angular/material

Version:
39 lines (38 loc) 1.53 kB
/** * @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 { AfterContentInit, ChangeDetectorRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core'; import { MatButton } from '@angular/material/button'; import { MatDatepicker } from './datepicker'; import { MatDatepickerIntl } from './datepicker-intl'; /** Can be used to override the icon of a `matDatepickerToggle`. */ export declare class MatDatepickerToggleIcon { } export declare class MatDatepickerToggle<D> implements AfterContentInit, OnChanges, OnDestroy { _intl: MatDatepickerIntl; private _changeDetectorRef; private _stateChanges; /** Datepicker instance that the button will toggle. */ datepicker: MatDatepicker<D>; /** Tabindex for the toggle. */ tabIndex: number | null; /** Whether the toggle button is disabled. */ disabled: boolean; private _disabled; /** Whether ripples on the toggle should be disabled. */ disableRipple: boolean; /** Custom icon set by the consumer. */ _customIcon: MatDatepickerToggleIcon; /** Underlying button element. */ _button: MatButton; constructor(_intl: MatDatepickerIntl, _changeDetectorRef: ChangeDetectorRef, defaultTabIndex: string); ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; ngAfterContentInit(): void; _open(event: Event): void; private _watchStateChanges; }