Table
Tables are components that display tabular data. A table consists of a body, the table, and column components, the table columns. Table columns can be added/removed at will from the table properties.
Tips
Properties
UI Dialog
Item | Input value | Option | Default value |
---|---|---|---|
ID | string | automatic | |
Width | number | 565 | |
Height | number | 230 | |
X | number | ||
Y | number | ||
Header Color | string color picker | #FFFFFF | |
Pagination | boolean | off | |
Sticky Header | boolean | on | |
Visibility | boolean | on | |
Selecting | boolean | off | |
Row Word Wrap | select | Off | |
Header Font Size | number | 14 | |
Header Height | number | 56 | |
Header Wrap | select | OFF | |
Page Size | number | 100 | |
Value | table [details1] |
Action
Item | Properties | Data Type | Options | Default value |
---|---|---|---|---|
id | string | automatic | ||
width | number | 565 | ||
height | number | 230 | ||
x | number | |||
y | number | |||
headerColor | string | #FFFFFF | ||
pagination | boolean | false | ||
stickyHeader | boolean | true | ||
visibility | boolean | true | ||
Row Word Wrap | rowWordWrap | string | off | |
selecting | boolean | false | ||
pageSize | number | 100 | ||
value | array of object | |||
selected | Object or array of object [details 2][details 3] |
Tips
[Details 1] Value (value)
Gets or sets the value of the entire table of tables. The format of the value is an array of objects representing rows.
The default status is registered as follows.
Register each row from the [Add Row]
button.
To delete, select the check box and click the “Delete” button.
month | company A | company B | company C | company D |
---|---|---|---|---|
02 | 20 | 52 | 72 | 34 |
03 | 5 | 33 | 90 | 55 |
04 | 55 | 30 | 81 | 66 |
05 | 30 | 11 | 62 | 22 |
When handling data in an action, data can be displayed in a table by setting the value (value) in the form of an array of objects, as in the following example. Similarly, the value (value) contains the current state of the displayed data in the table in the form of an array of objects.
Tips
[Details 2] To get the clicked rows from the table column action
In table column actions, the row where the event occurs can be retrieved by the selected property. The selected value (selected
) is a property that allows you to retrieve the row data selected in the table. On the click event (onclick
) of a table column, a row object array with 1 element can be obtained using the selected property.
[Details 3] To get the selected rows from an action outside the table
If the "selecting"
property is set to ON, the left-most column will have a selection checkbox. Row data with the row selection checkbox turned on can be retrieved from an action outside the table by means of the selected value (selected
) property. The acquisition data format is an array of objects.
Event
None