Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "blessed/maximize"

Index

Variables

Let currentTarget

currentTarget: Element | undefined

Functions

isMaximized

  • isMaximized(el: Element): boolean

restoreMaximize

  • restoreMaximize(options?: Options): void
  • restore the state of current maximized element if any

    Parameters

    • Default value options: Options = { auto: true }

    Returns void

setMaximized

  • setMaximized(el: Element, maximize: boolean, options?: Options): void
  • Maximize given element by attaching it as first child of the screen and with full dimensions. It stores original parent and index as data.

    TODO: if auto: true, then if we are adding a button for restoring we should also add a button for maximize which we dont

    Parameters

    • el: Element
    • maximize: boolean
    • Default value options: Options = { auto: true }

    Returns void