DataGridComponent
Extends:
Direct Subclass:
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 get |
allowReorder: * |
|
public get |
canAddColumn: * |
|
public |
components: * |
|
public get |
dataValue: * |
|
public set |
|
|
public get |
|
|
public get |
|
|
public get |
defaultValue: * |
|
public set |
|
|
public get |
disabled: * |
|
public |
dragula: * |
|
public get |
emptyValue: * |
|
public get |
initEmpty: * |
|
public get |
initRows: * |
|
public get |
|
|
public get |
minLength: * |
|
public |
rows: *[] |
|
public |
|
|
public |
|
|
public |
visibleColumns: {} |
Method Summary
Public Methods | ||
public |
addRow() |
|
public |
attach(element: *): * |
|
public |
checkColumns(data: *, flags: {}): {"rebuild": *, "show": *} |
|
public |
checkComponentConditions(data: *, flags: *, row: *): * |
|
public |
checkValidity(data: *, dirty: *): * Checks the validity of this datagrid. |
|
public |
createRowComponents(row: *, rowIndex: *): * |
|
public |
createRows(init: *, rebuild: *): * |
|
public |
getColumns(): * |
|
public |
getComponent(path: *, fn: *): * |
|
public |
getGroupSizes(): Number[] Retrun group sizes. |
|
public |
Create groups object. |
|
public |
getRowChunks(groups: Number[], rows: Array<T>): Array<T[]> Split rows into chunks. |
|
public |
getRowValues(): * |
|
public |
getRows(): * |
|
public |
hasBottomSubmit(): * |
|
public |
hasExtraColumn(): * |
|
public |
hasHeader(): * |
|
public |
hasRemoveButtons(): * |
|
public |
hasRowGroups(): * |
|
public |
hasTopSubmit(): * |
|
public |
init() |
|
public |
onReorder(element: *, _target: *, _source: *, sibling: *) |
|
public |
removeRow(index: *) |
|
public |
removeRowComponents(row: *) |
|
public |
render(): * |
|
public |
|
|
public |
setRowComponentsData(rowIndex: *, rowData: *) |
|
public |
setStaticValue(n: *) |
|
public |
setValue(value: *, flags: {}): * |
|
public |
toggleGroup(element: *, index: *) |
|
public |
totalRowsNumber(groups: *): * |
Static Public Members
Static Public Methods
public static schema(extend: ...*): * source
Params:
Name | Type | Attribute | Description |
extend | ...* |
Return:
* |
Public Constructors
public constructor() source
Public Members
public get addAnotherPosition: * source
public get allowReorder: * source
public get canAddColumn: * source
public components: * source
public get dataValue: * source
public set dataValue source
public get defaultSchema: * source
public get defaultValue: * source
public set disabled source
public get disabled: * source
public dragula: * source
public get emptyValue: * source
public get initEmpty: * source
public get initRows: * source
public get iteratableRows: * source
public get minLength: * source
public rows: *[] source
public visibleColumns: {} source
Public Methods
public addRow() source
public checkColumns(data: *, flags: {}): {"rebuild": *, "show": *} source
Params:
Name | Type | Attribute | Description |
data | * | ||
flags | {} |
|
Return:
{"rebuild": *, "show": *} |
public checkComponentConditions(data: *, flags: *, row: *): * source
Params:
Name | Type | Attribute | Description |
data | * | ||
flags | * | ||
row | * |
Return:
* |
public checkValidity(data: *, dirty: *): * source
Checks the validity of this datagrid.
Params:
Name | Type | Attribute | Description |
data | * | ||
dirty | * |
Return:
* |
public createRowComponents(row: *, rowIndex: *): * source
Params:
Name | Type | Attribute | Description |
row | * | ||
rowIndex | * |
Return:
* |
public createRows(init: *, rebuild: *): * source
Params:
Name | Type | Attribute | Description |
init | * | ||
rebuild | * |
Return:
* |
public getComponent(path: *, fn: *): * source
Params:
Name | Type | Attribute | Description |
path | * | ||
fn | * |
Return:
* |
public getGroups(): Object source
Create groups object. Each key in object represents index of first row in group.
public init() source
public onReorder(element: *, _target: *, _source: *, sibling: *) source
Params:
Name | Type | Attribute | Description |
element | * | ||
_target | * | ||
_source | * | ||
sibling | * |
public removeRow(index: *) source
Params:
Name | Type | Attribute | Description |
index | * |
public removeRowComponents(row: *) source
Params:
Name | Type | Attribute | Description |
row | * |
public restoreComponentsContext() source
public setRowComponentsData(rowIndex: *, rowData: *) source
Params:
Name | Type | Attribute | Description |
rowIndex | * | ||
rowData | * |
public setStaticValue(n: *) source
Params:
Name | Type | Attribute | Description |
n | * |
public setValue(value: *, flags: {}): * source
Params:
Name | Type | Attribute | Description |
value | * | ||
flags | {} |
|
Return:
* |
public toggleGroup(element: *, index: *) source
Params:
Name | Type | Attribute | Description |
element | * | ||
index | * |