@talend/react-containers
Version:
Provide connected components aka containers for @talend/react-cmf based on @talend/react-components.
43 lines (41 loc) • 1.3 kB
TypeScript
export const DEFAULT_STATE: any;
export default Form;
/**
* Because we don't want to loose form input
* This Component bind onChange to store the formData in it's state.
* <Form jsonSchema={} uiSchema={} data={} />
*/
declare class Form extends Component<any, any, any> {
static displayName: string;
static propTypes: any;
static defaultProps: {
data: {};
};
/**
* return the form data in redux state
* usefull in mapStateToProps of your component
* @example
const FORM_ID = 'add-datastore-form';
*
* @param {[type]} state [description]
* @param {[type]} formId [description]
* @return {[type]} [description]
*/
static getFormData(state: [type], formId: [type]): [type];
static getDerivedStateFromProps(nextProps: any, prevState: any): {
data: any;
} | null;
constructor(props: any);
state: any;
formActions(): any;
onChange(event: any, form: any): void;
onSubmit(event: any, formData: any): void;
onErrors(event: any, errors: any): void;
jsonSchema(): any;
uiSchema(): any;
data(): any;
componentDidUpdate(prevProps: any, prevState: any): void;
errors(): any;
render(): import("react/jsx-runtime").JSX.Element;
}
import { Component } from 'react';