UNPKG

material-form-builder

Version:
26 lines (25 loc) 1.05 kB
/// <reference types="node" /> import React, { Component } from "react"; import { InputImplement } from '../../types/input.implement'; import { DatetimeInputProps, DatetimeInputValueType } from './datetime.types'; interface IState { value: DatetimeInputValueType; error: boolean; } export declare class DatetimeInput extends Component<DatetimeInputProps, IState> implements InputImplement<DatetimeInputValueType> { state: IState; validationTimeout: NodeJS.Timeout | undefined; inputRef: HTMLInputElement | null | undefined; shouldComponentUpdate(nextProps: DatetimeInputProps, nextState: IState): boolean; setValue(value: DatetimeInputValueType): Promise<DatetimeInputValueType>; getValue(): DatetimeInputValueType; clear(): Promise<DatetimeInputValueType>; validation(): boolean; onChange: (event: any, keyboardInputValue?: string) => void; private onClick; click: () => void; focus: () => void; blur: () => void; render(): React.JSX.Element; } export {};