import EditTableComponent from 'formiojs/src/components/edittable/EditTable.js'EditTableComponent
Extends:
Static Member Summary
| Static Public Members | ||
| public static get |
builderInfo: {"title": string, "icon": string, "group": string, "weight": number, "schema": *} |
|
Static Method Summary
| Static Public Methods | ||
| public static |
schema(extend: ...*): * |
|
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public get |
|
|
| public |
dataValue: * |
|
| public get |
emptyColumn: {"label": *, "key": *} |
|
| public get |
groupsMode: * |
|
| public get |
tableClass: * |
|
Method Summary
| Public Methods | ||
| public |
addEmptyRows(n: *) |
|
| public |
build(state: {}) |
|
| public |
buildGroup(objectPattern: {"label": *}): * |
|
| public |
|
|
| public |
buildRow(row: *, index: *, state: {}): * |
|
| public |
|
|
| public |
builderView(): * |
|
| public |
componentSchema(extend: ...*): * |
|
| public |
getColumns(): Array Returns all non-empty columns. |
|
| public |
getGroups(): * |
|
| public |
getMeta(): * |
|
| public |
getRowChunks(groups: Numbers[], coll: Array<T>): Array<T[]> |
|
| public |
hasAddButton(): * |
|
| public |
Checks whether columns are available |
|
| public |
|
|
| public |
removeButton(index: *): * override * |
|
| public |
setMeta() |
|
| public |
totalRowsNumber(groups: *): * |
|
Inherited Summary
| From class Component | ||
| public static |
schema(sources: ...*): * |
|
| public static |
tableView(value: *, options: *) Provides a table view for this component. |
|
| 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 |
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 |
logic: * |
|
| public get |
The readible name for this component. |
|
| public get |
|
|
| public set |
|
|
| public get |
ready: * |
|
| 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 set |
|
|
| public get |
transform: * |
|
| public get |
|
|
| public get |
viewOnly: * |
|
| public get |
|
|
| public set |
visible(value: *) |
|
| public |
If the component has been attached |
|
| 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 |
|
|
| 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 |
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 |
_visible: * Determines if this component is visible, or not. |
|
| public |
addClass(element: *, className: *): * |
|
| public |
addInputError(message: *, dirty: *) Add a new input error to this element. |
|
| 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(): * 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 |
build(element: *) |
|
| public |
buildOld() Builds the component. |
|
| public |
calculateValue(data: *): boolean Perform a calculated value operation. |
|
| public |
checkCondition(row: *, data: *): boolean Checks the condition of this component. |
|
| public |
checkConditions(data: *): * Check for conditionals and hide/show the element based on those conditions. |
|
| public |
checkValidity(data: *, dirty: *, rowData: *): * |
|
| public |
clear() |
|
| 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 |
getFlags(): * |
|
| 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 |
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: *): * |
|
| 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 |
Returns if the component is valid or not. |
|
| public |
labelIsHidden(): * |
|
| public |
loadRefs(element: *, refs: *) |
|
| 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 |
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 |
selectOptions(select: *, tag: *, options: *, defaultValue: *) |
|
| public |
setCustomValidity(message: *, dirty: *) |
|
| 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 |
updateItems(args: ...*) |
|
| public |
updateOnChange(flags: *, changed: *): boolean Update the value on change. |
|
| public |
updateValue(flags: *): * Update a value of this component. |
|
| public |
validateMultiple(value: *): boolean Check if a component is eligible for multiple validation |
|
| public |
whenReady(): * |
|
| From class NestedComponent | ||
| public static |
schema(extend: ...*): * |
|
| public get |
collapsed: * |
|
| public set |
|
|
| public get |
|
|
| public get |
currentForm: * |
|
| public set |
|
|
| public get |
|
|
| public set |
|
|
| public get |
errors: * |
|
| public get |
|
|
| public get |
|
|
| public set |
|
|
| public get |
ready: * |
|
| public get |
schema: * |
|
| public get |
|
|
| public get |
visible: * |
|
| public set |
|
|
| public |
components: * |
|
| public |
|
|
| private |
_collapsed: * |
|
| public |
addComponent(component: Object, data: Object, before: HTMLElement): Component Add a new component to the components array. |
|
| public |
addComponents(element: *, data: *) |
|
| public |
attach(element: *): * |
|
| public |
attachComponents(element: *, components: *, container: *): * |
|
| public |
beforeNext(): * Allow components to hook into the next page trigger to perform their own logic. |
|
| public |
beforeSubmit(): * Allow components to hook into the submission to provide their own async data. |
|
| public |
calculateValue(data: *, flags: *): * |
|
| public |
checkConditions(data: *): * |
|
| public |
checkData(data: *, flags: *): * A more performant way to check the conditions, calculations, and validity of a submission once it has been changed. |
|
| public |
checkValidity(data: *, dirty: *): * |
|
| public |
clearOnHide(show: *) |
|
| public |
createComponent(component: *, data: *): * Create a new component and add it to the components array. |
|
| public |
destroy() |
|
| public |
|
|
| public |
detach() |
|
| public |
eachComponent(fn: function) Perform an iteration over each component within this container component. |
|
| public |
everyComponent(fn: function) Perform a deep iteration over every component, including those within other container based components. |
|
| public |
getAllComponents(): * |
|
| public |
getComponent(key: string, fn: function): Object Returns a component provided a key. |
|
| public |
getComponentById(id: string, fn: function): Object Return a component provided the Id of the component. |
|
| public |
getComponents(): * |
|
| public |
getContainer(): * |
|
| public |
getValue(): * |
|
| public |
|
|
| public |
init() |
|
| public |
isValid(data: *, dirty: *): * |
|
| public |
removeComponent(component: Component, components: Array<Component>) Remove a component from the components array. |
|
| public |
removeComponentById(id: string, fn: function): null Removes a component provided the Id of the component. |
|
| public |
removeComponentByKey(key: string, fn: function): null Removes a component provided the API key of that component. |
|
| public |
render(children: *): * |
|
| public |
renderComponents(components: *): * |
|
| public |
|
|
| public |
|
|
| public |
setNestedValue(component: *, value: *, flags: *, changed: *): * |
|
| public |
setPristine(pristine: *) |
|
| public |
setValue(value: *, flags: *): * |
|
| public |
updateValue(flags: *, source: *): * |
|
| From class DataGridComponent | ||
| public static get |
builderInfo: {"title": string, "icon": string, "group": string, "documentation": string, "weight": number, "schema": *} |
|
| public static |
schema(extend: ...*): * |
|
| public get |
|
|
| public get |
dataValue: * |
|
| public set |
|
|
| public get |
|
|
| public get |
|
|
| public get |
defaultValue: * |
|
| public get |
|
|
| public |
components: * |
|
| public |
|
|
| public |
rows: *[] |
|
| public |
|
|
| public |
visibleColumns: {} |
|
| public |
addRow() |
|
| public |
attach(element: *) |
|
| public |
buildGroup(objectPattern: {"label": *}, index: *, groupRows: *): * |
|
| public |
|
|
| public |
checkColumns(data: *): {"rebuild": *, "show": *} |
|
| public |
checkConditions(data: *): * |
|
| public |
createRowComponents(row: *, rowIndex: *): * |
|
| public |
|
|
| public |
getColumns(): * |
|
| public |
getComponent(path: *, fn: *): * |
|
| public |
getRowChunks(groups: Numbers[], rows: Array<T>): Array<T[]> |
|
| public |
getRows(): * |
|
| public |
getValue(): * Get the value of this component. |
|
| public |
hasAddButton(): * |
|
| public |
hasBottomSubmit(): * |
|
| public |
hasChanged(before: *, after: *): * |
|
| public |
hasExtraColumn(): * |
|
| public |
hasHeader(): * |
|
| public |
hasRemoveButtons(): * |
|
| public |
hasRowGroups(): * |
|
| public |
hasTopSubmit(): * |
|
| public |
init() |
|
| public |
removeRow(index: *) |
|
| public |
render(): * |
|
| public |
|
|
| public |
setStaticValue(n: *) |
|
| public |
setValue(value: *, flags: *): * |
|
| public |
totalRowsNumber(groups: *): * |
|
| public |
updateValue(flags: *, value: *): * |
|
Static Public Members
Static Public Methods
public static schema(extend: ...*): * source
Override:
DataGridComponent#schemaParams:
| Name | Type | Attribute | Description |
| extend | ...* |
Return:
| * |
Public Constructors
Public Members
public dataValue: * source
Get the static value of this component.
Override:
DataGridComponent#dataValuepublic get emptyColumn: {"label": *, "key": *} source
public get groupsMode: * source
public get tableClass: * source
Public Methods
public addEmptyRows(n: *) source
Params:
| Name | Type | Attribute | Description |
| n | * |
public build(state: {}) source
Override:
Component#buildParams:
| Name | Type | Attribute | Description |
| state | {} |
|
public buildGroup(objectPattern: {"label": *}): * source
Override:
DataGridComponent#buildGroupParams:
| Name | Type | Attribute | Description |
| objectPattern | {"label": *} |
|
Return:
| * |
public buildRow(row: *, index: *, state: {}): * source
Params:
| Name | Type | Attribute | Description |
| row | * | ||
| index | * | ||
| state | {} |
|
Return:
| * |
public buildRows() source
public componentSchema(extend: ...*): * source
Params:
| Name | Type | Attribute | Description |
| extend | ...* |
Return:
| * |
public getColumns(): Array source
Returns all non-empty columns.
Override:
DataGridComponent#getColumnspublic getRowChunks(groups: Numbers[], coll: Array<T>): Array<T[]> source
Override:
DataGridComponent#getRowChunksParams:
| Name | Type | Attribute | Description |
| groups | Numbers[] | ||
| coll | Array<T> | collection |
public removeButton(index: *): * source
override *
Params:
| Name | Type | Attribute | Description |
| index | * |
Return:
| * |
public setMeta() source
public totalRowsNumber(groups: *): * source
Override:
DataGridComponent#totalRowsNumberParams:
| Name | Type | Attribute | Description |
| groups | * |
Return:
| * |
