@rivigo-ui-commons/chat-widget
v1.2.0
Published
Chat Widget -
Downloads
5
Readme
Chat Widget -
<ChatWidget chatId={chatId} commentHistory={this.state.commentHistory} documentData={this.state.documentData} loadingCommentHistory={this.state.loadingCommentHistory} uploadingDocument={this.state.uploadingDocument} onAddComment={(ticketId, comment) => this.addComment(ticketId, comment)} onUploadFiles={(event, ticketid) => this.uploadFiles(event, ticketid)} onCommentChange={(comment) => this.handleCommentChange(comment)} />
Properties -
chatId - unique id of chat widget
commentHistory - {type: 'Comment', timestamp, message, name: (initials to be shown ), title, contactNumber, department}
{type: 'Document', timestamp, url, documentName, name: (initials to be shown ), title, contactNumber, department}
documentData - {lastUpdatedTimestamp, documentName, url, userDetail: {name}}
loadingCommentHistory - boolean
uploadingDocument - boolean
onAddComment - function(chatId, comment)
onUploadFiles - function(event, chatId)
onCommentChange - function(comment)