@dhutaryan/ngx-mat-timepicker
Version:
Angular timepicker to add time which is based on material design and Angular material.
37 lines (36 loc) • 2.08 kB
TypeScript
import { SimpleChanges, OnChanges, OnDestroy, ChangeDetectorRef } from '@angular/core';
import { BooleanInput } from '@angular/cdk/coercion';
import { MatTimepicker } from './timepicker';
import { MatTimepickerIntl } from './timepicker-intl';
import * as i0 from "@angular/core";
export declare class MatTimepickerToggleIcon {
static ɵfac: i0.ɵɵFactoryDeclaration<MatTimepickerToggleIcon, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<MatTimepickerToggleIcon, "[matTimepickerToggleIcon]", never, {}, {}, never, never, true, never>;
}
export declare class MatTimepickerToggle<T> implements OnChanges, OnDestroy {
_intl: MatTimepickerIntl;
private _cdr;
/** Timepicker instance. */
timepicker: MatTimepicker<T>;
/** Whether the toggle button is disabled. */
get disabled(): boolean;
set disabled(value: BooleanInput);
private _disabled;
/** Whether ripples on the toggle should be disabled. */
disableRipple: boolean;
/** Tabindex for the toggle. */
tabIndex: number | null;
/** Custom icon set by the consumer. */
customIcon: MatTimepickerToggleIcon;
/** Screen-reader label for the button. */
ariaLabel: string;
private _stateChanges;
constructor(defaultTabIndex: string, _intl: MatTimepickerIntl, _cdr: ChangeDetectorRef);
ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void;
/** Opens timepicker. */
open(event: Event): void;
private _watchStateChanges;
static ɵfac: i0.ɵɵFactoryDeclaration<MatTimepickerToggle<any>, [{ attribute: "tabindex"; }, null, null]>;
static ɵcmp: i0.ɵɵComponentDeclaration<MatTimepickerToggle<any>, "mat-timepicker-toggle", ["matTimepickerToggle"], { "timepicker": { "alias": "for"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; }, {}, ["customIcon"], ["[matTimepickerToggleIcon]"], true, never>;
}