UNPKG

@tomino/dynamic-form-semantic-ui

Version:

Semantic UI form renderer based on dynamic form generation

37 lines (36 loc) 1.48 kB
import React from 'react'; import { FormModel, DataSet, FormElement, JSONSchema } from '@tomino/dynamic-form'; import 'prismjs/themes/prism.css'; import 'prismjs/themes/prism-dark.css'; import { EditorContextType } from '../../editor/editor_context'; declare type Props = { form: FormModel; editComponent?: DataSet; context?: EditorContextType; showStandard?: boolean; showReadonly?: boolean; showToolbox?: boolean; showProperties?: boolean; showOutline?: boolean; validate?: boolean; handlers?: any; }; declare type Options = { addEditor?: boolean; showToolBox?: boolean; showReadOnly?: boolean; showStandard?: boolean; showProperties?: boolean; showOutline?: boolean; validate?: boolean; handlers?: any; }; export declare const d = 2; export declare function testStandard(formDefinition: FormElement, schema: JSONSchema, formData: any): void; export declare function testReadonly(formDefinition: FormElement, schema: JSONSchema, formData: any): void; export declare function testEditor(formDefinition: FormElement, schema: JSONSchema, formData: any): void; export declare function prepareComponent(formDefinition: FormElement, schema: JSONSchema, data: any, { addEditor, showToolBox, showReadOnly, showStandard, showProperties, showOutline, validate, handlers }?: Options): () => JSX.Element; export declare class TestComponent extends React.Component<Props> { render(): JSX.Element; } export {};