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
Message objects are rendered differently depending on their type. Currently, only text, emoji and file types are supported. Each message object has an `author` field which can have the value 'me' or the id of the corresponding agent.
250
250
251
-
```javascript
251
+
```javascript
252
252
{
253
253
author:'support',
254
254
type:'text',
@@ -282,7 +282,6 @@ Message objects are rendered differently depending on their type. Currently, onl
282
282
}
283
283
}
284
284
}
285
-
286
285
```
287
286
288
287
@@ -346,7 +345,6 @@ yarn dev # this starts the dev server at http://localhost:8080
346
345
- When initializing the component, pass an object specifying the colors used:
347
346
348
347
```javascript
349
-
350
348
let redColors = {
351
349
header: {
352
350
bg:'#D32F2F',
@@ -371,10 +369,12 @@ let redColors = {
371
369
text:'#212121'
372
370
}
373
371
}
372
+
```
374
373
374
+
```vue
375
375
<beautiful-chat
376
-
...
377
-
:colors="redColors"/>
376
+
...
377
+
:colors="redColors" />
378
378
```
379
379
380
380
This is the red variant. Please check [this file](https://github.com/mattmezza/vue-beautiful-chat/tree/master/demo/src/colors.js) for the list of variants shown in the demo page online.
0 commit comments