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.
FontAwesome icon for the close button.
Object defining the style for modal content.
ConfirmExitModal component renders a modal view for exit confirmation, allowing users to confirm or cancel an exit event from a session or room.
Component
Selector
app-confirm-exit-modal
Standalone
true
Imports
[CommonModule, FormsModule, FontAwesomeModule]
Example
Input
isConfirmExitModalVisible - Determines the visibility of the modal.
Input
onConfirmExitClose - Callback to close the modal.
Input
position - Position on the screen (default: 'topRight').
Input
backgroundColor - Background color of the modal (default: '#83c0e9').
Input
exitEventOnConfirm - Callback function to handle exit confirmation.
Input
member - Identifies the member for whom the exit is confirmed.
Input
ban - Indicates if the exit action includes a ban.
Input
roomName - Name of the room involved in the exit action.
Input
socket - Socket instance for real-time interaction.
Input
islevel - User level information.
Param: confirmExitService
Service to handle the exit confirmation.
Method
ngOnInit - Initializes component properties and default styles for the modal content.
Method
ngOnChanges - Updates component state upon changes in input properties.
Param: changes
Object containing the current and previous property values.
Method
handleConfirmExit - Handles the exit confirmation event, triggering the provided
exitEventOnConfirm
function and then closing the modal.