Custom List
Custom List is a component that allows you to add and customize list item components as list items.
Actions can also be executed from added components.
[v3.3.0] This component was added.
Properties
| No | Item | Input Value | Default Value | Action Property | Type | Action Default Value | Description |
|---|---|---|---|---|---|---|---|
| 1 | ID | String | Auto-set | id | string | Auto-set | The [id] property cannot be set in actions. |
| 2 | Width | Number | 640 | width | number | 640 | Component width |
| 3 | Height | Number | 640 | height | number | 640 | Component height |
| 4 | X | Number | x | number | X coordinate position | ||
| 5 | Y | Number | y | number | Y coordinate position | ||
| 6 | List Item Height | Number | 240 | listItemHeight | number | 240 | List row height |
| 7 | Background Color | String Color Picker | backgroundColor | string | Background color | ||
| 8 | Selected Background Color | String Color Picker | selectedBackgroundColor | string | Background color when list row is selected | ||
| 9 | Divider | Select 1. None 2. Full Width 3. Middle 4. Inset | None | divider | string | None | Divider display setting |
| 10 | Scrollbar | Boolean | OFF | switch | boolean | false | Scrollbar display setting |
| 11 | Visibility | Boolean | ON | visibility | boolean | true | Component visibility setting |
| 12 | Value | Table format[Detail 1] | value | array of object | Custom list value | ||
| 13 | Click Event | Select 1. None 2. Action | None | [When Click Event is None]Only actions within list item components are enabled. [When Click Event is Action]Only actions when clicking list rows are enabled. | |||
| 14 | Selected | selected | object | Data of the selected list row |
[Detail 1] Value
Gets and sets the value of the entire custom list table. The value format is an array of objects representing rows.
The default state is registered as follows. Register each row from the [Add Row] button.
To delete, select the checkbox and click the [Delete] button.
| text_field_1 | button_1 | typography_1 |
|---|---|---|
| Text_1 | Button_1 | Description_1 |
| Text_2 | Button_2 | Description_2 |
| Text_3 | Button_3 | Description_3 |
When handling data in actions, setting value in the array of objects format as shown in the example below will display data in each component of the custom list. Similarly, value contains the current display data state of the table in array of objects format.
[ {"text_field_1":"Text_1","button_1":"Button_1","typography_1":"Description_1"}, {"text_field_1":"Text_2","button_1":"Button_2","typography_1":"Description_2"}, {"text_field_1":"Text_3","button_1":"Button_3","typography_1":"Description_3"}][Detail 2] Getting Clicked Row from List Row Actions
In list row click actions and component actions within list rows, the event occurrence row can be obtained through the selected property. The selected property can get the selected row data. In custom list events, a row object with one element can be obtained through the selected property.
Events
| Event Name | Description |
|---|---|
| onclick | Occurs when a list row is clicked. |