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
**(6)**`room-message` can be used to add a default textarea value
267
268
268
-
**(7)**`messages-loaded` must be set to `true` when all messages of a conversation have been loaded. Meaning the user cannot scroll on top to load more paginated messages
269
+
**(7)**`username-options` can be used to show/hide room messages username according to the minimum number of users `minUsers` inside a room, and if the message user is the current user `currentUser`
269
270
270
-
**(8)**`room-actions` can be used to display your own buttons when clicking the dropdown icon of each room inside the rooms list.<br>
271
+
**(8)**`messages-loaded` must be set to `true` when all messages of a conversation have been loaded. Meaning the user cannot scroll on top to load more paginated messages
272
+
273
+
**(9)**`room-actions` can be used to display your own buttons when clicking the dropdown icon of each room inside the rooms list.<br>
271
274
You can then use the [room-action-handler](#events-api) event to call your own action after clicking a button. Ex:
272
275
273
276
```javascript
@@ -279,7 +282,7 @@ room-actions="[
279
282
]"
280
283
```
281
284
282
-
**(9)**`menu-actions` can be used to display your own buttons when clicking the vertical dots icon inside a room.<br>
285
+
**(10)**`menu-actions` can be used to display your own buttons when clicking the vertical dots icon inside a room.<br>
283
286
You can then use the [menu-action-handler](#events-api) event to call your own action after clicking a button. Ex:
284
287
285
288
```javascript
@@ -299,7 +302,7 @@ menu-actions="[
299
302
]"
300
303
```
301
304
302
-
**(10)**`message-actions` can be used to display your own buttons when clicking the dropdown icon inside a message.<br>
305
+
**(11)**`message-actions` can be used to display your own buttons when clicking the dropdown icon inside a message.<br>
303
306
You can then use the [message-action-handler](#events-api) event to call your own action after clicking a button. Ex:
304
307
305
308
```javascript
@@ -339,7 +342,7 @@ messageActions="[
339
342
]"
340
343
```
341
344
342
-
**(11)**`templates-text` can be used to add autocomplete templates text when typing `/` in the room textarea. Ex:
345
+
**(12)**`templates-text` can be used to add autocomplete templates text when typing `/` in the room textarea. Ex:
343
346
344
347
```javascript
345
348
templatesText="[
@@ -354,7 +357,7 @@ templatesText="[
354
357
]"
355
358
```
356
359
357
-
**(12)**`auto-scroll` can be used to change the auto scroll behaviour when sending/receiving a message. Ex:
360
+
**(13)**`auto-scroll` can be used to change the auto scroll behaviour when sending/receiving a message. Ex:
358
361
359
362
```javascript
360
363
auto-scroll="{
@@ -369,11 +372,11 @@ auto-scroll="{
369
372
}"
370
373
```
371
374
372
-
**(13)**`show-new-messages-divider` can be used to show/hide the blue line divider between seen and unseen messages.
375
+
**(14)**`show-new-messages-divider` can be used to show/hide the blue line divider between seen and unseen messages.
373
376
374
-
**(14)**`show-footer` can be used to hide the room footer. For example to prevent users to send any message or media.
377
+
**(15)**`show-footer` can be used to hide the room footer. For example to prevent users to send any message or media.
375
378
376
-
**(15)**`text-messages` can be used to replace default i18n texts. Ex:
379
+
**(16)**`text-messages` can be used to replace default i18n texts. Ex:
377
380
378
381
```javascript
379
382
text-messages="{
@@ -391,7 +394,7 @@ text-messages="{
391
394
}"
392
395
```
393
396
394
-
**(16)**`text-formatting` can be used to add text formatting. Bold, italic, strikethrough, underline, inline code and multiline code formatting are currently available and can be used in conjonction.
397
+
**(17)**`text-formatting` can be used to add text formatting. Bold, italic, strikethrough, underline, inline code and multiline code formatting are currently available and can be used in conjonction.
395
398
396
399
- You can disable text formatting by passing the prop `:text-formatting="{disabled: true}"`.
397
400
- You can change markdown characters, for example: `:text-formatting="{italic: '^'}"`
@@ -422,31 +425,31 @@ This is
422
425
multiline code
423
426
```
424
427
425
-
**(17)**`link-options` can be used to disable url links in messages, or change urls target. Ex:
428
+
**(18)**`link-options` can be used to disable url links in messages, or change urls target. Ex:
**(18)**`room-info-enabled` can be used to trigger an event after clicking the room header component.<br>
434
+
**(19)**`room-info-enabled` can be used to trigger an event after clicking the room header component.<br>
432
435
You can then use the [room-info](#events-api) event to call your own action after clicking the header.
433
436
434
-
**(19)**`textarea-action-enabled` can be used to add an extra icon on the right of the textarea<br>
437
+
**(20)**`textarea-action-enabled` can be used to add an extra icon on the right of the textarea<br>
435
438
You can then use the [textarea-action-handler](#events-api) event to call your own action after clicking the icon.
436
439
437
-
**(20)**`responsive-breakpoint` can be used to collapse the rooms list on the left when then viewport size goes below the specified width.
440
+
**(21)**`responsive-breakpoint` can be used to collapse the rooms list on the left when then viewport size goes below the specified width.
438
441
439
-
**(21)**`single-room` 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.
442
+
**(22)**`single-room` 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.
440
443
441
-
**(22)**`scroll-distance` can be used to change the number of pixels before `fetchMessages` event is triggered when scrolling up to load more messages, or `fetchMoreRooms` event is triggered when scrolling down to load more rooms.
444
+
**(23)**`scroll-distance` can be used to change the number of pixels before `fetchMessages` event is triggered when scrolling up to load more messages, or `fetchMoreRooms` event is triggered when scrolling down to load more rooms.
442
445
443
-
**(23)**`theme` can be used to change the chat theme. Currently, only `light` and `dark` are available.
446
+
**(24)**`theme` can be used to change the chat theme. Currently, only `light` and `dark` are available.
444
447
445
-
**(24)**`accepted-files` can be used to set specifics file types allowed in chat. By default, all file types are allowed: `"*"`.
448
+
**(25)**`accepted-files` can be used to set specifics file types allowed in chat. By default, all file types are allowed: `"*"`.
446
449
447
450
Example: set `"accepted-files="image/png, image/jpeg, application/pdf"` to allow `JPG``PNG` and `PDF` files only
448
451
449
-
**(25)**`styles` can be used to customize your own theme. You can find the full list [here](src/themes/index.js)
452
+
**(26)**`styles` can be used to customize your own theme. You can find the full list [here](src/themes/index.js)
0 commit comments