PopupOptions class

Annotations
  • @JS()
  • @anonymous

Constructors

PopupOptions()
factory

Properties

chatSubtitleMode String?
Controls what text appears in the chat subtitle, right below the chat title. No subtitle is displayed when the conversation has no subject set or when set to null. Defaults to "subject".
getter/setter pair
chatTitleMode String?
Controls what text appears in the chat title, in the header above the messages. Defaults to "participants".
getter/setter pair
dir String?
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. Defaults to "rtl". "rtl" | "ltr"
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
keepOpen bool?
If enabled, the Popup will reopen every time the user navigates to another page. This way, a conversation can continue while the user browses around. Set to false to disable this behavior.
getter/setter pair
launcher String?
Specifies whether to show a round launcher and/or close button beneath the popup in the right bottom corner of the page.
getter/setter pair
messageField MessageFieldOptions?
Settings that affect the behavior of the message field
getter/setter pair
messageFilter MessagePredicate?
Used to control which messages are shown in the message list, depending on a type, origin or custom message attributes.
getter/setter pair
messageSuggestion String?
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".
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showChatHeader bool?
Used to control if the Chat Header is displayed in the UI. Defaults to true.
getter/setter pair
showCloseInHeader ↔ dynamic
Whether to show the "x" icon in the popup header to close the popup. "auto", which is the default value means true on mobile and to false on desktop.
getter/setter pair
showTranslationToggle ↔ dynamic
Set this to true to show a translation toggle in all conversations. Set this to "auto" to show a translation toggle in conversations where there are participants with different locales. This setting defaults to false, meaning that no toggles will be shown. In order to use this, you must be on the Premium plan, and set a Google Translate API key in the dashboard.
getter/setter pair
thirdparties ThirdPartyOptions
TalkJS leverages 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.
getter/setter pair
translateConversations ↔ dynamic
TalkJS can translate conversations to the current user's locale using Google Translate. This option specifies which conversations should be translated in this UI. You can pass a boolean to enable/disable translation for all conversations, "auto" to enable translation on conversations where users have different locales, or you can pass an array of {@link ConversationBuilder}s or conversation Ids to be translated. This feature is only available on the Premium plan and above. Make sure you add your Google Translate API key in the dashboard.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited