Class: Annotation
Basic metadata class for a React component property for the form builder.
Extended by
Constructors
Constructor
new Annotation(
key,name):Annotation
Creates metadata for a React component property.
Parameters
key
string
the property name.
name
string
the human-readable property name.
Returns
Annotation
Properties
bindingType?
readonlyoptionalbindingType:ComponentPropertyBindType
The component property binding type.
calculable
readonlycalculable:boolean=true
True if the property value can be a calculated property, false otherwise.
controlsRequiredProp
readonlycontrolsRequiredProp:boolean=false
True if the property value controls a required flag, false otherwise.
dataBindingType
readonlydataBindingType:DataBindingType='none'
The type of component data binding.
default?
readonlyoptionaldefault:any
The default property value.
disabled
readonlydisabled:boolean=false
True if the property value controls a disabled flag, false otherwise.
editor
readonlyeditor:string
The name of the component's property editor.
editorProps?
readonlyoptionaleditorProps:any
Additional properties for the component property editor.
errorMap?
readonlyoptionalerrorMap:ErrorMap
Message and/or error code for the validation function.
hint?
readonlyoptionalhint:ReactNode
The hint for the component property.
key
readonlykey:string
The component property key.
localizable
readonlylocalizable:boolean=false
True if the property value can be localized, false otherwise.
name
readonlyname:string
The component property name.
readOnly
readonlyreadOnly:boolean=false
True if the property value controls a read-only flag, false otherwise.
required
readonlyrequired:boolean=false
True if the component property is required, false otherwise.
slotConditionBuilder()?
readonlyoptionalslotConditionBuilder: (props) =>string
A function that returns a string containing the source code of the function to bind child components.
Parameters
props
any
the properties of the component, which are available only inside Form Builder Designer.
Returns
string
type?
readonlyoptionaltype: keyof SchemaTypeMap
The data type for the value of the property.
uncontrolledValue?
readonlyoptionaluncontrolledValue:unknown
The property value for the uncontrolled state.
validator?
readonlyoptionalvalidator:RuleValidator
The function for validating the property value.
valued
readonlyvalued:boolean=false
True if the property value is bound to form data, false otherwise.
Methods
clone()
clone():
any
Returns
any
the metadata clone.