Data grid container in Creatio Mobile
Use the Data grid container to add and edit table data.
View the example of a configuration object that adds table data below.
{
"type": "crt.DataGrid",
"features": {
"editable": {
"enable": true
},
"rows": {
"toolbar": true
}
},
"rowTitle": "\$Account",
"columns": [
{
"code": "Name",
"width": 200,
"sticky": true,
"cellView": {
"type": "crt.ViewField",
"value": "\$Name",
"maxLines": 3,
"label": {
"visible": false
}
},
"readonly": true
},
{
"code": "CreatedOn"
},
{
"code": "DoNotUseEmail"
},
{
"code": "Age"
}
],
"sorting": [
{
"columnCode": "Name",
"direction": "asc"
}
],
verticalScroll: true
}
string type
Component type. crt.DataGrid for the Data grid container.
string features
Additional component features.
Parameters
Name | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
object editable | Manages the editing of data. Parameters
| ||||||||
object rows | Additional features of component rows. Parameters
|
string rowTitle
Pre-configured and non-editable column name. When you set the rowTitle property, Creatio Mobile ignores the sticky property value.
array of objects columns
Array of columns to load.
Parameters
Name | Description | ||||
|---|---|---|---|---|---|
number id | Unique column identifier. If you omit a value, Creatio Mobile uses the | ||||
string code | Column name. | ||||
string caption | Column caption. If you omit a value, Creatio Mobile receives the | ||||
number dataValueType | Column data type. | ||||
number width | Column width. If you omit a value, Creatio Mobile uses out-of-the-box column width (120px). | ||||
boolean hidden | The flag that determines whether to hide a column. By default, Available values
| ||||
boolean sticky | The flag that determines whether to freeze a column. By default, Available values
| ||||
boolean readonly | The flag that sets the column to read-only. By default, Available values
| ||||
object cellView | Parameters that determine conditions to view and edit column. List of parameters depends on column type. |
array of objects sorting
Sort component data.
Parameters
Name | Description | ||||||
|---|---|---|---|---|---|---|---|
string columnCode | Column name. | ||||||
string direction | The sorting order. Available values
|
boolean verticalScroll
The flag that determines whether to scroll component data. By default, false.
Available values
true | Scrolling is enabled. |
false | Scrolling is disabled. |