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.)
113
114
114
115
(2) `loadingRooms` can be used to show/hide a spinner icon while rooms are loading
115
116
116
117
(3) `roomId` can be used to load a specific room at any time
117
118
118
-
(4) `messagesLoaded` must be manually set to `true` when all messages of a conversation have been loaded. Meaning the user cannot scroll on top anymore
119
+
(4) `roomMessage` can be used to add a default textarea value
119
120
120
-
(5) `menuActions` can be used to display your own buttons when clicking the vertical dots icon inside a room.<br>
121
+
(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
122
+
123
+
(6) `menuActions` can be used to display your own buttons when clicking the vertical dots icon inside a room.<br>
121
124
You can then use the [menuActionHandler](#events-api) event to call your own action after clicking a button. Ex:
122
125
123
126
```javascript
@@ -137,7 +140,7 @@ menuActions="[
137
140
]"
138
141
```
139
142
140
-
(6) `messageActions` can be used to display your own buttons when clicking the dropdown icon inside a message.<br>
143
+
(7) `messageActions` can be used to display your own buttons when clicking the dropdown icon inside a message.<br>
141
144
You can then use the [messageActionHandler](#events-api) event to call your own action after clicking a button. Ex:
142
145
143
146
```javascript
@@ -177,7 +180,7 @@ messageActions="[
177
180
]"
178
181
```
179
182
180
-
(7) `textMessages` can be used to replace default i18n texts. Ex:
183
+
(8) `textMessages` can be used to replace default i18n texts. Ex:
181
184
182
185
```javascript
183
186
textMessages="{
@@ -190,7 +193,7 @@ textMessages="{
190
193
}"
191
194
```
192
195
193
-
(8) `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"`.
196
+
(9) `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"`.
(9) `responsiveBreakpoint` can be used to collapse the rooms list on the left when then viewport size goes below the specified width.
223
+
(10) `responsiveBreakpoint` can be used to collapse the rooms list on the left when then viewport size goes below the specified width.
221
224
222
-
(10) `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.
225
+
(11) `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.
223
226
224
-
(11) `theme` can be used to change the chat theme. Currently, only `light` and `dark` are available.
227
+
(12) `theme` can be used to change the chat theme. Currently, only `light` and `dark` are available.
225
228
226
-
(12) `styles` can be used to customize your own theme. Ex:
229
+
(13) `styles` can be used to customize your own theme. Ex:
0 commit comments