Class: Layer

Granite.author.responsive. Layer

The Responsive Layer (or Layouting Layer) allows to position the page content within a responsive grid.


new Layer()

Source:
responsive/responsive.Layer.js

Extends

Members


config

Overrides:
Source:
responsive/responsive.Layer.js

Methods


<private> _activateOverlays()

Activates the overlay manager and the overlay creation mechanic

Inherited From:
Source:
layers/Layer.js

activate()

Activates the Layer according to its configuration. It includes the following operations:

  • Creates the Editables in the store (according to config.editableConstructor)
  • Creates the Overlays for the Editables (according to config.overlayConstructor)
  • Sets the Editable Toolbar (according to config.toolbarConstructor + config.toolbarActions)
  • Initializes the SidePanel (according to config.sidePanel)
  • Binds the Interaction events on Overlays (according to config.interactions)

WARNING: Don't override this method since it is aimed at being configurable through the Layer configuration object. If you need to perform specific operations, refer to the setUp method.

Inherited From:
Source:
layers/Layer.js
Returns:
  • The current layer
Type
Granite.author.Layer

deactivate()

Reverts the actions executed by Granite.author.Layer#activate

WARNING: Don't override this method since it is aimed at being configurable through the Layer configuration object. If you need to perform specific operations, refer to the tearDown method.

Inherited From:
Source:
layers/Layer.js
Returns:
  • The current Layer
Type
Granite.author.Layer

isAvailable()

Overrides:
Source:
responsive/responsive.Layer.js

setUp()

Overrides:
Source:
responsive/responsive.Layer.js

tearDown()

Overrides:
Source:
responsive/responsive.Layer.js