kor TürkçeGitHub

List

Lists people, documents or records.

kor/ui/ListSource

When to use

  • Use it when a table would have only a few columns.

Examples

Open records

Loading the example

<k:List items="{path: '/rows', templateShareable: false}" press=".onPress"><k:ListItem key="{id}" title="{title}" text="{text}" meta="{amount}" state="{state}" person="{person}"/></k:List>

Multiple selection

Loading the example

<k:List mode="multi" selectedKeys="a" label="Documents">
	<k:ListItem key="a" group="Required" icon="file-text" title="Invoice"/>
	<k:ListItem key="b" group="Required" icon="file-text" title="Waybill"/>
	<k:ListItem key="c" group="Optional" icon="shield-check" title="Certificate"/>
</k:List>

API

Properties

NameTypeDefaultDescription
modestringnonenone, single or multi
selectedKeysstring[][]Selected keys
labelstringAccessible name
noDatastringText for an empty list
dividedbooleantrueWhether to separate rows with lines

Aggregations

NameTypeDescription
itemsListItem[]Rows

Events

NameTypeDescription
presskey: string
item: object
A row was pressed
selectionChangekeys: string[]
key: string
The selection changed

ListItem

A list row.

Properties

NameTypeDefaultDescription
keystringKey
titlestringTitle
textstringDescription
metastringValue at the end of the row
iconstringIcon
personstringPerson name. Shows an avatar instead of the icon
statusTextstringStatus text
statestringStatus. Hidden when empty
groupstringGroup heading. Rows of a group must be adjacent
enabledbooleantrueWhether the row is enabled

Related

DataGridInbox