Class: abstract
QuantifierBuilder<T>
The abstract builder class to define the metadata property of the form builder component. Used for properties where the property value can be selected from predefined values.
Extends
TypedBuilder
<T
>
Extended by
Type Parameters
T
T
the property type.
Constructors
Constructor
new QuantifierBuilder<
T
>():QuantifierBuilder
<T
>
Returns
QuantifierBuilder
<T
>
Inherited from
Properties
annotation
annotation:
PreAnnotation
Partial metadata for a component property.
Inherited from
labels?
optional
labels:string
[]
Labels for the possible values of the property.
options
options:
BuilderOptions
Options for building an annotation.
Inherited from
values
values: (
string
|number
)[]
Possible values for the property.
Accessors
dataBound
Get Signature
get dataBound():
this
Returns
this
the main property of the component that uses the form data as data (one-way data binding).
Inherited from
localize
Get Signature
get localize():
this
Returns
this
the component property that can be localized.
Inherited from
notLocalize
Get Signature
get notLocalize():
this
Returns
this
the non-localizable component property.
Inherited from
required
Get Signature
get required():
QuantifierBuilder
<NonNullable
<T
>>
Marks the component property as required.
Returns
QuantifierBuilder
<NonNullable
<T
>>
the modified instance of the builder.
Overrides
valued
Get Signature
get valued():
this
Returns
this
the main component property that is used as form data and for validation rules.
Inherited from
Methods
build()
build(
key
):Annotation
Creates component property metadata for the form builder.
Parameters
key
string
the unique key of the component property.
Returns
the instance of the component property metadata for the form builder.
Overrides
calculable()
calculable(
calculable
):QuantifierBuilder
<T
>
Marks the component property as calculable.
Parameters
calculable
boolean
true if the property is calculable.
Returns
QuantifierBuilder
<T
>
the modified instance of the builder.
Inherited from
clone()
clone():
this
Clones the instance of the builder.
Returns
this
the cloned instance of the builder.
Inherited from
default()
default(
value
):this
Sets the default value for the component property.
Parameters
value
the default value, can be an array of values.
T
| T
[]
Returns
this
the modified instance of the builder.
Overrides
getName()
protected
getName(key
):string
Returns the annotation name.
Parameters
key
string
the property name
Returns
string
the annotation name.
Inherited from
hideEditor()
hideEditor():
this
Hides the component property editor.
Returns
this
the modified instance of the builder.
Inherited from
hinted()
hinted(
hint
):QuantifierBuilder
<T
>
Adds the hint to the property name of the component.
Parameters
hint
ReactNode
the hint.
Returns
QuantifierBuilder
<T
>
the modified instance of the builder.
Inherited from
labeled()
labeled(...
labels
):QuantifierBuilder
<T
>
Sets the labels for predefined values.
Parameters
labels
...string
[]
the labels.
Returns
QuantifierBuilder
<T
>
the modified instance of the builder.
named()
named(
name
):QuantifierBuilder
<T
>
Specifies the name of the component property.
Parameters
name
string
the property name.
Returns
QuantifierBuilder
<T
>
the modified instance of the builder.
Inherited from
setup()
setup(
options
):this
Modifies the component property metadata builder with custom options.
Parameters
options
the custom options.
Returns
this
the modified instance of the builder.
Inherited from
uncontrolledValue()
uncontrolledValue(
uncontrolledValue
):QuantifierBuilder
<T
>
Sets the value for the property that prevents uncontrolled state.
Parameters
uncontrolledValue
unknown
the value for the uncontrolled state.
Returns
QuantifierBuilder
<T
>
the modified instance of the builder.
Inherited from
TypedBuilder
.uncontrolledValue
validated()
validated(
validator
,errorMap
):this
Modifies the component property metadata builder with validation properties.
Parameters
validator
the validation function.
errorMap
the validation error settings.
Returns
this
the modified instance of the builder.
Inherited from
withEditorProps()
withEditorProps(
props
):this
Sets custom properties for the component's property editor.
Parameters
props
any
the custom properties
Returns
this
the modified instance of the builder.