Skip to content

Commit 370cb96

Browse files
committed
Updated Readme.
1 parent d92e5b2 commit 370cb96

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,12 @@
22

33
[![Build Status](https://travis-ci.org/sjohnsonaz/cascade-datasource.svg?branch=master)](https://travis-ci.org/sjohnsonaz/cascade-datasource) [![npm version](https://badge.fury.io/js/cascade-datasource.svg)](https://badge.fury.io/js/cascade-datasource)
44

5-
Array and Service Pagination powered by Cascade.
5+
Array and Service Pagination powered by Cascade.
6+
7+
```` TypeScript
8+
var dataSource = new DataSource<number>((page, pageSize, sortedColumn, sortedDirection) => {
9+
return DataSource.pageArray(dataArray, page, pageSize, sortedColumn, sortedDirection);
10+
});
11+
dataSource.init();
12+
dataSource.page = 1;
13+
````

0 commit comments

Comments
 (0)