BaseComponent
Direct Subclass:
Indirect Subclass:
This is the BaseComponent class which all elements within the FormioForm derive from.
Static Method Summary
| Static Public Methods | ||
| public static |
schema(sources: ...*): * |
|
Constructor Summary
| Public Constructor | ||
| public |
constructor(component: Object, options: Object, data: Object) Initialize a new BaseComponent. |
|
Member Summary
| Public Members | ||
| public get |
Retrieves the CSS class name of this component. |
|
| public |
component: * The Form.io component JSON schema. |
|
| public get |
customStyle: string: * Build the custom style from the layout values |
|
| public |
data: * The data object in which this component resides. |
|
| public set |
dataValue(value: *) Sets the static value of this component. |
|
| public get |
dataValue: *: * Get the static value of this component. |
|
| public get |
|
|
| public get |
defaultValue: * |
|
| public get |
|
|
| public |
description: * |
|
| public get |
Return if the component is disabled. |
|
| public set |
Disable this component. |
|
| public |
The bounding HTML Element which this component is rendered. |
|
| public get |
emptyValue: null: * The empty value for this component. |
|
| public |
The existing error that this component has. |
|
| public |
|
|
| public |
The HTMLElement for which the errors are rendered for this component (usually underneath the component). |
|
| public get |
errorLabel: *: * Returns the error label for this component. |
|
| public get |
errors: * |
|
| public |
An array of event handlers so that the destry command can deregister them. |
|
| public |
An array of the event listeners so that the destroy command can deregister them. |
|
| public |
events: * The events that are triggered for the whole FormioForm object. |
|
| public get |
hasInput: * |
|
| public |
i18next: * |
|
| public |
The ID of this component. |
|
| public |
The basic component information which tells the BaseComponent how to render the input element of the components that derive from this class. |
|
| public |
An array of all of the input HTML Elements that have been added to this component. |
|
| public |
|
|
| public |
|
|
| public get |
key: * |
|
| public set |
label(value: *) Set this component's label text and render it. |
|
| public get |
label: * Get this component's label text. |
|
| public |
The HTMLElement that is assigned to the label of this component. |
|
| public get |
The readible name for this component. |
|
| public |
options: {} The options for this component. |
|
| public |
|
|
| public |
Points to the parent component. |
|
| public |
If this input has been input and provided value. |
|
| public |
quill: * |
|
| public |
Points to the root component, usually the FormComponent. |
|
| public |
The row path of this component. |
|
| public get |
schema: * Returns the JSON schema for this component. |
|
| public get |
|
|
| public |
The HTML Element for the table body. |
|
| public |
tooltip: * |
|
| public |
Used to trigger a new change in this component. |
|
| public |
type: * |
|
| public get |
|
|
| public |
validators: [string] The validators that are assigned to this component. |
|
| public get |
value: *: * Get the value of this component. |
|
| public |
valueElement: * |
|
| public get |
viewOnly: * |
|
| public set |
|
|
| public get |
visible: * |
|
| public get |
wysiwygDefault: {"theme": string, "placeholder": *, "modules": *} |
|
| Private Members | ||
| private |
Determines if this component is disabled, or not. |
|
| private |
Determines if this component has a condition assigned to it. |
|
| private |
_inputMask: * |
|
| private |
Determines if this component is visible, or not. |
|
Method Summary
| Public Methods | ||
| public |
addButton(justIcon: *): HTMLElement Adds a new button to add new rows to the multiple input elements. |
|
| public |
addClass(element: *, className: *) Adds a class to a DOM element. |
|
| public |
addEventListener(obj: *, evt: *, func: *) Wrapper method to add an event listener to an HTML element. |
|
| public |
addInput(input: *, container: *, noSet: *): * Add a new input to this comonent. |
|
| public |
addInputError(message: *, dirty: *) Add a new input error to this element. |
|
| public |
addInputEventListener(input: *) Add new input element listeners. |
|
| public |
addInputGroup(input: HTMLElement, container: HTMLElement): HTMLElement Adds a new input group to hold the input html elements. |
|
| public |
addInputSubmitListener(input: *) |
|
| public |
addNewValue(value: *) Adds a new empty value to the data array. |
|
| public |
addPrefix(input: HTMLElement, inputGroup: HTMLElement): HTMLElement Adds a prefix html element. |
|
| public |
addQuill(element: *, settings: *, onChange: *): * |
|
| public |
addShortcut(element: *, shortcut: *) |
|
| public |
addShortcutToLabel(label: *, shortcut: *): * |
|
| public |
addSuffix(input: HTMLElement, inputGroup: HTMLElement): HTMLElement Adds a suffix html element. |
|
| public |
addValue() Adds a new empty value to the data array, and add a new row to contain it. |
|
| public |
append(element: *) |
|
| public |
appendChild(child: *) Append different types of children. |
|
| public |
appendTo(element: *, container: *) |
|
| public |
asString(value: *): * Prints out the value of this component as a string value. |
|
| public |
Adds an object of attributes onto an element. |
|
| public |
|
|
| public |
beforeNext(): * Called before a next page is triggered allowing the components to perform special functions. |
|
| public |
beforeSubmit(): * Called before a submission is triggered allowing the components to perform special async functions. |
|
| public |
bootstrap4Theme(name: *): * |
|
| public |
build() Builds the component. |
|
| public |
buildInput(container: *, value: *) |
|
| public |
buildRows(values: *) Rebuild the rows to contain the values of this component. |
|
| public |
calculateValue(data: *): boolean Perform a calculated value operation. |
|
| public |
Alias for document.createElement. |
|
| public |
checkConditions(data: *): * Check for conditionals and hide/show the element based on those conditions. |
|
| public |
checkValidity(data: *, dirty: *): * |
|
| public |
clear() |
|
| public |
clearOnHide(show: *) |
|
| public |
createDescription(container: *) Creates the description block for this input field. |
|
| public |
createElement(): HTMLElement Create the outside wrapping element for this component. |
|
| public |
Creates a new error element to hold the errors of this element. |
|
| public |
createInput(container: HTMLElement): HTMLElement Creates a new input element. |
|
| public |
createLabel(container: HTMLElement) Create the HTML element for the label of this component. |
|
| public |
createModal(): * |
|
| public |
createTooltip(container: HTMLElement) Create the HTML element for the tooltip of this component. |
|
| public |
|
|
| public |
createViewOnlyLabel(container: *) |
|
| public |
createViewOnlyValue(container: *) |
|
| public |
Create the input wrapping element. |
|
| public |
Deletes the value of the component. |
|
| public |
destroy(all: *) Remove all event handlers. |
|
| public |
elementInfo(): {"type": string, "component": *, "changeEvent": string, "attr": *} Get the element information. |
|
| public |
Emit a new event. |
|
| public |
empty(element: *) |
|
| public |
errorMessage(type: *): * Get the error message provided a certain type of error. |
|
| public |
fieldLogic(data: *): * Check all triggers and apply necessary actions. |
|
| public |
focus() |
|
| public |
getBrowserLanguage(): * |
|
| public |
getElement(): HTMLElement Returns the outside wrapping element of this component. |
|
| public |
getFlags(): * |
|
| public |
Returns an HTMLElement icon element. |
|
| public |
getLabelMargin(): * |
|
| public |
getLabelWidth(): * |
|
| public |
getModifiedSchema(schema: *, defaultSchema: *): * Returns only the schema that is different from the default. |
|
| public |
getRawValue(): * |
|
| public |
getRoot(): * Get FormioForm element at the root of this component tree. |
|
| public |
getValue(): * Get the input value of this component. |
|
| public |
getValueAt(index: *): * Get the value at a specific index. |
|
| public |
getView(value: *): * |
|
| public |
hasChanged(before: *, after: *): boolean Determine if the value of this component has changed. |
|
| public |
hasClass(element: *, className: *): * Determines if an element has a class. |
|
| public |
hasCondition(): null Determines if this component has a condition defined. |
|
| public |
hasValue(data: *): * Returns if this component has a value set. |
|
| public |
hook(): * Allow for options to hook into the functionality of this renderer. |
|
| public |
iconClass(name: *, spinning: *): * |
|
| public |
interpolate(string: *, data: *): * |
|
| public |
invalidMessage(data: *, dirty: *): * Returns the invalid message, or empty string if the component is valid. |
|
| public |
isEmpty(value: *): * |
|
| public |
Returns if the component is valid or not. |
|
| public |
labelIsHidden(): * |
|
| public |
labelOnTheLeft(position: *): * |
|
| public |
labelOnTheLeftOrRight(position: *): * |
|
| public |
labelOnTheRight(position: *): * |
|
| public |
maskPlaceholder(mask: HTMLElement): string Creates a new input mask placeholder. |
|
| public |
off(event: *) Removes all listeners for a certain event. |
|
| public |
Register for a new event within this component. |
|
| public |
onChange(flags: *, fromRoot: *) |
|
| public |
performInputMapping(input: *): * |
|
| public |
prepend(element: *) |
|
| public |
prependTo(element: *, container: *) |
|
| public |
redraw() |
|
| public |
removeButton(index: number): HTMLElement Creates a new "remove" row button and returns the html element of that button. |
|
| public |
removeChild(element: *) |
|
| public |
removeChildFrom(element: *, container: *) |
|
| public |
removeClass(element: *, className: *) Remove a class from a DOM element. |
|
| public |
removeEventListener(obj: *, evt: *) Remove an event listener from the object. |
|
| public |
removeShortcut(element: *, shortcut: *) |
|
| public |
removeValue(index: number) Removes a value out of the data array and rebuild the rows. |
|
| public |
renderTemplate(template: *, data: *, actions: *): HTMLElement Render a template string into html. |
|
| public |
Resets the value of this component. |
|
| public |
Restore the value of a control. |
|
| public |
rightAlignedLabel(position: *): * |
|
| public |
selectOptions(select: *, tag: *, options: *, defaultValue: *) |
|
| public |
setCustomValidity(message: *, dirty: *) |
|
| public |
setDisabled(element: *, disabled: *) |
|
| public |
setInputMask(input: HTMLElement) Sets the input mask for an input. |
|
| public |
setInputStyles(input: *) |
|
| public |
setLoading(element: *, loading: *) |
|
| public |
setPristine(pristine: *) Sets the pristine flag for this component. |
|
| public |
setSelectValue(select: *, value: *) |
|
| public |
Set the value of this component. |
|
| public |
setValueAt(index: *, value: *) Set the value at a specific index. |
|
| public |
setupValueElement(element: *) |
|
| public |
show(show: *): * Hide or Show an element. |
|
| public |
showElement(element: *, show: *): * Show or hide the root element of this component. |
|
| public |
splice(index: *) Splice a value from the dataValue. |
|
| public |
Translate a text using the i18n system. |
|
| public |
text(text: *): Text Alias to create a text node. |
|
| public |
updateOnChange(flags: *, changed: *): boolean Update the value on change. |
|
| public |
updateValue(flags: *): * Update a value of this component. |
|
| public |
|
|
| public |
validateMultiple(value: *): boolean Check if a component is eligible for multiple validation |
|
| public |
|
|
| public |
whenReady(): * |
|
Static Public Methods
public static schema(sources: ...*): * source
Params:
| Name | Type | Attribute | Description |
| sources | ...* |
Return:
| * |
Public Constructors
Public Members
public get defaultSchema: * source
public get defaultValue: * source
public description: * source
public errorContainer: * source
public errorElement: null source
The HTMLElement for which the errors are rendered for this component (usually underneath the component).
public get errors: * source
public eventHandlers: Array source
An array of event handlers so that the destry command can deregister them.
public eventListeners: Array source
An array of the event listeners so that the destroy command can deregister them.
public get hasInput: * source
public i18next: * source
public id: string source
The ID of this component. This value is auto-generated when the component is created, but can also be provided from the component.id value passed into the constructor.
public info: null source
The basic component information which tells the BaseComponent how to render the input element of the components that derive from this class.
public inputs: Array source
An array of all of the input HTML Elements that have been added to this component.
public get key: * source
public originalComponent: * source
public quill: * source
public get shouldDisable: * source
public tbody: null source
The HTML Element for the table body. This is relevant for the "multiple" flag on inputs.
public tooltip: * source
public type: * source
public get validationValue: * source
public valueElement: * source
public get viewOnly: * source
public set visible source
public get visible: * source
Private Members
private _inputMask: * source
Public Methods
public addButton(justIcon: *): HTMLElement source
Adds a new button to add new rows to the multiple input elements.
Params:
| Name | Type | Attribute | Description |
| justIcon | * |
Return:
| HTMLElement | The "Add New" button html element. |
public addClass(element: *, className: *) source
Adds a class to a DOM element.
Params:
| Name | Type | Attribute | Description |
| element | * | The element to add a class to. |
|
| className | * | The name of the class to add. |
public addEventListener(obj: *, evt: *, func: *) source
Wrapper method to add an event listener to an HTML element.
Params:
| Name | Type | Attribute | Description |
| obj | * | The DOM element to add the event to. |
|
| evt | * | The event name to add. |
|
| func | * | The callback function to be executed when the listener is triggered. |
public addInput(input: *, container: *, noSet: *): * source
Add a new input to this comonent.
Params:
| Name | Type | Attribute | Description |
| input | * | ||
| container | * | ||
| noSet | * |
Return:
| * |
public addInputError(message: *, dirty: *) source
Add a new input error to this element.
Params:
| Name | Type | Attribute | Description |
| message | * | ||
| dirty | * |
public addInputEventListener(input: *) source
Add new input element listeners.
Params:
| Name | Type | Attribute | Description |
| input | * |
public addInputGroup(input: HTMLElement, container: HTMLElement): HTMLElement source
Adds a new input group to hold the input html elements.
Params:
| Name | Type | Attribute | Description |
| input | HTMLElement | The input html element. |
|
| container | HTMLElement | The containing html element for this group. |
Return:
| HTMLElement | The input group element. |
public addInputSubmitListener(input: *) source
Params:
| Name | Type | Attribute | Description |
| input | * |
public addNewValue(value: *) source
Adds a new empty value to the data array.
Params:
| Name | Type | Attribute | Description |
| value | * |
public addPrefix(input: HTMLElement, inputGroup: HTMLElement): HTMLElement source
Adds a prefix html element.
Params:
| Name | Type | Attribute | Description |
| input | HTMLElement | The input element. |
|
| inputGroup | HTMLElement | The group that will hold this prefix. |
Return:
| HTMLElement | The html element for this prefix. |
public addQuill(element: *, settings: *, onChange: *): * source
Params:
| Name | Type | Attribute | Description |
| element | * | ||
| settings | * | ||
| onChange | * |
Return:
| * |
public addShortcut(element: *, shortcut: *) source
Params:
| Name | Type | Attribute | Description |
| element | * | ||
| shortcut | * |
public addShortcutToLabel(label: *, shortcut: *): * source
Params:
| Name | Type | Attribute | Description |
| label | * | ||
| shortcut | * |
Return:
| * |
public addSuffix(input: HTMLElement, inputGroup: HTMLElement): HTMLElement source
Adds a suffix html element.
Params:
| Name | Type | Attribute | Description |
| input | HTMLElement | The input element. |
|
| inputGroup | HTMLElement | The group that will hold this suffix. |
Return:
| HTMLElement | The html element for this suffix. |
public append(element: *) source
Params:
| Name | Type | Attribute | Description |
| element | * |
public appendChild(child: *) source
Append different types of children.
Params:
| Name | Type | Attribute | Description |
| child | * |
public appendTo(element: *, container: *) source
Params:
| Name | Type | Attribute | Description |
| element | * | ||
| container | * |
public asString(value: *): * source
Prints out the value of this component as a string value.
Params:
| Name | Type | Attribute | Description |
| value | * |
Return:
| * |
public attr(element: HtmlElement, attr: Object) source
Adds an object of attributes onto an element.
Params:
| Name | Type | Attribute | Description |
| element | HtmlElement | The element to add the attributes to. |
|
| attr | Object | The attributes to add to the input element. |
public autofocus() source
public beforeNext(): * source
Called before a next page is triggered allowing the components to perform special functions.
Return:
| * |
public beforeSubmit(): * source
Called before a submission is triggered allowing the components to perform special async functions.
Return:
| * |
public buildInput(container: *, value: *) source
Params:
| Name | Type | Attribute | Description |
| container | * | ||
| value | * |
public buildRows(values: *) source
Rebuild the rows to contain the values of this component.
Params:
| Name | Type | Attribute | Description |
| values | * |
public calculateValue(data: *): boolean source
Perform a calculated value operation.
Params:
| Name | Type | Attribute | Description |
| data | * | The global data object. |
public ce(type: string, attr: Object, children: Various, events: Object): HTMLElement source
Alias for document.createElement.
Return:
| HTMLElement | The created element. |
public checkConditions(data: *): * source
Check for conditionals and hide/show the element based on those conditions.
Params:
| Name | Type | Attribute | Description |
| data | * |
Return:
| * |
public checkValidity(data: *, dirty: *): * source
Params:
| Name | Type | Attribute | Description |
| data | * | ||
| dirty | * |
Return:
| * |
public clear() source
public clearOnHide(show: *) source
Params:
| Name | Type | Attribute | Description |
| show | * |
public createDescription(container: *) source
Creates the description block for this input field.
Params:
| Name | Type | Attribute | Description |
| container | * |
public createElement(): HTMLElement source
Create the outside wrapping element for this component.
Return:
| HTMLElement |
public createInput(container: HTMLElement): HTMLElement source
Creates a new input element.
Params:
| Name | Type | Attribute | Description |
| container | HTMLElement | The container which should hold this new input element. |
Return:
| HTMLElement | Either the input or the group that contains the input. |
public createLabel(container: HTMLElement) source
Create the HTML element for the label of this component.
Params:
| Name | Type | Attribute | Description |
| container | HTMLElement | The containing element that will contain this label. |
public createTooltip(container: HTMLElement) source
Create the HTML element for the tooltip of this component.
Params:
| Name | Type | Attribute | Description |
| container | HTMLElement | The containing element that will contain this tooltip. |
public createViewOnlyLabel(container: *) source
Params:
| Name | Type | Attribute | Description |
| container | * |
public createViewOnlyValue(container: *) source
Params:
| Name | Type | Attribute | Description |
| container | * |
public createWrapper(): boolean source
Create the input wrapping element. For multiple, this may be the table wrapper for the elements.
public elementInfo(): {"type": string, "component": *, "changeEvent": string, "attr": *} source
Get the element information.
public empty(element: *) source
Params:
| Name | Type | Attribute | Description |
| element | * |
public errorMessage(type: *): * source
Get the error message provided a certain type of error.
Params:
| Name | Type | Attribute | Description |
| type | * |
Return:
| * |
public fieldLogic(data: *): * source
Check all triggers and apply necessary actions.
Params:
| Name | Type | Attribute | Description |
| data | * |
Return:
| * |
public focus() source
public getElement(): HTMLElement source
Returns the outside wrapping element of this component.
Return:
| HTMLElement |
public getIcon(name: string): HTMLElement source
Returns an HTMLElement icon element.
Params:
| Name | Type | Attribute | Description |
| name | string | The name of the icon to retrieve. |
Return:
| HTMLElement | The icon element. |
public getModifiedSchema(schema: *, defaultSchema: *): * source
Returns only the schema that is different from the default.
Params:
| Name | Type | Attribute | Description |
| schema | * | ||
| defaultSchema | * |
Return:
| * |
public getValueAt(index: *): * source
Get the value at a specific index.
Params:
| Name | Type | Attribute | Description |
| index | * |
Return:
| * |
public hasChanged(before: *, after: *): boolean source
Determine if the value of this component has changed.
Params:
| Name | Type | Attribute | Description |
| before | * | ||
| after | * |
public hasClass(element: *, className: *): * source
Determines if an element has a class.
Taken from jQuery https://j11y.io/jquery/#v=1.5.0&fn=jQuery.fn.hasClass
Params:
| Name | Type | Attribute | Description |
| element | * | ||
| className | * |
Return:
| * |
public hasValue(data: *): * source
Returns if this component has a value set.
Params:
| Name | Type | Attribute | Description |
| data | * |
Return:
| * |
public hook(): * source
Allow for options to hook into the functionality of this renderer.
Return:
| * |
public iconClass(name: *, spinning: *): * source
Params:
| Name | Type | Attribute | Description |
| name | * | ||
| spinning | * |
Return:
| * |
public interpolate(string: *, data: *): * source
Params:
| Name | Type | Attribute | Description |
| string | * | ||
| data | * |
Return:
| * |
public invalidMessage(data: *, dirty: *): * source
Returns the invalid message, or empty string if the component is valid.
Params:
| Name | Type | Attribute | Description |
| data | * | ||
| dirty | * |
Return:
| * |
public isValid(data: *, dirty: *): boolean source
Returns if the component is valid or not.
Params:
| Name | Type | Attribute | Description |
| data | * | ||
| dirty | * |
public labelOnTheLeft(position: *): * source
Params:
| Name | Type | Attribute | Description |
| position | * |
Return:
| * |
public labelOnTheLeftOrRight(position: *): * source
Params:
| Name | Type | Attribute | Description |
| position | * |
Return:
| * |
public labelOnTheRight(position: *): * source
Params:
| Name | Type | Attribute | Description |
| position | * |
Return:
| * |
public maskPlaceholder(mask: HTMLElement): string source
Creates a new input mask placeholder.
Params:
| Name | Type | Attribute | Description |
| mask | HTMLElement | The input mask. |
public off(event: *) source
Removes all listeners for a certain event.
Params:
| Name | Type | Attribute | Description |
| event | * |
public on(event: string, cb: function, internal: boolean): * source
Register for a new event within this component.
Return:
| * |
Example:
let component = new BaseComponent({
type: 'textfield',
label: 'First Name',
key: 'firstName'
});
component.on('componentChange', (changed) => {
console.log('this element is changed.');
});
public onChange(flags: *, fromRoot: *) source
Params:
| Name | Type | Attribute | Description |
| flags | * | ||
| fromRoot | * |
public performInputMapping(input: *): * source
Params:
| Name | Type | Attribute | Description |
| input | * |
Return:
| * |
public prepend(element: *) source
Params:
| Name | Type | Attribute | Description |
| element | * |
public prependTo(element: *, container: *) source
Params:
| Name | Type | Attribute | Description |
| element | * | ||
| container | * |
public redraw() source
public removeButton(index: number): HTMLElement source
Creates a new "remove" row button and returns the html element of that button.
Params:
| Name | Type | Attribute | Description |
| index | number | The index of the row that should be removed. |
Return:
| HTMLElement | The html element of the remove button. |
public removeChild(element: *) source
Params:
| Name | Type | Attribute | Description |
| element | * |
public removeChildFrom(element: *, container: *) source
Params:
| Name | Type | Attribute | Description |
| element | * | ||
| container | * |
public removeClass(element: *, className: *) source
Remove a class from a DOM element.
Params:
| Name | Type | Attribute | Description |
| element | * | The DOM element to remove the class from. |
|
| className | * | The name of the class that is to be removed. |
public removeEventListener(obj: *, evt: *) source
Remove an event listener from the object.
Params:
| Name | Type | Attribute | Description |
| obj | * | ||
| evt | * |
public removeShortcut(element: *, shortcut: *) source
Params:
| Name | Type | Attribute | Description |
| element | * | ||
| shortcut | * |
public removeValue(index: number) source
Removes a value out of the data array and rebuild the rows.
Params:
| Name | Type | Attribute | Description |
| index | number | The index of the data element to remove. |
public renderTemplate(template: *, data: *, actions: *): HTMLElement source
Render a template string into html.
Params:
| Name | Type | Attribute | Description |
| template | * | ||
| data | * | ||
| actions | * |
Return:
| HTMLElement | The created element. |
public rightAlignedLabel(position: *): * source
Params:
| Name | Type | Attribute | Description |
| position | * |
Return:
| * |
public selectOptions(select: *, tag: *, options: *, defaultValue: *) source
Params:
| Name | Type | Attribute | Description |
| select | * | ||
| tag | * | ||
| options | * | ||
| defaultValue | * |
public setCustomValidity(message: *, dirty: *) source
Params:
| Name | Type | Attribute | Description |
| message | * | ||
| dirty | * |
public setDisabled(element: *, disabled: *) source
Params:
| Name | Type | Attribute | Description |
| element | * | ||
| disabled | * |
public setInputMask(input: HTMLElement) source
Sets the input mask for an input.
Params:
| Name | Type | Attribute | Description |
| input | HTMLElement | The html input to apply the mask to. |
public setInputStyles(input: *) source
Params:
| Name | Type | Attribute | Description |
| input | * |
public setLoading(element: *, loading: *) source
Params:
| Name | Type | Attribute | Description |
| element | * | ||
| loading | * |
public setPristine(pristine: *) source
Sets the pristine flag for this component.
Params:
| Name | Type | Attribute | Description |
| pristine | * | {boolean} - TRUE to make pristine, FALSE not pristine. |
public setSelectValue(select: *, value: *) source
Params:
| Name | Type | Attribute | Description |
| select | * | ||
| value | * |
public setValue(value: *, flags: *): boolean source
Set the value of this component.
Params:
| Name | Type | Attribute | Description |
| value | * | ||
| flags | * |
public setValueAt(index: *, value: *) source
Set the value at a specific index.
Params:
| Name | Type | Attribute | Description |
| index | * | ||
| value | * |
public setupValueElement(element: *) source
Params:
| Name | Type | Attribute | Description |
| element | * |
public show(show: *): * source
Hide or Show an element.
Params:
| Name | Type | Attribute | Description |
| show | * |
Return:
| * |
public showElement(element: *, show: *): * source
Show or hide the root element of this component.
Params:
| Name | Type | Attribute | Description |
| element | * | ||
| show | * |
Return:
| * |
public splice(index: *) source
Splice a value from the dataValue.
Params:
| Name | Type | Attribute | Description |
| index | * |
public text(text: *): Text source
Alias to create a text node.
Params:
| Name | Type | Attribute | Description |
| text | * |
Return:
| Text |
public updateOnChange(flags: *, changed: *): boolean source
Update the value on change.
Params:
| Name | Type | Attribute | Description |
| flags | * | ||
| changed | * |
public updateValue(flags: *): * source
Update a value of this component.
Params:
| Name | Type | Attribute | Description |
| flags | * |
Return:
| * |
public updateViewOnlyValue() source
public validateMultiple(value: *): boolean source
Check if a component is eligible for multiple validation
Params:
| Name | Type | Attribute | Description |
| value | * |
