Class: DisabledAreaMask

DisabledAreaMask()

Applies a mask on edit mode for disabling some areas. Starting from "origin" selector, it looks for elements that are not parent of that element or inside "whitelist".

Members

(static) DEFAULT_DISABLED_AREA_CLASS :string

Type:
  • string
Source:
See:
  • DisabledAreaMask.disabledAreaClass

(static) DEFAULT_ORIGIN

Source:
See:
  • DisabledAreaMask.origin

(static) DEFAULT_WHITELIST

Source:
See:
  • DisabledAreaMask.whitelist

(static, non-null) STATE :object

State definition
Type:
  • object
Source:

(static) STATIC_POSITIONS :Array.<string>

List of CSS positions that define an static-like positioned element
Type:
  • Array.<string>
Source:

_disabledAreaPopover :object

Popover instance used internally
Type:
  • object
Default Value:
  • null
Source:

disabledAreaClass :string

CSS class added to elements that are going to be disabled.
Type:
  • string
Default Value:
  • DEFAULT_DISABLED_AREA_CLASS
Source:

origin :string

HTMLElement where the disabling process starts
Type:
  • string
Default Value:
  • DEFAULT_ORIGIN
Source:

whitelist :Array.<string>

List of selectors that are ignored when disabling elements. Any element matching any of these selector will NOT be disabled.
Type:
  • Array.<string>
Default Value:
  • DEFAULT_WHITELIST
Source:

Methods

_markDisabledElement(element)

Marks the given element as disabled if it does not fit any element from the whitelist.
Parameters:
Name Type Description
element HTMLElement
Source:

created()

Source:

disposed()

Source: