dojo.data.api.Write.setValue
dojo.require("dojo.data.api.Write");
defined in dojo/data/api/Write.js
Sets the value of an attribute on an item. Replaces any previous value or values.
Usage
function (item, /*String*/ attribute, value) (view source)
parameter | type | description |
---|---|---|
item | The item to modify. | |
attribute | String | The attribute of the item to change represented as a string name. |
value | The value to assign to the item. |
Examples
Example 1
var success = store.set(kermit, "color", "green");