material-form-builder
Version:
FormBuilder For React.js
26 lines (25 loc) • 1 kB
TypeScript
/// <reference types="node" />
import React, { Component } from "react";
import { InputImplement } from '../../types/input.implement';
import { TimeInputProps, TimeInputValueType } from './time.types';
interface IState {
value: TimeInputValueType;
error: boolean;
}
export declare class TimeInput extends Component<TimeInputProps, IState> implements InputImplement<TimeInputValueType> {
state: IState;
validationTimeout: NodeJS.Timeout | undefined;
shouldComponentUpdate(nextProps: TimeInputProps, nextState: IState): boolean;
setValue(value: TimeInputValueType): Promise<TimeInputValueType>;
getValue(): TimeInputValueType;
clear(): Promise<TimeInputValueType>;
validation(): boolean;
onChange: (inputValue: any, keyboardInputValue?: string) => void;
private onClick;
inputRef: HTMLInputElement | null | undefined;
click: () => void;
focus: () => void;
blur: () => void;
render(): React.JSX.Element;
}
export {};