Skip to main content

Introducing Workflow Engine, try for FREE workflowengine.io.

Class: Meta

@react-form-builder/core.Meta

Component metadata for the form builder.

Constructors

constructor

new Meta(type, properties, css, wrapperCss, modules, customPreview?, valuedAn?, kind?)

Creates the component metadata for the form builder.

Parameters

NameTypeDefault valueDescription
typestringundefinedthe component type name.
propertiesAnnotation[]undefinedthe component's properties metadata.
cssAnnotation[]undefinedthe component's CSS metadata.
wrapperCssAnnotation[]undefinedthe component's wrapper CSS metadata.
modulesAnnotation[]undefinedcommon metadata for the component.
customPreview?ReactNodeundefinedthe custom ReactNode to be drawn on the toolbar.
valuedAn?Annotationundefinedthe metadata for the component value.
kindComponentKind'component'the component kind.

Properties

css

Readonly css: Annotation[]

the component's CSS metadata.


customPreview

Optional Readonly customPreview: ReactNode

the custom ReactNode to be drawn on the toolbar.


kind

Readonly kind: ComponentKind = 'component'

the component kind.


modules

Readonly modules: Annotation[]

common metadata for the component.


properties

Readonly properties: Annotation[]

the component's properties metadata.


type

Readonly type: string

the component type name.


valuedAn

Optional Readonly valuedAn: Annotation

the metadata for the component value.


wrapperCss

Readonly wrapperCss: Annotation[]

the component's wrapper CSS metadata.