IDataListKVItem
interface
Data Display
Shape of a single key/value row when <OrigamDataList> runs in mode="kv". The key is the visible label in the <dt> cell; the value fills the <dd> cell as plain text, a VNode, or an IDataListKVItemValueComponent descriptor.
TypeScript
Définition
La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
API
Propriétés
Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.
- keyrequisstring
- Visible label rendered in the <dt> cell. Also kebab-cased to build the row data-cy selector.
- valuerequisstring | number | VNode | IDataListKVItemValueComponent
- Value rendered in the <dd> cell. Plain text or number is rendered as-is; VNode is rendered directly; IDataListKVItemValueComponent is resolved via <component :is>.
- idstring | number
- Optional stable row id. Falls back to key when omitted — supply your own when keys may repeat across instances.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Key/value list with a chip as value