Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MessagePopup

Index

Properties

autoDestroy_: boolean
element_: JQuery<HTMLElement>

The element.

sce_: ISCEService
scope: IScope

The scope the compiled element is link to.

timeout_: ITimeoutService

Methods

  • addClass(cls: string): void
  • Add an extra CSS class name to the popup.

    Parameters

    • cls: string

      Class name to add to the popup element.

    Returns void

  • destroy(): void
  • getOpen(): boolean
  • Get the current popup state.

    Returns boolean

    true if the popup is currently, otherwise false.

  • setAutoDestroy(autoDestroy: boolean): void
  • Set the popup's autoDestroy property.

    Parameters

    • autoDestroy: boolean

      Whether to automatically destroy the popup when being closed or not.

    Returns void

  • setContent(content: string, opt_trusted: boolean): void
  • Set the popup's content. Note: the type of the content param is * instead of string, this is because the content may be trusted using $sce.trustAsHtml.

    Parameters

    • content: string

      The content.

    • opt_trusted: boolean

    Returns void

  • setHeight(height: string): void
  • Set the popup's height.

    Parameters

    • height: string

      Height the popup should have.

    Returns void

  • setOpen(open: boolean): void
  • Show/hide the popup.

    Parameters

    • open: boolean

      true to show the popup, false to hide it.

    Returns void

  • setSize(width: string, height: string): void
  • Set the popup's width and height.

    Parameters

    • width: string

      Width the popup should have.

    • height: string

      Height the popup should have.

    Returns void

  • setTitle(title: string): void
  • setUrl(url: string): void
  • Set the popup's content with an iframe using the given url.

    Parameters

    • url: string

      The url of the page.

    Returns void

  • setWidth(width: string): void
  • Set the popup's width.

    Parameters

    • width: string

      Width the popup should have.

    Returns void

Generated using TypeDoc