First attempt at generating proper paging google tables. However, somehow they are kind of messed up, so I'm probably going to drop this.

This commit is contained in:
James Cole
2014-11-14 08:40:16 +01:00
parent f511a25c94
commit b388dcc7d4
10 changed files with 466 additions and 190 deletions

View File

@@ -314,4 +314,21 @@ function googleTable(URL, container) {
} else {
console.log('No container found called "' + container + '"');
}
}
/**
*
* @param URL
* @param container
*/
function googleTablePaged(URL, container) {
var query, options;
query = new google.visualization.Query(URL);
objContainer = document.getElementById(container);
options = {'pageSize': 5};
query.abort();
var tableQueryWrapper = new TableQueryWrapper(query, objContainer, options);
tableQueryWrapper.sendAndDraw();
}