UNPKG

ag-grid-community

Version:

Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue

20 lines (19 loc) 1.03 kB
import { ICellEditorParams } from "../../interfaces/iCellEditor"; import { AgInputDateField } from "../../widgets/agInputDateField"; import { SimpleCellEditor } from "./simpleCellEditor"; export interface IDateCellEditorParams<TData = any, TContext = any> extends ICellEditorParams<TData, Date, TContext> { /** Min allowed value. Either `Date` object or string in format `'yyyy-mm-dd'`. */ min?: string | Date; /** Max allowed value. Either `Date` object or string in format `'yyyy-mm-dd'`. */ max?: string | Date; /** * Size of the value change when stepping up/down, starting from `min` or the initial value if provided. * Step is also the difference between valid values. * If the user-provided value isn't a multiple of the step value from the starting value, it will be considered invalid. * Defaults to any value allowed. */ step?: number; } export declare class DateCellEditor extends SimpleCellEditor<Date, IDateCellEditorParams, AgInputDateField> { constructor(); }