ag-grid-community
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
32 lines (31 loc) • 2.03 kB
TypeScript
import type { AgComponentSelector, AgCoreBeanCollection, BaseEvents, BaseProperties, IPropertiesService } from 'ag-stack';
import type { AgInputTextFieldParams } from './agInputTextField';
import { AgInputTextField } from './agInputTextField';
import type { AgWidgetSelectorType } from './agWidgetSelectorType';
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
export interface AgInputDateFieldParams<TComponentSelectorType extends string> extends AgInputTextFieldParams<TComponentSelectorType> {
min?: string;
max?: string;
step?: number;
includeTime?: boolean;
}
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
export declare class AgInputDateField<TBeanCollection extends AgCoreBeanCollection<TProperties, TGlobalEvents, TCommon, TPropertiesService>, TProperties extends BaseProperties, TGlobalEvents extends BaseEvents, TCommon, TPropertiesService extends IPropertiesService<TProperties, TCommon>, TComponentSelectorType extends string> extends AgInputTextField<TBeanCollection, TProperties, TGlobalEvents, TCommon, TPropertiesService, TComponentSelectorType, AgInputDateFieldParams<TComponentSelectorType>> {
private min?;
private max?;
private step?;
private includeTime;
constructor(config?: AgInputDateFieldParams<TComponentSelectorType>);
postConstruct(): void;
private onWheel;
setMin(minDate: Date | string | undefined): this;
setMax(maxDate: Date | string | undefined): this;
setStep(step?: number): this;
setIncludeTime(includeTime: boolean): this;
/** Commits a partially-typed segment before a stop reads the value. A focus-loss stop already blurred. */
flushPendingSegment(): void;
getDate(): Date | undefined;
setDate(date: Date | undefined, silent?: boolean): void;
}
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
export declare const AgInputDateFieldSelector: AgComponentSelector<AgWidgetSelectorType>;