wijmo.data 名前空間 > IAjaxDataViewOptions インターフェース : onResponse フィールド |
Javascript (Usage) | |
---|---|
var instance; //タイプ:wijmo.data.IAjaxDataViewOptions; var value; // Type: any value = instance.onResponse; |
Javascript (Specification) | |
---|---|
|
data: new wijmo.data.AjaxDataView("http://ws.geonames.org/searchJSON", { ajax: { dataType: "jsonp", data: { username: "demo", style: "SHORT" } }, pageSize: 10, onRequest: function (settings, shape) { settings.data.startRow = shape.pageSize * shape.pageIndex; settings.data.maxRows = shape.pageSize; }, onResponse: function (response) { return { totalItemCount: response.totalResultsCount, results: response.geonames }; } })