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)**`current-user-id` is required to display UI and trigger actions according to the user using the chat (ex: messages position on the right, etc.)
256
257
@@ -353,11 +354,26 @@ templatesText="[
353
354
]"
354
355
```
355
356
356
-
**(12)**`show-new-messages-divider` can be used to show/hide the blue line divider between seen and unseen messages.
357
+
**(12)**`auto-scroll` can be used to change the auto scroll behaviour when sending/receiving a message. Ex:
357
358
358
-
**(13)**`show-footer` can be used to hide the room footer. For example to prevent users to send any message or media.
359
+
```javascript
360
+
auto-scroll="{
361
+
send: {
362
+
new: true, // will scroll down after sending a message
363
+
newAfterScrollUp: false // will not scroll down after sending a message when scrolled up
364
+
},
365
+
receive: {
366
+
new: false, // will not scroll down when receiving a message
367
+
newAfterScrollUp: true // will scroll down when receiving a message when scrolled up
368
+
}
369
+
}"
370
+
```
371
+
372
+
**(13)**`show-new-messages-divider` can be used to show/hide the blue line divider between seen and unseen messages.
373
+
374
+
**(14)**`show-footer` can be used to hide the room footer. For example to prevent users to send any message or media.
359
375
360
-
**(14)**`text-messages` can be used to replace default i18n texts. Ex:
376
+
**(15)**`text-messages` can be used to replace default i18n texts. Ex:
361
377
362
378
```javascript
363
379
text-messages="{
@@ -375,7 +391,7 @@ text-messages="{
375
391
}"
376
392
```
377
393
378
-
**(15)**`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.
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.
379
395
380
396
- You can disable text formatting by passing the prop `:text-formatting="{disabled: true}"`.
381
397
- You can change markdown characters, for example: `:text-formatting="{italic: '^'}"`
@@ -406,31 +422,31 @@ This is
406
422
multiline code
407
423
```
408
424
409
-
**(16)**`link-options` can be used to disable url links in messages, or change urls target. Ex:
425
+
**(17)**`link-options` can be used to disable url links in messages, or change urls target. Ex:
**(17)**`room-info-enabled` can be used to trigger an event after clicking the room header component.<br>
431
+
**(18)**`room-info-enabled` can be used to trigger an event after clicking the room header component.<br>
416
432
You can then use the [room-info](#events-api) event to call your own action after clicking the header.
417
433
418
-
**(18)**`textarea-action-enabled` can be used to add an extra icon on the right of the textarea<br>
434
+
**(19)**`textarea-action-enabled` can be used to add an extra icon on the right of the textarea<br>
419
435
You can then use the [textarea-action-handler](#events-api) event to call your own action after clicking the icon.
420
436
421
-
**(19)**`responsive-breakpoint` can be used to collapse the rooms list on the left when then viewport size goes below the specified width.
437
+
**(20)**`responsive-breakpoint` can be used to collapse the rooms list on the left when then viewport size goes below the specified width.
422
438
423
-
**(20)**`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.
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.
424
440
425
-
**(21)**`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.
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.
426
442
427
-
**(22)**`theme` can be used to change the chat theme. Currently, only `light` and `dark` are available.
443
+
**(23)**`theme` can be used to change the chat theme. Currently, only `light` and `dark` are available.
428
444
429
-
**(23)**`accepted-files` can be used to set specifics file types allowed in chat. By default, all file types are allowed: `"*"`.
445
+
**(24)**`accepted-files` can be used to set specifics file types allowed in chat. By default, all file types are allowed: `"*"`.
430
446
431
447
Example: set `"accepted-files="image/png, image/jpeg, application/pdf"` to allow `JPG``PNG` and `PDF` files only
432
448
433
-
**(24)**`styles` can be used to customize your own theme. You can find the full list [here](src/themes/index.js)
449
+
**(25)**`styles` can be used to customize your own theme. You can find the full list [here](src/themes/index.js)
0 commit comments