DataObject

DataObject #

@furo/furo-data v2.18.0
import '@furo/data/src/lib/DataObject.js';
exports DataObject js
superclass EventTreeNode


EntityNode is usually the root node of an eventTree

Attributes and Properties #

rawEntity #



_value #

This setter aliases to injectRaw. Added for compatibility reasons for the FieldNodeAdapter

_spec #

default: this.__specdefinitions[type]



_type #

default: type



_pristine #

default: true



_isValid #

default: true



Methods #

validateAllFields #

validateAllFields() ⟹ void



clearAllErrors #

clearAllErrors() ⟹ void

clears all errors on every fieldnode



setAllToPristine #

setAllToPristine() ⟹ void

set all children to pristine useful for deltas



injectRaw #

injectRaw(rawEntity `` ) ⟹ void

injects a raw model e.g. body data of a collection or entity

  • rawEntity

reset #

reset() ⟹ void

Resete zum letzten injected state zurück



_hasAncestorOfType #

_hasAncestorOfType(type `` ) ⟹ void

  • type

getJson #

getJson() ⟹ *

Returns a json representation of your Data Object



getValidityMessage #

getValidityMessage() ⟹ {}

Returns a json representation of all field validity messages



_updateFieldValuesAndMetaFromRawEntity #

_updateFieldValuesAndMetaFromRawEntity(node *data* ) ⟹ void

  • node
  • data

_setInvalid #

_setInvalid(error `` ) ⟹ void

  • error

toString #

toString() ⟹ void