JS Functions

DiviAreaItem.setTriggerEvent()

Sets the trigger element for a Hover Area.

DiviArea.showOverlay()

Darkens the background and prevents scrolling of the document.

DiviArea.Utils.showOnViewport()

Checks the viewport configuration of the Area agains the current viewport. Only the window-width is tested to determine whether the...

DiviAreaItem.setData()

Changes an area configuration value.

DiviArea.show()

Triggers the defined Divi Area (e.g., display a Popup or Fly-In)

DiviAreaItem.doAction()

Runs a JS action via DiviArea.doAction() with the given hook name. This function will call two hooks: One exactly as...

DiviAreaItem.hasId()

Tests, whether the area is identified by the given ID.

DiviAreaItem.theType()

Returns the Area-type

DiviArea.addAction()

Register a callback function for a certain JS action

DiviAreaItem.removeAction()

Removes a previously registered action hook.