JS Functions

DiviArea.markClosed()

Mark an area as "closed" for a certain number of minutes.

DiviArea.Utils.toPixel()

Converts any CSS unit to pixels - at least any CSS unit that is available in Divi Areas.

DiviArea.register()

Creates a new Divi Area from an arbitrary HTML element on the page

DiviArea.Utils.getStyleDef()

Returns the defined CSS value for the given property of an element.

DiviArea.addFilter()

Register a callback function for a certain JS filter

DiviAreaItem.isVisible()

Tests, if the Area is visible.

DiviArea.doAction()

Runs all previously registered action hooks. Params Returns The function does not return anything. Notes No notes

DiviAreaItem.find()

Shortcut to `jQuery.find()` on the Area.

DiviArea.getArea()

Returns the area that is associated with the ID. Params Returns Returns a DiviAreaItem object for the requested Area. When...

DiviArea.Debug.group()

Start or end a debug-group in the JS console