A callback method that is invoked immediately after the
default change detector has checked the directive's
data-bound properties for the first time,
and before any of the view or content children have been checked.
It is invoked only once when the directive is instantiated.
Returns void
ngOnChanges
ngOnChanges(changes): void
A callback method that is invoked immediately after the
default change detector has checked data-bound properties
if at least one has changed, and before the view and content
children are checked.
MessagesModal - Full-featured chat modal with group and direct messaging
Component
Selector
app-messages-modal
Template Url
./messages-modal.component.html
Style Urls
./messages-modal.component.css
Standalone
true
Imports
[CommonModule, FontAwesomeModule, MessagePanel]
Description
A comprehensive chat modal supporting group and direct messaging with full UI customization. Supports three levels of customization:
overlayStyle
andcontentStyle
customTemplate
for full UI controlFeatures:
Example
Basic Usage
Example
With Style Customization
Example
Custom Template Override
Input
isMessagesModalVisible - Controls modal visibility
Input
onMessagesClose - Callback when modal is closed
Input
messages - Array of chat messages
Input
position - Modal position (default: 'bottomRight')
Input
backgroundColor - Modal background color (default: '#f5f5f5')
Input
eventType - Type of event (meeting, webinar, etc.)
Input
member - Current user's name/ID
Input
islevel - User's privilege level
Input
socket - Socket.io connection for real-time messaging
Input
roomName - Room identifier
Input
overlayStyle - Custom overlay styles
Input
contentStyle - Custom content styles
Input
customTemplate - Complete template override