Static Member Summary
| Static Public Members | ||
| public static |
builderInfo: * |
|
| public static |
editForm: * |
|
Static Method Summary
| Static Public Methods | ||
| public static |
schema(extend: ...*): * |
|
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public get |
|
|
| public |
backgroundReady: {"resolve": *, "reject": *} |
|
| public |
center: * |
|
| public |
curve: * |
|
| public get |
dataReady: * |
|
| public |
dataValue: * |
|
| public |
deleted: *[] |
|
| public |
dimensions: {"width": *, "height": *} |
|
| public |
|
|
| public |
|
|
| public |
dragEndPoint: * |
|
| public |
|
|
| public |
|
|
| public |
editSketchpad: {"canvas": *, "background": *} |
|
| public |
editValue: * |
|
| public |
editorModal: * |
|
| public |
|
|
| public |
|
|
| public |
|
|
| public get |
emptyValue: *[] |
|
| public |
height: * |
|
| public |
layers: *[] |
|
| public |
line: * |
|
| public get |
modes: {"pencil": *, "line": *, "circle": *, "rectangle": *, "zoomIn": *, "zoomOut": *, "drag": *} |
|
| public |
|
|
| public |
prev: * |
|
| public |
rectangle: * |
|
| public |
|
|
| public |
|
|
| public get |
|
|
| public |
|
|
| public |
viewSketchpad: {"canvas": *, "background": *} |
|
| public |
width: * |
|
| public |
|
|
Method Summary
| Public Methods | ||
| public |
|
|
| public |
attach(element: *): * |
|
| public |
attachOld(element: *) |
|
| public |
clear() |
|
| public |
clearAll() |
|
| public |
click(event: *, index: *) |
|
| public |
|
|
| public |
createToolbar(): * |
|
| public |
dragImage(offset: *) |
|
| public |
draw(value: *) |
|
| public |
editSvg() |
|
| public |
getActualCoordinate(coordinate: *): * |
|
| public |
getValue(): * |
|
| public |
|
|
| public |
redo() |
|
| public |
render(): * Builds the component. |
|
| public |
|
|
| public |
saveSvg() |
|
| public |
setActiveButton(mode: *) |
|
| public |
setBackgroundImage(svgMarkup: *) |
|
| public |
setEditorSize(width: *, height: *) |
|
| public |
setState(state: *) |
|
| public |
setTotalMultiplier(multiplier: *) |
|
| public |
setValue(value: *) |
|
| public |
|
|
| public |
undo() |
|
| public |
|
|
| public |
zoom(coordinate: *, multiplier: *) |
|
Inherited Summary
| From class Component | ||
| public static |
schema(sources: ...*): * |
|
| public static |
tableView(value: *, options: *) Provides a table view for this component. |
|
| public get |
allowData: * |
|
| public get |
builderMode: * |
|
| public get |
canDisable: * |
|
| public get |
Retrieves the CSS class name of this component. |
|
| public get |
currentForm: * |
|
| public set |
|
|
| public get |
customStyle: string: * Build the custom style from the layout values |
|
| public get |
dataReady: * |
|
| public get |
dataValue: *: * Get the static value of this component. |
|
| public set |
dataValue(value: *) Sets the static value of this component. |
|
| public get |
|
|
| public get |
defaultValue: * |
|
| public get |
|
|
| public get |
Return if the component is disabled. |
|
| public set |
Disable this component. |
|
| public get |
emptyValue: null: * The empty value for this component. |
|
| public get |
errorLabel: *: * Returns the error label for this component. |
|
| public get |
errors: * |
|
| public get |
fullMode: * |
|
| public get |
hasInput: * |
|
| public get |
hasSetValue: * |
|
| public get |
|
|
| public get |
key: * |
|
| public get |
label: * Get this component's label text. |
|
| public set |
label(value: *) Set this component's label text and render it. |
|
| public get |
labelInfo: * |
|
| public get |
logic: * |
|
| public get |
The readible name for this component. |
|
| public get |
|
|
| public set |
|
|
| public get |
|
|
| public set |
|
|
| public get |
ready: * |
|
| public get |
rootPristine: * |
|
| public get |
rootValue: *: * Get the data value at the root level. |
|
| public get |
schema: * Returns the JSON schema for this component. |
|
| public get |
|
|
| public get |
submissionTimezone: *: * Return the submission timezone. |
|
| public get |
transform: * |
|
| public get |
|
|
| public get |
viewOnly: * |
|
| public get |
|
|
| public set |
visible(value: *) |
|
| public get |
wysiwygDefault: {"theme": string, "placeholder": *, "modules": *} |
|
| public |
If the component has been attached |
|
| public |
|
|
| public |
component: * The Form.io component JSON schema. |
|
| public |
data: * The data object in which this component resides. |
|
| public |
element: * |
|
| public |
The existing error that this component has. |
|
| public |
id: * |
|
| public |
info: * The element information for creating the input element. |
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
Points to the parent component. |
|
| public |
If this input has been input and provided value. |
|
| public |
quill: * |
|
| public |
|
|
| public |
|
|
| public |
refs: {} References to dom elements |
|
| public |
If the component has been rendered |
|
| public |
Points to the root component, usually the FormComponent. |
|
| public |
The row path of this component. |
|
| public |
Tool tip text after processing |
|
| public |
list of attached tooltips |
|
| public |
|
|
| public |
Used to trigger a redraw event within this component. |
|
| public |
type: * |
|
| public |
validators: [string] The validators that are assigned to this component. |
|
| private |
_currentForm: * |
|
| private |
Determines if this component is disabled, or not. |
|
| private |
Determines if this component has a condition assigned to it. |
|
| private |
|
|
| private |
|
|
| private |
_visible: * Determines if this component is visible, or not. |
|
| public |
addAce(element: *, settings: *, onChange: *): * |
|
| public |
addCKE(element: *, settings: *, onChange: *): * |
|
| public |
addClass(element: *, className: *): * |
|
| public |
addInputError(message: *, dirty: *) Add a new input error to this element. |
|
| public |
addInputWarning(message: *, dirty: *, elements: *) |
|
| public |
addQuill(element: *, settings: *, onChange: *): * |
|
| public |
addShortcut(element: *, shortcut: *) |
|
| public |
append(element: *) |
|
| public |
applyActions(actions: *, result: *, data: *, newComponent: *): * |
|
| public |
asString(value: *): * Prints out the value of this component as a string value. |
|
| public |
attach(element: *): * |
|
| public |
|
|
| public |
attachRefreshEvent(refreshData: *) |
|
| public |
|
|
| public |
|
|
| public |
beforeNext(): * |
|
| public |
beforePage(): * Called before a next and previous 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 |
build(element: *): * |
|
| public |
calculateComponentValue(data: *): boolean Perform a calculated value operation. |
|
| public |
calculateValue(args: *): boolean Performs calculations in this component plus any child components. |
|
| public |
checkComponentConditions(data: *): * Check for conditionals and hide/show the element based on those conditions. |
|
| public |
checkComponentValidity(data: *, dirty: *, rowData: *): boolean Checks the validity of this component and sets the error message if it is invalid. |
|
| public |
checkCondition(row: *, data: *): boolean Checks the condition of this component. |
|
| public |
checkConditions(args: *): boolean Checks conditions for this component and any sub components. |
|
| public |
checkData(data: *, flags: *): * Check the conditions, calculations, and validity of a single component and triggers an update if something changed. |
|
| public |
checkTemplate(templates: *, names: *, modes: *): * |
|
| public |
checkTemplateMode(templatesByName: *, modes: *): * |
|
| public |
checkValidity(args: ...*): * |
|
| public |
clear() |
|
| public |
|
|
| public |
|
|
| public |
conditionallyVisible(data: *): boolean Check if this component is conditionally visible. |
|
| public |
createModal(element: *): * |
|
| public |
|
|
| public |
Deletes the value of the component. |
|
| public |
destroy() |
|
| public |
detach() Remove all event handlers. |
|
| public |
elementInfo(): {"type": string, "component": *, "changeEvent": string, "attr": *} Get the element information. |
|
| public |
errorMessage(type: *): * Get the error message provided a certain type of error. |
|
| public |
evalContext(additional: *): * Create an evaluation context for all script executions and interpolations. |
|
| 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 |
|
|
| public |
getModifiedSchema(schema: *, defaultSchema: *): * Returns only the schema that is different from the default. |
|
| public |
getRoot(): * Get FormioForm element at the root of this component tree. |
|
| public |
getTemplate(names: *, modes: *): * |
|
| public |
getValue(): * Get the input value of this component. |
|
| public |
getValueAsString(value: *): * |
|
| public |
getValueAt(index: *): * Get the value at a specific index. |
|
| public |
getView(value: *): * |
|
| public |
hasChanged(newValue: *, oldValue: *): boolean Determine if the value of this component has changed. |
|
| public |
hasClass(element: *, className: *): * |
|
| public |
hasCondition(): null Determines if this component has a condition defined. |
|
| public |
hasValue(data: *): * Returns if this component has a value set. |
|
| public |
iconClass(name: *, spinning: *): * |
|
| public |
Checks to see if a separate component is in the "context" of this component. |
|
| public |
init() |
|
| public |
invalidMessage(data: *, dirty: *): * Returns the invalid message, or empty string if the component is valid. |
|
| public |
isEmpty(value: *): * |
|
| public |
isEqual(valueA: *, valueB: *): * |
|
| public |
Returns if the component is valid or not. |
|
| public |
labelIsHidden(): * |
|
| public |
loadRefs(element: *, refs: *) |
|
| public |
normalizeValue(value: *): * Normalize values coming into updateValue. |
|
| public |
onChange(flags: *, fromRoot: *): * |
|
| public |
performInputMapping(input: *): * |
|
| public |
prepend(element: *) |
|
| public |
rebuild(): * |
|
| public |
redraw(): * |
|
| public |
refresh(value: *) Refreshes the component with a new value. |
|
| public |
removeChild(element: *) |
|
| public |
removeClass(element: *, className: *): * |
|
| public |
|
|
| public |
removeShortcut(element: *, shortcut: *) |
|
| public |
removeValue(index: number) Removes a value out of the data array and rebuild the rows. |
|
| public |
|
|
| public |
renderString(template: *, data: *, actions: *): HTMLElement Render a template string into html. |
|
| public |
renderTemplate(name: *, data: {}, modeOption: *): * |
|
| public |
Resets the value of this component. |
|
| public |
Restore the value of a control. |
|
| public |
sanitize(string: *): * Sanitize an html string. |
|
| public |
selectOptions(select: *, tag: *, options: *, defaultValue: *) |
|
| public |
setContent(element: *, content: *): boolean |
|
| public |
setCustomValidity(message: *, dirty: *, external: *, isWarning: boolean) |
|
| public |
setDisabled(element: *, disabled: *) |
|
| 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 |
shouldSkipValidation(data: *, dirty: *, rowData: *): * |
|
| public |
splice(index: *) Splice a value from the dataValue. |
|
| public |
Translate a text using the i18n system. |
|
| public |
updateComponentValue(flags: *): * Update a value of this component. |
|
| public |
updateItems(args: ...*) |
|
| public |
updateOnChange(flags: *, changed: *): boolean Update the value on change. |
|
| public |
updateValue(args: *): boolean Updates the value of this component plus all sub-components. |
|
| public |
validateMultiple(value: *): boolean Check if a component is eligible for multiple validation |
|
| public |
whenReady(): * |
|
| From class Field | ||
| public |
render(element: *): * |
|
Static Public Methods
public static schema(extend: ...*): * source
Override:
Component#schemaParams:
| Name | Type | Attribute | Description |
| extend | ...* |
Return:
| * |
Public Constructors
Public Members
public backgroundReady: {"resolve": *, "reject": *} source
public center: * source
public curve: * source
public deleted: *[] source
public dimensions: {"width": *, "height": *} source
public dragEndPoint: * source
public dragLastPoint: * source
public dragStartPoint: * source
public editSketchpad: {"canvas": *, "background": *} source
public editValue: * source
public editorModal: * source
public editorModalContent: * source
public editorModalFooter: * source
public editorModalHeader: * source
public height: * source
public layers: *[] source
public line: * source
public get modes: {"pencil": *, "line": *, "circle": *, "rectangle": *, "zoomIn": *, "zoomOut": *, "drag": *} source
public prev: * source
public rectangle: * source
public saveSvgButton: * source
public state: {"mode": *, "stroke": string, "fill": string, "linewidth": number, "circleSize": number} source
public useBackgroundDimensions: * source
public viewSketchpad: {"canvas": *, "background": *} source
public width: * source
Public Methods
public addBackground() source
public attach(element: *): * source
Override:
Component#attachParams:
| Name | Type | Attribute | Description |
| element | * |
Return:
| * |
public attachOld(element: *) source
Params:
| Name | Type | Attribute | Description |
| element | * |
public clearAll() source
public click(event: *, index: *) source
Params:
| Name | Type | Attribute | Description |
| event | * | ||
| index | * |
public copySvgToView() source
public dragImage(offset: *) source
Params:
| Name | Type | Attribute | Description |
| offset | * |
public draw(value: *) source
Params:
| Name | Type | Attribute | Description |
| value | * |
public editSvg() source
public getActualCoordinate(coordinate: *): * source
Params:
| Name | Type | Attribute | Description |
| coordinate | * |
Return:
| * |
public getValue(): * source
Get the input value of this component.
Override:
Component#getValueReturn:
| * |
public normalizeSvgOffset() source
public redo() source
public resetZoom() source
public saveSvg() source
public setActiveButton(mode: *) source
Params:
| Name | Type | Attribute | Description |
| mode | * |
public setBackgroundImage(svgMarkup: *) source
Params:
| Name | Type | Attribute | Description |
| svgMarkup | * |
public setEditorSize(width: *, height: *) source
Params:
| Name | Type | Attribute | Description |
| width | * | ||
| height | * |
public setState(state: *) source
Params:
| Name | Type | Attribute | Description |
| state | * |
public setTotalMultiplier(multiplier: *) source
Params:
| Name | Type | Attribute | Description |
| multiplier | * |
public setValue(value: *) source
Set the value of this component.
Override:
Component#setValueParams:
| Name | Type | Attribute | Description |
| value | * |
public stretchDrawingArea() source
public undo() source
public updateSvgViewBox() source
public zoom(coordinate: *, multiplier: *) source
Params:
| Name | Type | Attribute | Description |
| coordinate | * | ||
| multiplier | * |
