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.)
252
253
@@ -414,13 +415,15 @@ You can then use the [textarea-action-handler](#events-api) event to call your o
414
415
415
416
**(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.
416
417
417
-
**(21)**`theme` can be used to change the chat theme. Currently, only `light` and `dark` are available.
418
+
**(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.
418
419
419
-
**(22)**`accepted-files` can be used to set specifics file types allowed in chat. By default, all file types are allowed: `"*"`.
420
+
**(22)**`theme` can be used to change the chat theme. Currently, only `light` and `dark` are available.
421
+
422
+
**(23)**`accepted-files` can be used to set specifics file types allowed in chat. By default, all file types are allowed: `"*"`.
420
423
421
424
Example: set `"accepted-files="image/png, image/jpeg, application/pdf"` to allow `JPG``PNG` and `PDF` files only
422
425
423
-
**(23)**`styles` can be used to customize your own theme. You can find the full list [here](src/themes/index.js)
426
+
**(24)**`styles` can be used to customize your own theme. You can find the full list [here](src/themes/index.js)
424
427
425
428
```javascript
426
429
styles="{
@@ -678,8 +681,8 @@ Example:
678
681
```
679
682
680
683
| <divstyle="width:230px">Slot</div> | Action | Data | Overridden slots |
|`custom-action-icon`| Add a custom icon inside the footer | - | - ||`rooms-header`| Add a template on top of rooms list (above the search bar) | - | - |
|`custom-action-icon`| Add a custom icon inside the footer | - | - ||`rooms-header`| Add a template on top of rooms list (above the search bar) | - | -|
683
686
|`room-list-item`| Replace the template of the room list items |`room`|`room-list-avatar`, `room-list-options`|
684
687
|`room-list-avatar`| Replace the avatar of room list items |`room`||
685
688
|`room-list-options`| Replace the template of the list room options |`room`|`room-list-options-icon`|
0 commit comments