Skip to content

非公式 / UnofficialCloudflare, Inc. 非提携。アカウント情報は入力しないでください。Not affiliated with Cloudflare, Inc. Do not enter Cloudflare credentials here.Official docsこのサイトについてプライバシー

rtk-chat-selector-ui

最終更新 Markdown で表示Agent セットアップ

プロパティ

プロパティ 型 必須 デフォルト 説明
groups ChatGroup[] ✅ - 参加者
iconPack IconPack1 ❌ defaultIconPack アイコンパック
selectedGroupId string ✅ - 選択中の参加者
selfUserId string ✅ - 自分のユーザー ID
t RtkI18n ❌ useLanguage() 言語
unreadCounts Record<string, number> ✅ - 未読数

使用例

基本的な使い方

<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>

役に立ちましたか?