BlockOverlay(options)

Class BlockOverlay

new BlockOverlay(options)

Creates an instance of BlockOverlay.

Parameters:
Name Type Description
options Object

options

Properties
Name Type Description
eventManager EventManager

event manager instance

container HTMLElement

container element

attachedSelector string

selector string to find attached element

Members

active :boolean

is activated.
if this blockOverlay is active, It always be visible unconditionally.

Methods

protected getAttachedElement() → {HTMLElement}

attached element

Returns:
HTMLElement -
  • attached element

protected getVisibility() → {boolean}

visibility

Returns:
boolean -

visibility

protected onHide()

called on hide. you may want to override to get the event

abstract, protected onShow()

called on show. you may want to override to get the event

protected setVisibility(visibility)

visibility

Parameters:
Name Type Description
visibility boolean

is visible

protected syncLayout()

update blockOverlay position & size update to attached element
you may want to override this to adjust position & size