dojo.data.api.Read.containsValue
dojo.require("dojo.data.api.Read");
defined in dojo/data/api/Read.js
Returns true if the given value is one of the values that getValues() would return.
Usage
function (item, attribute, value) (view source)
parameter | type | description |
---|---|---|
item | The item to access values on. | |
attribute | The attribute to access represented as a string. | |
value | The value to match as a value for the attribute. |
Examples
Example 1
var trueOrFalse = store.containsValue(kermit, "color", "green");