UNPKG

ag-grid-community

Version:

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

24 lines (23 loc) 1.1 kB
import { ICellEditorParams } from "../../interfaces/iCellEditor"; import { AgInputNumberField } from "../../widgets/agInputNumberField"; import { SimpleCellEditor } from "./simpleCellEditor"; export interface INumberCellEditorParams<TData = any, TContext = any> extends ICellEditorParams<TData, number, TContext> { /** Min allowed value. */ min?: number; /** Max allowed value. */ max?: number; /** Number of digits allowed after the decimal point. */ precision?: number; /** * 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; /** Display stepper buttons in editor. Default: `false` */ showStepperButtons?: boolean; } export declare class NumberCellEditor extends SimpleCellEditor<number, INumberCellEditorParams, AgInputNumberField> { constructor(); }