data

Specifies the function that converts the filter, sort, skip and take parameters to a format acceptable by the remote endpoint:

var dataSource = new shield.DataSource({
    remote: {
        operations: ["skip", "take", "sort", "filter"],
        read: {
            url: "//services.odata.org/V3/Northwind/Northwind.svc/Products?$format=json&$inlinecount=allpages",
            dataType: "jsonp",
            jsonp: "$callback",
            data: function (params) {
                var odataParams = {};
                if (params.filter) {
                    odataParams["$filter"] = getODataFilter(params.filter);
                }
                if (params.sort && params.sort[0]) {
                    var sort = params.sort[0];
                    odataParams["$orderby"] = sort.path + (sort.desc ? " desc" : "");
                }
                if (params.skip) {
                    odataParams["$skip"] = params.skip;
                }
                if (params.take) {
                    odataParams["$top"] = params.take;
                }
                return odataParams;
            }
        }
    }
});