Data Grid Column
Data grid columns are the individual column components that make up the data grid. It is not independent as a component but exists as a child element of the data grid. Columns can be added using the [+] button in the upper right corner of the data grid properties.
The columns added here are datagrid columns. Data grid columns are arranged in tabular form in the data grid properties. Click on a tab element to access the properties of the corresponding datagrid column. Data grid columns are divided into the following column types. Cell input specifications change depending on the column type.
| Column Type | Data Type | Cell input mood | Cell options | Display format | Value sample |
|---|---|---|---|---|---|
| Text input | string | direct input | apple | ||
| Combobox | string | single selection filterable | 1. apple 2. grape 3. melon | 1. apple 2. grape 3. melon | apple |
| Multi-Select | string(comma seperated) | multiple selection unfilterable | 1. apple 2. grape 3. melon | apple, grape | apple, grape |
| Checkbox | boolean | check | check | true | |
| Date Picker | string | date picker | calendar | 2019/08/01 | 2019-08-01 |
| Button | string | button | Edit button label |
Property
| No | Item | Input Value | Default Value | Action Property | Type | Action Default Value | Description |
|---|---|---|---|---|---|---|---|
| 1 | ID | String | Auto-generated | id | string | Unique identifier for the column | |
| 2 | Label | String | label | string | Column header label | ||
| 3 | Width | Number | 100 | width | number | 100 | Column width |
| 4 | Column Type | Selection 1. Text Input 2. Combobox 3. Multi-Select 4. Checkbox 5. Date Picker 6. Button | Text Input | Column input type (no action property) | |||
| 5 | Button Color | String Color Picker | buttonColor | string | Button color | ||
| 6 | Button Label Color | String Color Picker | buttonLabelColor | string | Button label color | ||
| 7 | Halign | Selection 1. Automatic 2. Left 3. Center 4. Right | Automatic | hAlign | string | auto | Horizontal alignment of cell content |
| 8 | Number Format | String 1. None 2. #,#.## 3. #,#.00 | None | numberFormat | none | Number display format | |
| 9 | Date Format | String 1. yyyy/MM/dd 2. MM/dd/yyyy 3. dd/MM/yyyy | yyyy/MM/dd | dateFormat | yyyy/MM/dd | Date display format | |
| 10 | Visibility | Boolean | ON | visibility | boolean | true | Column display state |
| 11 | Column Filter | Boolean | OFF | filter | boolean | false | Enable filter functionality |
| 12 | Footer | Selection 1. none 2. text 3. sum 4. avg 5. max 6. min 7. count | None | footer | string | none | Footer aggregation type |
| 13 | Footer Text | String | footerText | string | Text to display in footer | ||
| 14 | Options | Table format | options | string array | Selection options | ||
| 15 | Click Event | Selection 1. None 2. Action | None | Event on click | |||
| 16 | Change Event | Selection 1. None 2. Action | None | Event on value change |
| Property | Column type |
|---|---|
| Number format | Text input |
| Date format | Date picker |
| Options | 1. Combobox 2. Multi-select |
| Button Color | Button |
| Button Label Color | Button |
Event
| Event name | Description | Column Type |
|---|---|---|
| onchange | Occurs when a cell value change is made and the cursor is moved out of the cell. | 1. Text input 2. Combobox 3. Multi-select 4. Checkbox 5. Date picker |
| onclick | Occurs when a component in a cell is clicked. | Button |