Home Reference Source
import EditTableComponent from 'formiojs/src/contrib/edittable/EditTable.js'
public class | source

EditTableComponent

Extends:

src/components/datagrid/DataGrid.js~DataGridComponent → EditTableComponent

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
public get

emptyColumn: {"label": *, "key": *}

public get
public get

Method Summary

Public Methods
public

addEmptyRows(n: *)

public

build(state: {})

public

buildGroup(objectPattern: {"label": *}): *

public
public

buildRow(row: *, index: *, state: {}): *

public
public
public

componentSchema(extend: ...*): *

public

Returns all non-empty columns.

public

getGroups(): *

public

getMeta(): *

public

getRowChunks(groups: Numbers[], coll: Array<T>): Array<T[]>

public
public

Checks whether columns are available

public
public

removeButton(index: *): *

override *

public
public

totalRowsNumber(groups: *): *

Static Public Members

public static get builderInfo: {"title": string, "icon": string, "group": string, "weight": number, "schema": *} source

Static Public Methods

public static schema(extend: ...*): * source

Params:

NameTypeAttributeDescription
extend ...*

Return:

*

Public Constructors

public constructor() source

Public Members

public get componentComponents: * source

public dataValue: * source

public get emptyColumn: {"label": *, "key": *} source

public get groupsMode: * source

public get tableClass: * source

Public Methods

public addEmptyRows(n: *) source

Params:

NameTypeAttributeDescription
n *

public build(state: {}) source

Params:

NameTypeAttributeDescription
state {}
  • optional
  • default: {}

public buildGroup(objectPattern: {"label": *}): * source

Params:

NameTypeAttributeDescription
objectPattern {"label": *}
  • default: {"label":null}

Return:

*

public buildGroups() source

public buildRow(row: *, index: *, state: {}): * source

Params:

NameTypeAttributeDescription
row *
index *
state {}
  • optional
  • default: {}

Return:

*

public buildRows() source

public builderView(): * source

Return:

*

public componentSchema(extend: ...*): * source

Params:

NameTypeAttributeDescription
extend ...*

Return:

*

public getColumns(): Array source

Returns all non-empty columns.

Return:

Array

public getGroups(): * source

Return:

*

public getMeta(): * source

Return:

*

public getRowChunks(groups: Numbers[], coll: Array<T>): Array<T[]> source

Params:

NameTypeAttributeDescription
groups Numbers[]
coll Array<T>

collection

Return:

Array<T[]>

public hasAddButton(): * source

Return:

*

public hasColumns(): Boolean source

Checks whether columns are available

Return:

Boolean

public hasExtraColumn(): boolean source

Return:

boolean

public removeButton(index: *): * source

override *

Params:

NameTypeAttributeDescription
index *

Return:

*

public setMeta() source

public totalRowsNumber(groups: *): * source

Params:

NameTypeAttributeDescription
groups *

Return:

*