Options
All
  • Public
  • Public/Protected
  • All
Menu

Module GenHtml/GenHtml

Index

Functions

genButtonIcon

  • genButtonIcon(iconClass: string, onClickHandler?: (this: HTMLAnchorElement, ev: MouseEvent) => unknown, title?: string): HTMLAnchorElement
  • Parameters

    • iconClass: string
    • Optional onClickHandler: (this: HTMLAnchorElement, ev: MouseEvent) => unknown
        • (this: HTMLAnchorElement, ev: MouseEvent): unknown
        • Parameters

          • this: HTMLAnchorElement
          • ev: MouseEvent

          Returns unknown

    • Optional title: string

    Returns HTMLAnchorElement

genButtonLabel

  • genButtonLabel(label: string, onClickHandler?: (this: HTMLAnchorElement, ev: MouseEvent) => unknown): HTMLElement
  • Parameters

    • label: string
    • Optional onClickHandler: (this: HTMLAnchorElement, ev: MouseEvent) => unknown
        • (this: HTMLAnchorElement, ev: MouseEvent): unknown
        • Parameters

          • this: HTMLAnchorElement
          • ev: MouseEvent

          Returns unknown

    Returns HTMLElement

genElText

  • genElText(element: string, text: string): HTMLElement
  • Parameters

    • element: string
    • text: string

    Returns HTMLElement

genPaneElement

  • genPaneElement(title: string, content: HTMLElement | HTMLElement[]): HTMLElement
  • Parameters

    • title: string
    • content: HTMLElement | HTMLElement[]

    Returns HTMLElement

genRoomPopup

  • genRoomPopup(room: default, navigateToHandler: () => void): HTMLElement
  • Parameters

    • room: default
    • navigateToHandler: () => void
        • (): void
        • Returns void

    Returns HTMLElement

genTextInput

  • genTextInput(placeholder?: string, content?: string, border?: boolean): HTMLInputElement
  • Parameters

    • Optional placeholder: string
    • Optional content: string
    • border: boolean = true

    Returns HTMLInputElement

htmlDropdown

  • htmlDropdown(displayAndIds: [string, string][]): HTMLSelectElement
  • Parameters

    • displayAndIds: [string, string][]

    Returns HTMLSelectElement

label

  • label(text: string, labels: string): HTMLLabelElement
  • Parameters

    • text: string
    • labels: string

    Returns HTMLLabelElement

Generated using TypeDoc