ChatMessageModel
A model representing a single message in the ChatPanel widget. Each message has a text body, a direction indicator (fromOther), and optional interactive elements like user-selectable option buttons.
const message = new ChatMessageModel({
text : 'Hello, how can I help?',
fromOther : true,
options : ['Option A', 'Option B']
});
See also
No results
Fields
Fields belong to a Model class and define the Model data structure-
A boolean indicating the source of the message.
trueif it's a remote message,falsefor a local message -
An array of strings to present to the user in the UI. After user picks a value, the conversation can continue.
-
The message text
-
The timestamp of this message
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of ChatMessageModel class, or subclass thereof.
-
Identifies an object as an instance of ChatMessageModel class, or subclass thereof.