Skip to content

Basic List

The basic list is a simple list with only an icon and a one-line string. It is effective for use in applications with small space requirements, such as mobile applications.

Properties

NoItemInput ValueDefault ValueAction PropertyTypeAction Default ValueDescription
1IDStringAuto-generatedidstringAuto-generatedThe [id] property cannot be set by action.
2WidthString390widthnumber/string390Component width
3HeightString220heightnumber/string220Component height
4XStringxnumber/stringX coordinate position
5YStringynumber/stringY coordinate position
6ColorColor PickercolorstringComponent color
7Icon ColorColor PickericonColorstringIcon color
8Background ColorColor PickerbackgroundColorstringBackground color
9Selected Background ColorColor PickerselectedBackgroundColorstringBackground color when selected
10VisibilityBooleanONvisibilitybooleantrueComponent visibility state
11ValueTable
[Details 1]
[Details 1]valueobject array[Details 1]List items array
12Click EventSelection
1. None
2. Action
ActionclickEventstringActionClick behavior
13selectedobjectSelected item (read-only)

[Details 1] Value

The default status is registered as follows. Register from the "Add" button. To delete, select the check box and click the "Delete" button.

SelectionIDiconPrimaryDivider
Checkboxitem1InboxInboxnone
Checkboxitem2DraftsDraftsnone

"value" is in the form of an array of objects.
[{"id":"item1","icon":"Inbox","primary":"Inbox","divider":"none"},{"id":"item2","icon":"Drafts","primary":"Drafts","divider":"none"}]

Event

Event nameDescription
onclickPerforms an action when clicked.

The "selected" property allows you to retrieve the object in the row you clicked on.

ItemExample
Acquisition method$ui.basic_list_id.selected
Obtained value{“id”:“item1”,“icon”:“Inbox”,“primary”:“Inbox”,“divider”:“none”}