@cascade/pagination
Version:
Array and Service Pagination powered by Cascade.
13 lines (10 loc) • 586 B
Markdown
# Cascade Datasource
[](https://travis-ci.org/sjohnsonaz/cascade-datasource) [](https://badge.fury.io/js/cascade-datasource)
Array and Service Pagination powered by Cascade.
```` TypeScript
var dataSource = new DataSource<number>((page, pageSize, sortedColumn, sortedDirection) => {
return DataSource.pageArray(dataArray, page, pageSize, sortedColumn, sortedDirection);
});
dataSource.init();
dataSource.page = 1;
````