API Docs for: 0.0.8
Show:

Lightbox Class

Create a lightbox.

Constructor

Lightbox

(
  • }
  • options.window The
)

Parameters:

  • } Options=

    options

  • options.window The String

    window object

Methods

getContentElement

() DOM Element

Get the content iframe element.

Returns:

DOM Element:

getContentWindow

() DOM Element

Get the content window in the iframe.

Returns:

DOM Element:

isLoaded

() Boolean

Check if the lightbox is loaded

Returns:

Boolean:

load

(
  • src URL
  • }
  • [options.zIndex]
  • [options.background]
)

Load content into the lightbox

Parameters:

  • src URL String

    to load.

  • } Options=

    options

  • [options.zIndex] Number optional

    z-index to set on the background.

  • [options.background] String optional

    Lightbox background CSS.

unload

()

Unload the lightbox