File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ You can import it as a custom component:
88
88
(3) ` menuActions ` can be used to display your own buttons when clicking the vertical dots icon inside a room.<br >
89
89
You can then use the [ menuActionHandler] ( #events-api ) event to call your own action after clicking a button. Ex:
90
90
91
- ``` javascript
91
+ ``` html
92
92
menuActions="[
93
93
{
94
94
name: 'inviteUser',
@@ -107,7 +107,7 @@ menuActions="[
107
107
108
108
(4) ` textMessages ` can be used to replace default texts. Ex:
109
109
110
- ``` javascript
110
+ ``` html
111
111
textMessages="{
112
112
MESSAGE_DELETED: 'Ce message a été supprimé',
113
113
MESSAGES_EMPTY: 'Aucun message',
@@ -123,7 +123,7 @@ Your props must follow a specific structure to display rooms and messages correc
123
123
124
124
### Rooms prop
125
125
126
- ``` javascript
126
+ ``` html
127
127
rooms="[
128
128
{
129
129
roomId: 1,
@@ -147,10 +147,10 @@ rooms="[
147
147
Message objects are rendered differently depending on their type. Currently, only text, emoji and file types are supported.<br >
148
148
Each message object has a ` sender_id ` field which can have the value 'me' or the id of the corresponding agent.
149
149
150
- ``` javascript
150
+ ``` html
151
151
messages="[
152
152
{
153
- content: 'message 1" ,
153
+ content: 'message 1' ,
154
154
sender_id: 1234,
155
155
username: 'John Doe',
156
156
date: '13 November',
@@ -254,7 +254,7 @@ messages: {
254
254
MESSAGE_ID_1 : {
255
255
content: ' My first message' ,
256
256
sender_id: 2 ,
257
- timestamp: 'December 11, 2019 at 4:00:00 PM UTC+2,
257
+ timestamp: ' December 11, 2019 at 4:00:00 PM UTC+2' ,
258
258
seen: true
259
259
}
260
260
}
You can’t perform that action at this time.
0 commit comments