projects/openvidu-angular/src/lib/components/panel/chat-panel/chat-panel.component.ts
The ChatPanelComponent is hosted inside of the PanelComponent. It is in charge of displaying the session chat.
The ChatPanelComponent can be replaced with a custom component. It provides us the following Angular structural directives for doing this.
Directive | Reference |
---|---|
*ovChatPanel | ChatPanelDirective |
See all OpenVidu Angular Directives
changeDetection | ChangeDetectionStrategy.OnPush |
selector | ov-chat-panel |
styleUrls | ../panel.component.css, |
templateUrl | ./chat-panel.component.html |
Properties |
Methods |
close |
close()
|
Returns :
void
|
scrollToBottom |
scrollToBottom()
|
Returns :
void
|
sendMessage |
sendMessage()
|
Returns :
void
|
messageList |
Type : ChatMessage[]
|
Default value : []
|