0.1.23 • Published 4 years ago
kharlamov-meet-chat v0.1.23
meet-chat
Project setup
yarn installCompiles and hot-reloads for development
yarn serveCompiles and minifies for production
yarn buildCompiles and minifies for production - as a library
yarn build:libRun your unit tests
yarn test:unitLints and fixes files
yarn lintInstallation
# Using npm
npm install --save meet-chat
# Using yarn
yarn add meet-chatUsage
You can import it as a custom component:
<template>
<chat-container
:is-open="isChatOpen"
:room-id="chatRoomId"
:user-id="userId"
:username="username"
:locale="currentLocale"
@hide-chat="closeChatbox"
@new-chat-message="updateNewChatMessages"
/>
</template>
<script>
import ChatContainer from 'meet-chat'
import 'meet-chat/dist/meet-chat.css'
export default {
components: {
ChatContainer
},
data() {
return {
isChatOpen: false,
userId: "123",
username: "Test user",
chatRoomId: "hostname_roomId",
currentLocale: "en",
numberOfNewMessages: 0,
}
},
},
methods: {
closeChatbox() {
this.isChatOpen = false;
},
updateNewChatMessages(numberOfNewMessages) {
this.numberOfNewMessages = numberOfNewMessages
}
}
</script>Props API
| Prop | Type | Required | Default |
|---|---|---|---|
is-open | Boolean | - | false |
user-id | String | true | - |
username | String | true | - |
room-id | String | true | - |
locale | String | true | - |
locale-texts | Object | - | {} |
custom-styles | Object | - | {} |
Events API
| Event | Params | Fires when |
|---|---|---|
hide-chat | - | an user hides chat |
new-chat-message | Number | the number of new messages changes |
0.1.23
4 years ago
0.1.22
4 years ago
0.1.21
4 years ago
0.1.20
4 years ago
0.1.19
4 years ago
0.1.18
4 years ago
0.1.17
4 years ago
0.1.16
4 years ago
0.1.15
4 years ago
0.1.14
4 years ago
0.1.13
4 years ago
0.1.12
4 years ago
0.1.11
4 years ago
0.1.10
4 years ago
0.1.9
4 years ago
0.1.8
4 years ago
0.1.7
4 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.4
4 years ago
0.1.3
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago