Optional. Controls the text direction (for supporting right-to-left languages such as Arabic and Hebrew). TalkJS tries to determine the appropriate text direction from the parent page, but if that does not work or you want to explicitly control it, you can override it here.
Controls how a chat is displayed in the feed of chats.
Note: when set to
"subject" but a conversation has no subject set, then
TalkJS falls back to
When not set, defaults to
"auto", which means that in group conversations
that have a subject set, the subject is displayed and otherwise the participants.
Optional. Sets the message input box to the given text. You can use this to suggest a certain initial message to be sent. The user can still edit it before hitting "send".
Optional. either a
Conversation object (as returned from
getOrCreateConversation) or the
id field of a conversation. If given,
makes the inbox start up with that conversation selected.
Optional, defaults to true. Set to false to make TalkJS display the chat without its header (the upper bar that shows names and the user's photo).
Optional, defaults to true. Set to false to make TalkJS display the chat feed without its header. On desktop, this header contains the toggle to enable desktop notifications, so you may want to implement that toggle yourself using Session.setDesktopNotificationEnabled.
iframes behind the scenes and therefore not all services that you use in your app will work out of the box.
This option adds support for a number of services to help you use them. Let us know if you're missing any.
Controls whether the user navigating between conversation should count as steps in the browser history. Defaults to true, which means that if the user clicks the browser's back button, they go back to the previous conversation (if any).
Generated using TypeDoc