DiviAreaItem.setData(key, value)
Changes an area configuration value.
Params
key- The option name. The option name is converted to lower-case, all non-alpha-numeric characters are removed (see example below)
 value- The new value.
 
Returns
A reference to the current DiviAreaitem for chaining.
Examples
// The following statements are all equal, because the config key
// is sanitized to "zindex" (lower-case, only alpha-numeric chars):
area.setData('Z_Index', 100);
area.setData('z-index', 100);
area.setData('zIndex', 100);
area.setData('zindex', 100);
Notes
List of all configuration options; for better readability, the keys include dashes, though they are not needed:
animationSpeedIn- (int)
Speed of the intro animation, in milliseconds. animationSpeedOut- (int)
Speed of the outro animation, in milliseconds. attach-to- (jQuery element)
Element where an Hover Area is attached to. Not used by other Area types. close-alt- (boolean)
Transparent close button. close-delay- (float)
The value is a float number that defines a delay (in seconds) between the closes-trigger event and actually hiding a Hover Area.
Only used by Hover Areas close-trigger- (string)
The value defines when a Hover Area should be hidden again. Possible values are:click.. Hide the Hover Area when the user clicks anywhere outside the Area.hover.. Hide theHoverArea when the mouse leaves the trigger element.
Only used by Hover Areas container- (jQuery element)
The parent container, used by the.append()method. dark-mode- (boolean)
Dark close button. has-show-anim- (boolean)
Internal use. is-blockingnot-blocking- (boolean)
Whether ESC key can close the Area. is-modalnot-modal- (boolean)
Whether background click can close the Area. on-desktopnot-desktop- (boolean)
Whether Area is visible on desktop devices. on-mobilenot-mobile- (boolean)
Whether Area is visible on phones. on-tabletnot-tablet- (boolean)
Whether Area is visible on tablets. overflow- (string)
Overflow behavior [show|full-height|clip]. position-h- (string)
Horizontal position [left|center|right]. position-v- (string)
Vertical position [top|center|bottom]. position- (string)
Full position string “vertical-horizontal”. pushContent- (boolean)
Whether the Fly-In pushes the content away, to avoid overlapping of the fly-in and the page content
Only used by Fly-Ins, withsizenotauto shadowno-shadow- (boolean)
Whether the default shadow is displayed. show-closenot-close- (boolean)
Whether the close button is visible. singleton- (boolean)
Whether other Popups are closed when this Popup is opened. size- (string)
Defines the Area sizing [auto|full-width|full-height|full-screen]
Not available for Inline-Areas static- (boolean)
Read-Only. Internal use for static inline Areas. trigger-exit- (boolean)
Whether this Area opens on Exit-Intent. with-loader- (boolean)
Whether a loading animation is displayed in the background. wrap-classes- (string)
Additional class names of the wrapper class. z-index- (int)
Z-Index of the wrapper class.