Class: Inspectable

Granite.author. Inspectable

The Inspectable class, mostly used as a super class of the Editable class.

Inspectable elements are similar to Editables element except that they don't have any editing features. They are used mainly in the Developer mode to allow inspect which components are included by the page.

WARNING: This class will probably be deprecated and then merged into the Editable class in the future.


new Inspectable(config, dom)

Parameters:
Name Type Description
config EditableConfig

The configuration properties

dom jQuery

The content DOM corresponding to the HTML rendered by the corresponding component included by the page.

Source:
model/Inspectable.js

Members


config :Object

The configuration properties

Type:
  • Object
Source:
model/Inspectable.js

dom :jQuery

The content DOM corresponding to the HTML rendered by the corresponding component included by the page

Type:
  • jQuery
Source:
model/Inspectable.js

overlay :jQuery

The overlay of the content DOM (allows user interaction with it)

Type:
  • jQuery
Source:
model/Inspectable.js

path :String

The content path of the corresponding content node in the repository

Type:
Source:
model/Inspectable.js

type :String

The sling resource type of the corresponding component

Type:
Source:
model/Inspectable.js