dojo/store/api/Store.PutDirectives

Summary

Directives passed to put() and add() handlers for guiding the update and creation of stored objects.

Properties

before

Defined by: dojo/store/api/Store

If the collection of objects in the store has a natural ordering, this indicates that the created or updated object should be placed before the object specified by the value of this property. A value of null indicates that the object should be last.

id

Defined by: dojo/store/api/Store

Indicates the identity of the object if a new object is created

overwrite

Defined by: dojo/store/api/Store

If this is provided as a boolean it indicates that the object should or should not overwrite an existing object. A value of true indicates that a new object should not be created, the operation should update an existing object. A value of false indicates that an existing object should not be updated, a new object should be created (which is the same as an add() operation). When this property is not provided, either an update or creation is acceptable.

parent

Defined by: dojo/store/api/Store

If the store is hierarchical (with single parenting) this property indicates the new parent of the created or updated object.

© 2005–2017 JS Foundation
Licensed under the AFL 2.1 and BSD 3-Clause licenses.
http://dojotoolkit.org/api/1.10/dojo/store/api/Store.PutDirectives.html