Constructor
new ve.dm.GeneratedContentNode()abstract
#
DataModel generated content node.
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
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.
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 |
Returns:
Hash of stored data
- Type
- string
Store HTML of DOM elements, hashed on data element