Class: EditableTable

vef.ui.table.EditableTable(target, columns, values)

Represents an editable table UI element.

Constructor

new EditableTable(target, columns, values)

Creates an instance of EditableTable.
Parameters:
Name Type Description
target HTMLElement The target element to attach the table to.
columns Array The columns of the table.
values Array The initial values for the table rows.
Source:

Extends

  • UiElement

Methods

Row(array_of_existing)

Adds rows to the table based on an array of existing values.
Parameters:
Name Type Description
array_of_existing Array The array of existing values.
Source:

addRow()

Adds a new row to the table.
Source:

clearTable()

Clears the table.
Source:

createArrayValues(ar, key) → {Array}

Creates an array of values from an array of objects based on a specific key.
Parameters:
Name Type Description
ar Array The array of objects.
key string The key to extract values from.
Source:
Returns:
The array of values.
Type
Array

createList(arr, name)

Creates a datalist for a specific column.
Parameters:
Name Type Description
arr Array The array of values.
name string The name of the column.
Source:

extractAndCreateDataLists(array, key, name)

Extracts values from an array of objects and creates datalists for a specific column.
Parameters:
Name Type Description
array Array The array of objects.
key string The key to extract values from.
name string The name of the column.
Source:

getValues() → {Array}

Gets the values from the table.
Source:
Returns:
The array of values.
Type
Array