data

Specifies the location of the data array in the underlying raw data object. Can be one of:

1. A string value specifying the path to the data array:

var dataSource = new shield.DataSource({
    schema: {
        data: "result.items"
    }
});

2. A function expression that accepts the raw data object and returns a JavaScript array of objects:

var dataSource = new shield.DataSource({
    schema: {
        data: function (result) {
            return result.dataItems;
        }
    }
});