API Docs for: 0.0.8-0
Show:

Popup Class

A concrete instance of popup referencing actual DOM nodes as its handle and target.

Methods

_performAction

(
  • action
  • cssAction
  • callback
)
private

Performs actions like closing and opening on this Popup.

Parameters:

  • action Function

    Open or close action on this Popup

  • cssAction Function

    Function setting style properties on this Popup

  • callback Function

    The callback to be executed

close

()

Closes this Popup.

isOpen

() Boolean

Checks if this Popup is open.

Returns:

Boolean:

True if open, false otherwise

open

()

Opens this Popup.

setTargetAttr

(
  • [visible]
)

Sets the appropriate aria-* attributes to this popup nodes according to the supplied visible parameter or with the internal state of the popup.

Parameters:

  • [visible] Boolean optional

    Indicating the internal state of the popup

toggle

()

Toggles this Popup.

Properties

_isAnimating

Boolean private

Indicates if the Popup target is being animated.

activeClass

String

The CSS class to be applied to the hadnle of the popup when the popup opens.

Default: null

closeHandler

Function

The function to execute when the popup closes.

Default: null

handle

JQuery

An actual JQuery of the handle's DOM node.

Default: null

openHandler

Function

The function to execute when the popup opens.

Default: null

setClassBefore

String

Indicates whether activeClass should be applied before openHandler function completes or after.

Default: null

target

JQuery

An actual JQuery of the targets's DOM node.

Default: null

useAria

Boolean

Indicates whether to apply aria-* attributes to DOM nodes.

Default: true