UNPKG

material-form-builder

Version:
29 lines (28 loc) 1.14 kB
/// <reference types="node" /> import React, { Component } from "react"; import { InputImplement } from '../../types/input.implement'; import { NumberInputProps, NumberInputValueType } from './number.interface'; interface IState { value: NumberInputValueType; value_when_focus: NumberInputValueType; error: boolean; } export declare class NumberInput extends Component<NumberInputProps, IState> implements InputImplement<NumberInputValueType> { state: IState; validationTimeout: NodeJS.Timeout | undefined; inputRef: HTMLInputElement | null | undefined; shouldComponentUpdate(nextProps: NumberInputProps, nextState: IState): boolean; setValue(value: NumberInputValueType, withoutEffect?: boolean): Promise<NumberInputValueType>; getValue(): NumberInputValueType; clear(): Promise<NumberInputValueType>; validation(): boolean; onChange: (event: React.ChangeEvent<HTMLInputElement>) => void; private onClick; private onBlur; private onFocus; click: () => void; focus: () => void; blur: () => void; render(): React.JSX.Element; } export {};