For Dashboard Designers Reference AgGridView
Tuesday, April 16, 2019 6:30 PMAgGridView
Labels: :IA_Function:IA_AgGridView
Inherits from: Function and View
An advanced grid view based on ag-Grid.
Function parameters
Key | Description | Default value | Possible values |
---|---|---|---|
options * |
Object of grid properties that will be passed to ag-Grid. | Object |
* All options from the ag-Grid documentation can be used. Do note that:
- Options that require javascript functions as value cannot be used.
- Options that require an array of objects can be set with the Graphileon dot notation, for example:
columnDefs
requires an array of column definition objects. They can be set using (for example):
"$options.columnDefs.myFirstColumn.field": "name",
"$options.columnDefs.myFirstColumn.headerName": "Name",
"$options.columnDefs.anotherColumn.field": "age",
"$options.columnDefs.anotherColumn.field": "Age"
This is equivalent to:
"$options.columnDefs": "[{field: 'name', headerName:'Name'}, {field:'age', headerName:'Age'}]",
"$options.columnDefs:evaluate": "full"
Outgoing triggers
Type: cellClicked
Occurrence: When the user clicks a cell
Additional event properties (besides the inherited properties):
Key | Description | Possible values |
---|---|---|
value |
The value inside the clicked cell | any |
column |
The name of the column of the clicked cell | string |
Type: cellDoubleClicked
Occurrence: When the user double-clicks a cell.
Additional event properties (besides the inherited properties):
Key | Description | Possible values |
---|---|---|
value |
The value inside the clicked cell | any |
column |
The name of the column of the clicked cell | string |
Type: rowClicked
Occurrence: When the user clicks a row.
Additional event properties (besides the inherited properties):
Key | Description | Possible values |
---|---|---|
data |
The data in the clicked row | object |
rowIndex |
The index of the clicked row | number |
Type: rowDoubleClicked
Occurrence: When the user double-clicks a row.
Additional event properties (besides the inherited properties):
Key | Description | Possible values |
---|---|---|
data |
The data in the clicked row | object |
rowIndex |
The index of the clicked row | number |
Type: cellValueChanged
Occurrence: When the user edits the value in a cell.
Additional event properties (besides the inherited properties):
Key | Description | Possible values |
---|---|---|
value |
The new value of the cell | any |
column |
The name of the column of the cell | string |
oldValue |
The old value in the cell | any |
newValue |
The new value in the cell | any |
Type: rowValueChanged
Occurrence: When the user changes the value in a row (co-occurs with cellValueChanged
).
Additional event properties (besides the inherited properties):
Key | Description | Possible values |
---|---|---|
data |
The new data in the row | object |
rowIndex |
The index of the row | number |