material-form-builder
Version:
FormBuilder For React.js
28 lines (27 loc) • 1.16 kB
TypeScript
/// <reference types="node" />
import React, { Component, RefObject } from "react";
import { FormBuilder } from "../../formBuilder";
import { OutputValues } from "../../types/builder.outputValues";
import { InputImplement } from '../../types/input.implement';
import { GroupInputProps, GroupInputValueType } from './group.interface';
interface IState {
error: boolean;
value: GroupInputValueType;
}
export declare class GroupInput extends Component<GroupInputProps, IState> implements InputImplement<GroupInputValueType> {
state: IState;
validationTimeout: NodeJS.Timeout | undefined;
builderRef: RefObject<FormBuilder>;
constructor(props: GroupInputProps);
shouldComponentUpdate(nextProps: GroupInputProps, nextState: IState): boolean;
setValue(values: GroupInputValueType): Promise<GroupInputValueType>;
getValue(validation?: boolean): GroupInputValueType;
clear(): Promise<GroupInputValueType>;
validation(): boolean;
onChangeValue: (data: OutputValues) => void;
click: () => void;
focus: () => void;
blur: () => void;
render(): React.JSX.Element;
}
export {};