Expand all

abstract ve.dm.GeneratedContentNode

Constructor

new ve.dm.GeneratedContentNode()abstract #

DataModel generated content node.

Source:
DataModel generated content node.

Methods

getHashObjectForRendering() → {Object} #

Get as hash object that uniquely describes the rendering

The actual logic is in a static function as this needs to be accessible from ve.dm.Converter

Source:

Returns:

Hash object

Type
Object

Get as hash object that uniquely describes the rendering

The actual logic is in a static function as this needs to be accessible from ve.dm.Converter

getHashObjectForRendering(dataElement) → {Object}static #

Get as hash object that uniquely describes the rendering

Sub-classes can simplify this hash if certain attributes don't affect the rendering.

Parameters:

Name Type Description
dataElement Object

Data element

Source:

Returns:

Hash object

Type
Object

Get as hash object that uniquely describes the rendering

Sub-classes can simplify this hash if certain attributes don't affect the rendering.

storeGeneratedContents(dataElement, generatedContents, store) → {string}static #

Store HTML of DOM elements, hashed on data element

Parameters:

Name Type Description
dataElement Object

Data element

generatedContents Object | string | Array

Generated contents

store ve.dm.HashValueStore

Hash-value store

Source:

Returns:

Hash of stored data

Type
string
Store HTML of DOM elements, hashed on data element

Events

generatedContentsError($element) #

Parameters:

Name Type Description
$element jQuery

Element containing the error message

Source: