Data source whose backing is JavaScript data Names that are reserved for system use and shouldn't be used for data node names: eval, toSource, toString, unwatch, valueOf, watch. Behavior is undefined if these names are used.
extends goog.ds.DataNode| Instance Method Summary | |
createChildNodes_(boolean= opt_force)Creates the DataNodeList with the child nodes for this element. Allows for only building list as needed. | |
get() ⇒ ?ObjectGet the value of the node | |
getChildNode(string name, boolean= opt_canCreate) ⇒ ?goog.ds.DataNodeGets a named child node of the current node | |
getChildNodeValue(string name) ⇒ ?ObjectGets the value of a child node | |
getChildNodes(string= opt_selector) ⇒ ?goog.ds.DataNodeListGets all of the child nodes of the current node. Should return an empty DataNode list if no child nodes. | |
getDataName() ⇒ stringGet the name of the node relative to the parent node | |
getDataPath() ⇒ stringGets the a qualified data path to this node | |
getLoadState() ⇒ ?goog.ds.LoadStateGets the state of the backing data for this node TODO(user) Discuss null value handling | |
isList() ⇒ booleanWhether the value of this node is a homogeneous list of data | |
load()Load or reload the backing data for this node | |
set(?Object value)Set the value of the node | |
setChildNode(string name, ?Object value) ⇒ ?ObjectSets a named child node of the current node. If value is null, removes the child node. | |
setDataName(string dataName)Setthe name of the node relative to the parent node | |
setIsList_(?boolean isList)Set this data source to use list semantics. List data sources: - Are assumed to have child nodes of all of the same type of data - Fire data changes on the root node of the list whenever children are added or removed | |
setRoot(?Object root)Sets the root JS object | |