rtk-chat-selector-ui
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
groups | ChatGroup[] | ✅ | - | Participants |
iconPack | IconPack1 | ❌ | defaultIconPack | Icon pack |
selectedGroupId | string | ✅ | - | Selected participant |
selfUserId | string | ✅ | - | Self User ID |
t | RtkI18n | ❌ | useLanguage() | Language |
unreadCounts | Record<string, number> | ✅ | - | Unread counts |
<rtk-chat-selector-ui></rtk-chat-selector-ui><rtk-chat-selector-ui selectedGroupId="example" selfUserId="example"></rtk-chat-selector-ui><script> const el = document.querySelector("rtk-chat-selector-ui");
el.groups= [];</script>