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.

Property

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 text color. Added in v3.4.0.
7Icon ColorColor PickericonColorstringIcon color. Added in v3.4.0.
8Background ColorColor PickerbackgroundColorstringBackground color. Added in v3.4.0.
9VisibilityBooleanONvisibilitybooleantrueComponent visibility state
10ValueTable
[Details 1]
[Details 1]valueobject array[Details 1]List items array
11Click EventSelection
1. None
2. Action
ActionclickEventstringActionClick behavior
12selectedobjectSelected 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”}