Constructor
new ve.dm.GeneratedContentNode()abstract
#
DataModel generated content node.
Methods
fetchGeneratedContents([config]) → {Object|string|Array}
#
Fetch generated contents from store
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
config |
Object |
optional |
Additional data |
Returns:
Generated contents, or null if not found
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
fetchGeneratedContents(dataElement, store, [config]) → {Object|string|Array}static
#
Fetch generated contents from store
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
dataElement |
ve.dm.LinearData.Element | Data element |
|
store |
ve.dm.HashValueStore | Hash-value store |
|
config |
Object |
optional |
Additional data |
Returns:
Generated contents, or null if not found
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 |
ve.dm.LinearData.Element | Data element |
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, [config]) → {string}static
#
Store HTML of DOM elements, hashed on data element
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
dataElement |
ve.dm.LinearData.Element | Data element |
|
generatedContents |
Object | string | Array | Generated contents |
|
store |
ve.dm.HashValueStore | Hash-value store |
|
config |
Object |
optional |
Additional data |
Returns:
Hash of stored data
- Type
- string