Functiondojo.data.api.Read.getAttributes

dojo.require("dojo.data.api.Read");
defined in dojo/data/api/Read.js

Returns an array with all the attributes that this item has. This method will always return an array; if the item has no attributes at all, getAttributes() will return an empty array: [].

Usage

function (item) (view source)
parametertypedescription
item The item to access attributes on.

Examples

Example 1

var array = store.getAttributes(kermit);