Home Reference Source
import DataMapComponent from 'formiojs/src/components/datamap/DataMap.js'
public class | source

DataMapComponent

Extends:

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

Static Member Summary

Static Public Members
public static get

builderInfo: {"title": string, "icon": string, "group": string, "documentation": 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

components: *[]

public get
public set
public get
public get
public get
public get
public get
public get

keySchema: {"type": string, "input": boolean, "hideLabel": boolean, "label": *, "key": string, "disableBuilderActions": boolean}

public

rows: *[]

public get

schema: *

public
public get
public

visibleColumns: {"key": boolean, "undefined": boolean}

Method Summary

Public Methods
public

addChildComponent(component: *)

public

addRow()

public

checkColumns(): {"rebuild": *, "show": boolean}

public

componentContext(component: *): *

public

createRowComponents(row: *, rowIndex: *): *

public

getColumns(): *

public
public

getRowKey(rowIndex: *): *

public
public
public
public

init()

public
public

removeRow(index: *)

public

saveChildComponent(component: *)

public

setRowComponentsData(rowIndex: *, rowData: *)

public

setValue(value: *, flags: {}): *

Static Public Members

public static get builderInfo: {"title": string, "icon": string, "group": string, "documentation": 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 canAddColumn: boolean source

public components: *[] source

public get dataValue: * source

public set dataValue source

public get defaultRowKey: string source

public get defaultSchema: * source

public get defaultValue: * source

public get emptyValue: {} source

public get iteratableRows: * source

public get keySchema: {"type": string, "input": boolean, "hideLabel": boolean, "label": *, "key": string, "disableBuilderActions": boolean} source

public rows: *[] source

public get schema: * source

public type: string source

public get valueKey: * source

public visibleColumns: {"key": boolean, "undefined": boolean} source

Public Methods

public addChildComponent(component: *) source

Params:

NameTypeAttributeDescription
component *

public addRow() source

public checkColumns(): {"rebuild": *, "show": boolean} source

Return:

{"rebuild": *, "show": boolean}

public componentContext(component: *): * source

Params:

NameTypeAttributeDescription
component *

Return:

*

public createRowComponents(row: *, rowIndex: *): * source

Params:

NameTypeAttributeDescription
row *
rowIndex *

Return:

*

public getColumns(): * source

Return:

*

public getComponentsContainer(): * source

Return:

*

public getRowKey(rowIndex: *): * source

Params:

NameTypeAttributeDescription
rowIndex *

Return:

*

public getRowValues(): * source

Return:

*

public hasHeader(): boolean source

Return:

boolean

public hasRemoveButtons(): * source

Return:

*

public init() source

public removeChildComponent() source

public removeRow(index: *) source

Params:

NameTypeAttributeDescription
index *

public saveChildComponent(component: *) source

Params:

NameTypeAttributeDescription
component *

public setRowComponentsData(rowIndex: *, rowData: *) source

Params:

NameTypeAttributeDescription
rowIndex *
rowData *

public setValue(value: *, flags: {}): * source

Params:

NameTypeAttributeDescription
value *
flags {}
  • optional
  • default: {}

Return:

*