total

Specifies the total item count to be taken from the underlying raw data response object:

1. A string value specifying the path to the total item count:

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

2. A function expression that accepts the raw data object and returns a number representing the total item count:

var dataSource = new shield.DataSource({
    schema: {
        total: function (result) {
            return parseInt(result.totalItems, 10);
        }
    }
});