Skip to main content

Introducing Workflow Engine, try for FREE workflowengine.io.

Interface: AnnotationEditorProps

@react-form-builder/designer.AnnotationEditorProps

Props for the AnnotationEditor component.

Hierarchy

Properties

annotation

annotation: Annotation

Annotation editor annotation.


componentData

componentData: ComponentData

The component data.


disableCompute

disableCompute: () => void

Type declaration

▸ (): void

Disables the ability to make the property computable.

Returns

void

Inherited from

CalculableEditorProps.disableCompute


getComputeCode

getComputeCode: <T>(type: T, params?: ComputeTypeParams<T>) => string

Type declaration

▸ <T>(type, params?): string

Returns the code of the computed property.

Type parameters
NameTypeDescription
Textends ComponentPropertyComputeTypethe component property value type.
Parameters
NameTypeDescription
typeTthe component property value type.
params?ComputeTypeParams<T>the parameters of the compute code.
Returns

string

the code of the computed property.

Inherited from

CalculableEditorProps.getComputeCode


getComputeType

getComputeType: () => undefined | ComponentPropertyComputeType

Type declaration

▸ (): undefined | ComponentPropertyComputeType

Returns the type of calculation for the property.

Returns

undefined | ComponentPropertyComputeType

Inherited from

CalculableEditorProps.getComputeType


hasComputeCode

hasComputeCode: (type: ComponentPropertyComputeType) => boolean

Type declaration

▸ (type): boolean

Returns true if the property has a compute code for the specified type, false otherwise.

Parameters
NameTypeDescription
typeComponentPropertyComputeTypethe compute type.
Returns

boolean

true if the property has a compute code for the specified type, false otherwise.

Inherited from

CalculableEditorProps.hasComputeCode


onChange

onChange: (value: any) => void

Type declaration

▸ (value): void

Annotation editor onChange handler.

Parameters
NameType
valueany
Returns

void


onClean

onClean: () => void

Type declaration

▸ (): void

Annotation editor onClean handler.

Returns

void


setComputeCode

setComputeCode: <T>(value: string, type: T, params?: ComputeTypeParams<T>) => void

Type declaration

▸ <T>(value, type, params?): void

Sets the computed property code.

Type parameters
NameTypeDescription
Textends ComponentPropertyComputeTypethe component property value type.
Parameters
NameTypeDescription
valuestringthe code of computed property.
typeTthe component property value type.
params?ComputeTypeParams<T>the parameters of the compute code.
Returns

void

Inherited from

CalculableEditorProps.setComputeCode


showError

Optional showError: (message?: string) => void

Type declaration

▸ (message?): void

Displays an error message to the user.

Parameters
NameType
message?string
Returns

void


value

value: any

Annotation editor value.