INTEGRITY Dokumentace

rtk-chat-composer-ui

@deprecated . Tato komponenta je zastaralá, použijte místo ní rtk-chat-composer-view.

Vlastnosti

Vlastnost Typ Povinné Výchozí Popis
canSendFiles boolean - Zda uživatel může odesílat zprávy se soubory
canSendTextMessage boolean - Zda uživatel může odesílat textové zprávy
iconPack IconPack1 defaultIconPack Sada ikon
prefill { suggestedReplies?: string[]; editMessage?: TextMessage; replyMessage?: TextMessage; } - předvyplnění composeru
size Size1 - Velikost
t RtkI18n useLanguage() Jazyk

Příklady použití

Základní použití

<rtk-chat-composer-ui></rtk-chat-composer-ui>

S vlastnostmi

<rtk-chat-composer-ui
 size="md">
</rtk-chat-composer-ui>
<script>
  const el = document.querySelector("rtk-chat-composer-ui");

  el.canSendFiles= true;
  el.canSendTextMessage= true;
</script>