JS Functions

DiviArea.Core.disableBodyScroll()

Disable scrolling of the body.

DiviArea.markClosed()

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

DiviAreaItem.find()

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

DiviArea.Core.activateContainer()

Scan the context for Area triggers and attach event listeners to them.

DiviArea.Utils.getOption()

Fetches the value of a DiviAreaConfig option. Params Returns The option value Notes No notes

DiviArea.Data.sanitizeId()

Sanitize an area ID string: Return a ID with leading hash.

DiviArea.getArea()

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

DiviAreaItem.setVisible()

Mark the area as visible or not-visible.

DiviArea.Utils.toPixel()

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

DiviArea.Utils.getStyleDef()

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