Skip to main content

ChatRoomSep

Namespace with functions for creating chat room separators.

Index

Variables

ActiveElem

ActiveElem: HTMLDivElement = null

The most recently created chat room separator

Functions

Collapse

  • Collapse(roomSep: HTMLDivElement): Promise<void>
  • Parameters

    • roomSep: HTMLDivElement

    Returns Promise<void>

Create

  • Create(appendChat?: boolean): HTMLDivElement
  • Parameters

    • appendChat: boolean = true

    Returns HTMLDivElement

GetDisplayName

  • GetDisplayName(roomSep: HTMLDivElement): string
  • Parameters

    • roomSep: HTMLDivElement

    Returns string

IsCollapsed

  • IsCollapsed(roomSep: HTMLDivElement): boolean
  • Parameters

    • roomSep: HTMLDivElement

    Returns boolean

SetRoomData

  • SetRoomData(roomSep: HTMLDivElement, data: Pick<ServerChatRoomData, Name | Private | Space>): Promise<void>
  • Parameters

    Returns Promise<void>

Uncollapse

  • Uncollapse(roomSep: HTMLDivElement): Promise<void>
  • Parameters

    • roomSep: HTMLDivElement

    Returns Promise<void>

UpdateDisplayNames

  • UpdateDisplayNames(): Promise<void>
  • Returns Promise<void>