t×tecexpressby TeKOcloud
DEv0.7.1
API & types / VUE

TxCollectionItem.

Selection entry; value resolves through value, then id, then text.

ts
interface TxCollectionItem {
  id?: string | number
  value?: unknown
  text: string
  icon?: string
  disabled?: boolean
  group?: string
  imageUrl?: string
  items?: TxCollectionItem[]
  destructive?: boolean
  separator?: boolean
}
FieldMeaning
idUnique stable ID.
valueCurrent input/option value.
textText to display.
iconAction icon.
disabledDisables interaction.
groupGroup descriptors or group name.
imageUrlCard image URL.
itemsEntries; replaced by dataSource when bound.
destructiveMarks a destructive action.
separatorMarks a menu separator.
ts
import type { TxCollectionItem } from '@tekocloud.de/tecexpress'
const example: TxCollectionItem = { id: 1, text: 'One', value: 1 }
console.log(example)