Class BreakoutRoomsModal

BreakoutRoomsModal component manages the creation, modification, and assignment of breakout rooms.

app-breakout-rooms-modal

  • isVisible (boolean): Controls the visibility of the breakout rooms modal. Default is false.
  • parameters (BreakoutRoomsModalParameters): Parameters for managing breakout room settings and behavior.
  • position (string): Position of the modal on the screen. Default is 'topRight'.
  • backgroundColor (string): Background color of the modal. Default is '#83c0e9'.
  • onBreakoutRoomsClose (function): Callback function triggered when the modal is closed.
  • ngOnInit(): Lifecycle hook to initialize modal width and breakout rooms.
  • ngOnChanges(changes: SimpleChanges): Lifecycle hook called when any data-bound input properties change.
  • calculateModalWidth(): Dynamically calculates and sets modal width based on screen width.
  • modalContainerStyle(): Returns style object for modal container.
  • modalContentStyle(): Returns style object for modal content.
  • initializeBreakoutRooms(): Initializes the breakout rooms based on the current participants and parameters.
  • handleRandomAssign(): Randomly assigns participants to breakout rooms.
  • handleManualAssign(): Initializes manual room assignment by setting empty breakout rooms.
  • handleAddRoom(): Adds a new breakout room.
  • handleSaveRooms(): Validates and saves breakout room configurations.
  • validateRooms(): Validates room configurations and participants' uniqueness and quantity.
  • checkCanStartBreakout(): Checks conditions to enable the start of breakout rooms.
  • handleStartBreakout(): Starts the breakout session if conditions are met.
  • handleStopBreakout(): Stops the breakout session and reverts to the initial meeting display type.
  • handleEditRoom(roomIndex: number): Opens the modal to edit the specified breakout room.
  • handleDeleteRoom(roomIndex: number): Deletes a breakout room and updates participants' room assignments.
  • handleAddParticipant(event): Adds a participant to a specified breakout room.
  • handleRemoveParticipant(event): Removes a participant from a specified breakout room.
  • CommonModule: Angular's common directives.
  • FormsModule: Angular's forms module for form handling.
  • FontAwesomeModule: Font Awesome icons for UI elements.
  • RoomListComponent: Component for listing rooms.
  • EditRoomModalComponent: Component for editing room participants.
<app-breakout-rooms-modal
[isVisible]="isBreakoutRoomsModalVisible"
[parameters]="breakoutRoomsParams"
[position]="modalPosition"
[backgroundColor]="modalBgColor"
[onBreakoutRoomsClose]="onCloseBreakoutRooms">
</app-breakout-rooms-modal>

Implements

  • OnChanges
  • OnInit

Constructors

Methods

  • Returns {
        display: string;
        position: string;
        top: string;
        left: string;
        width: string;
        height: string;
        backgroundColor: string;
        zIndex: string;
    }

    • display: string
    • position: string
    • top: string
    • left: string
    • width: string
    • height: string
    • backgroundColor: string
    • zIndex: string
  • Returns {
        backgroundColor: string;
        borderRadius: string;
        padding: string;
        width: string;
        maxHeight: string;
        overflowX: string;
        overflowY: string;
        position: string;
        top: string;
        bottom: string;
        left: string;
        right: string;
    }

    • backgroundColor: string
    • borderRadius: string
    • padding: string
    • width: string
    • maxHeight: string
    • overflowX: string
    • overflowY: string
    • position: string
    • top: string
    • bottom: string
    • left: string
    • right: string
  • 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.

    Parameters

    • changes: SimpleChanges

      The changed properties.

    Returns void

  • 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

Properties

isVisible: boolean = false
position: string = 'topRight'
backgroundColor: string = '#83c0e9'
onBreakoutRoomsClose: (() => void) = ...
roomsContainerRef: ElementRef<any>
faDoorOpen: IconDefinition = faDoorOpen
faTimes: IconDefinition = faTimes
faRandom: IconDefinition = faRandom
faHandPointer: IconDefinition = faHandPointer
faPlus: IconDefinition = faPlus
faSave: IconDefinition = faSave
faPlay: IconDefinition = faPlay
faSyncAlt: IconDefinition = faSyncAlt
faStop: IconDefinition = faStop
faUsers: IconDefinition = faUsers
participantsRef: Participant[] = []
breakoutRoomsRef: BreakoutParticipant[][] = []
numRooms: string = ''
newParticipantAction: string = 'autoAssignNewRoom'
currentRoom: null | BreakoutParticipant[] = null
editRoomModalVisible: boolean = false
startBreakoutButtonVisible: boolean = false
stopBreakoutButtonVisible: boolean = false
modalWidth: number = 400