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.)
247
248
@@ -329,11 +330,26 @@ messageActions="[
329
330
]"
330
331
```
331
332
332
-
**(11)**`show-new-messages-divider` can be used to show/hide the blue line divider between seen and unseen messages.
333
+
**(11)**`templates-text` can be used to add autocomplete template text when typing `/` in the room textarea. Ex:
333
334
334
-
**(12)**`show-footer` can be used to hide the room footer. For example to prevent users to send any message or media.
335
+
```javascript
336
+
templatesText="[
337
+
{
338
+
tag: 'help',
339
+
text: 'This is the help'
340
+
},
341
+
{
342
+
tag: 'action',
343
+
text: 'This is the action'
344
+
}
345
+
]"
346
+
```
347
+
348
+
**(12)**`show-new-messages-divider` can be used to show/hide the blue line divider between seen and unseen messages.
349
+
350
+
**(13)**`show-footer` can be used to hide the room footer. For example to prevent users to send any message or media.
335
351
336
-
**(13)**`text-messages` can be used to replace default i18n texts. Ex:
352
+
**(14)**`text-messages` can be used to replace default i18n texts. Ex:
337
353
338
354
```javascript
339
355
text-messages="{
@@ -351,7 +367,7 @@ text-messages="{
351
367
}"
352
368
```
353
369
354
-
**(14)**`text-formatting` 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 `:text-formatting="false"`.
370
+
**(15)**`text-formatting` 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 `:text-formatting="false"`.
**(16)**`room-info-enabled` can be used to trigger an event after clicking the room header component.<br>
403
+
**(17)**`room-info-enabled` can be used to trigger an event after clicking the room header component.<br>
388
404
You can then use the [room-info](#events-api) event to call your own action after clicking the header.
389
405
390
-
**(17)**`textarea-action-enabled` can be used to add an extra icon on the right of the textarea<br>
406
+
**(18)**`textarea-action-enabled` can be used to add an extra icon on the right of the textarea<br>
391
407
You can then use the [textarea-action-handler](#events-api) event to call your own action after clicking the icon.
392
408
393
-
**(18)**`responsive-breakpoint` can be used to collapse the rooms list on the left when then viewport size goes below the specified width.
409
+
**(19)**`responsive-breakpoint` can be used to collapse the rooms list on the left when then viewport size goes below the specified width.
394
410
395
-
**(19)**`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.
411
+
**(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.
396
412
397
-
**(20)**`theme` can be used to change the chat theme. Currently, only `light` and `dark` are available.
413
+
**(21)**`theme` can be used to change the chat theme. Currently, only `light` and `dark` are available.
398
414
399
-
**(21)**`accepted-files` can be used to set specifics file types allowed in chat. By default, all file types are allowed: `"*"`.
415
+
**(22)**`accepted-files` can be used to set specifics file types allowed in chat. By default, all file types are allowed: `"*"`.
400
416
401
417
Example: set `"accepted-files="image/png, image/jpeg, application/pdf"` to allow `JPG``PNG` and `PDF` files only
402
418
403
-
**(22)**`styles` can be used to customize your own theme. You can find the full list [here](src/themes/index.js)
419
+
**(23)**`styles` can be used to customize your own theme. You can find the full list [here](src/themes/index.js)
0 commit comments