UNPKG

ag-grid-community

Version:

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

35 lines (34 loc) 2.09 kB
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 AgInputNumberFieldParams<TComponentSelectorType extends string> extends AgInputTextFieldParams<TComponentSelectorType> { precision?: number; step?: number; min?: number; max?: number; } /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */ export declare class AgInputNumberField<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, AgInputNumberFieldParams<TComponentSelectorType>> { private precision?; private step?; private min?; private max?; constructor(config?: AgInputNumberFieldParams<TComponentSelectorType>); postConstruct(): void; private onWheel; normalizeValue(value: string): string; private adjustPrecision; setMin(min: number | undefined): this; setMax(max: number | undefined): this; setPrecision(precision: number): this; setStep(step?: number): this; setValue(value?: string | null, silent?: boolean): this; setStartValue(value?: string | null): void; private setValueOrInputValue; getValue(ignoreValidity?: boolean): string | null | undefined; private isScientificNotation; } /** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */ export declare const AgInputNumberFieldSelector: AgComponentSelector<AgWidgetSelectorType>;