Selection entry; value resolves through value, then id, then text.
interface TxCollectionItem {
id?: string | number
value?: unknown
text: string
icon?: string
disabled?: boolean
group?: string
imageUrl?: string
items?: TxCollectionItem[]
destructive?: boolean
separator?: boolean
}| Field | Meaning |
|---|---|
| id | Unique stable ID. |
| value | Current input/option value. |
| text | Text to display. |
| icon | Action icon. |
| disabled | Disables interaction. |
| group | Group descriptors or group name. |
| imageUrl | Card image URL. |
| items | Entries; replaced by dataSource when bound. |
| destructive | Marks a destructive action. |
| separator | Marks a menu separator. |
import type { TxCollectionItem } from '@tekocloud.de/tecexpress'
const example: TxCollectionItem = { id: 1, text: 'One', value: 1 }
console.log(example)