0.0.3 • Published 3 years ago

tg-live-chat v0.0.3

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

TgLiveChat

Angular live chat component

Install

npm install tg-live-chat

Import

import {LiveChatModule} from "live-chat";

Getting Started

<tg-live-chat headerInfo="headerInfo" users="chatUsers" messages="messages" (loadMore)="loadMore()" (send)="sendMessage($event)" (open)="open()" (close)="close()">

Properties

NameTypeDescription
headerInfoObjectInformation in chat header. Interface - HeaderInfo.
usersArrayChat users. Interface - ChatUser.
messagesArrayChat messages. Interface - Message.
showAttachmentsButtonBooleanShow clip attachment button.
placeholderEditorStringText palceholder editor. Default "Message".
isChatBooleanIf value is true when show avatars. Use when users > 2. Default false.

Events

NameDescription
loadMoreEvent emitting when reached top the chat. Use for load parts of older messages.
sendEvent emitting send message.
openEvent emitting open dialog.
closeEvent emitting close dialog.
0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago