Function
Initialize properties
If 'dataStore' property is not specified, but 'parent' property is specified, 'dataStore' property is copied from the parent.
Arguments to initialize properties
Function
A root item
Return an attribute value of an item
This method uses a root item passed in 'object' argument and 'attribute' property to call getValue() method of 'dataStore'. If an attribute name have an array suffix ("[]"), getValues() method is called, instead. If an index is specified in the array suffix, an array element for the index is returned, instead of the array itself.
A value found, otherwise 'undefined'
Object|undefined|anything
Function
A root item
A value to set
Set an attribute value to an item
This method uses a root item passed in 'object' argument and 'attribute' property to identify an item. Then, setValue() method of 'dataStore' is called with a leaf attribute name and 'value' argument. If an attribute name have an array suffix ("[]"), setValues() method is called, instead. If an index is specified in the array suffix, an array element for the index is set to 'value', instead of the array itself.
'object', or 'undefined' for invalid attribute
Object|undefined
Function
An item attribute An attribute name
Return an attribute value of an item
This method uses an item passed in 'item' argument and 'attribute' argument to call getValue() method of 'dataStore'. If an attribute name have an array suffix ("[]"), getValues() method is called, instead. If an index is specified in the array suffix, an array element for the index is returned, instead of the array itself.
A value found, otherwise 'undefined'
return array for "attribute[]"|anything
Function
An item
An attribute name
A value to set
Set an attribute value to an item
This method uses an item passed in 'item' argument and 'attribute' argument to call setValue() method of 'dataStore' with 'value' argument. If an attribute name have an array suffix ("[]"), setValues() method is called, instead. If an index is specified in the array suffix, an array element for the index is set to 'value', instead of the array itself.
A
data store attribute: A dotted notation to a descendant attribute
Object
Object