JS Functions

DiviArea.removeFilter()

Removes a previously registered filter hook.

DiviAreaItem.addFilter()

Register a new hook that only handles filters of this Area

DiviAreaItem.addClass()

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

DiviAreaItem.hasClass()

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

DiviArea.isClosed()

Check, whether a area is marked as “closed” for a certain time span. This function returns true when the area...

DiviArea.Data.sanitizeId()

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

DiviAreaItem.getWrap()

Returns the jQuery element of the Area wrapper

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.

DiviAreaItem.isType()

Tests, whether the matches the expected type string.