DOMDataStore

Datastores. DOMDataStore

A storage that provides a DOM-element&attribute-based serialization of Concept properties
options:
storageName - The name of the element to store that data below (Default: "varv-data")
storageWebstrate - The name of the webstrate to store the data at (Default: current webstrate)

Constructor

new DOMDataStore()

Source:

Methods

getConceptInstanceFromConceptElement(conceptElement) → {any}

Description:
  • Lookup concept and uuid from a concept element
Source:
Parameters:
Name Type Description
conceptElement Element
Returns:
Type
any

getPropertyFromDOM(concept, propertyElement, propertyObject) → {any}

Description:
  • Reconstruct a value from DOM
Source:
Parameters:
Name Type Description
concept Concept
propertyElement Element
propertyObject Property
Returns:
Type
any

(async) loadBackingStore() → {undefined}

Description:
  • Loads all concept instances currently registered as backed from serialized state
Source:
Returns:
Type
undefined

synchronizePropertyElementFromDOM(propertyElement)

Description:
  • Takes the element and looks up everything else from that and pushes its state to the concept
Source:
Parameters:
Name Type Description
propertyElement element The element with the property to push to concept