You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(1) `currentUserId` is required to display UI and trigger actions according to the user using the chat (ex: messages position on the right, etc.)
194
195
195
196
(2) `loadingRooms` can be used to show/hide a spinner icon while rooms are loading
196
197
197
198
(3) `roomId` can be used to load a specific room at any time
198
199
199
-
(4) `roomMessage` can be used to add a default textarea value
200
+
(4) `loadFirstRoom` can be used to remove the default behaviour of opening the first room at initialization
200
201
201
-
(5) `messagesLoaded` must be manually set to `true` when all messages of a conversation have been loaded. Meaning the user cannot scroll on top anymore
202
+
(5) `roomMessage` can be used to add a default textarea value
202
203
203
-
(6) `menuActions` can be used to display your own buttons when clicking the vertical dots icon inside a room.<br>
204
+
(6) `messagesLoaded` must be manually set to `true` when all messages of a conversation have been loaded. Meaning the user cannot scroll on top anymore
205
+
206
+
(7) `menuActions` can be used to display your own buttons when clicking the vertical dots icon inside a room.<br>
204
207
You can then use the [menuActionHandler](#events-api) event to call your own action after clicking a button. Ex:
205
208
206
209
```javascript
@@ -220,7 +223,7 @@ menuActions="[
220
223
]"
221
224
```
222
225
223
-
(7) `messageActions` can be used to display your own buttons when clicking the dropdown icon inside a message.<br>
226
+
(8) `messageActions` can be used to display your own buttons when clicking the dropdown icon inside a message.<br>
224
227
You can then use the [messageActionHandler](#events-api) event to call your own action after clicking a button. Ex:
225
228
226
229
```javascript
@@ -260,9 +263,9 @@ messageActions="[
260
263
]"
261
264
```
262
265
263
-
(8) `showNewMessagesDivider` can be used to show/hide the blue line divider between seen and unseen messages.
266
+
(9) `showNewMessagesDivider` can be used to show/hide the blue line divider between seen and unseen messages.
264
267
265
-
(9) `textMessages` can be used to replace default i18n texts. Ex:
268
+
(10) `textMessages` can be used to replace default i18n texts. Ex:
266
269
267
270
```javascript
268
271
textMessages="{
@@ -279,7 +282,7 @@ textMessages="{
279
282
}"
280
283
```
281
284
282
-
(10) `textFormatting` can be used to add text formatting. Currently, bold, italic, strikethrough, underline, inline code and multiline code formatting are available and can be used in conjonction. You can disable text formatting by passing the prop as `:textFormatting="false"`.
285
+
(11) `textFormatting` can be used to add text formatting. Currently, bold, italic, strikethrough, underline, inline code and multiline code formatting are available and can be used in conjonction. You can disable text formatting by passing the prop as `:textFormatting="false"`.
(11) `responsiveBreakpoint` can be used to collapse the rooms list on the left when then viewport size goes below the specified width.
312
+
(12) `responsiveBreakpoint` can be used to collapse the rooms list on the left when then viewport size goes below the specified width.
310
313
311
-
(12) `singleRoom` can be used if you never want to show the rooms list on the left. You still need to pass the `rooms` prop as an array with a single element.
314
+
(13) `singleRoom` can be used if you never want to show the rooms list on the left. You still need to pass the `rooms` prop as an array with a single element.
312
315
313
-
(13) `theme` can be used to change the chat theme. Currently, only `light` and `dark` are available.
316
+
(14) `theme` can be used to change the chat theme. Currently, only `light` and `dark` are available.
314
317
315
-
(14) `styles` can be used to customize your own theme. Ex:
318
+
(15) `styles` can be used to customize your own theme. Ex:
0 commit comments