UNPKG

@tomino/dynamic-form-semantic-ui

Version:

Semantic UI form renderer based on dynamic form generation

17 lines (16 loc) 944 B
/// <reference types="react" /> import { FormComponentProps } from '@tomino/dynamic-form'; import { InputProps, DropdownProps } from 'semantic-ui-react'; import { EditorContextType } from '../editor/editor_context'; export { addButton, celled, controlMargin, styledTableRow, tableHeader, tableRowAuto, tableRowFull, tableRowWithDelete } from './properties_styles'; export declare function parseProps<T, U>(props: FormComponentProps<T, U>, editorState: EditorContextType, resolveBoundProperty?: boolean, propName?: keyof T): { props: T & import("@tomino/dynamic-form/dist/cjs/form_definition").CommonProps; value: any; error: string; }; export declare function onChangeHandler(this: { props: FormComponentProps; editorState: EditorContextType; propName?: string; }, e: React.ChangeEvent<any>, sui?: InputProps | DropdownProps): void; export declare function clearHandler(this: React.Component<FormComponentProps>): void;