You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,9 +26,10 @@ Direct download: get ZIP archive [from here](https://github.com/angular-data-gri
26
26
Then use files from *dist* folder (see below).
27
27
28
28
### Setup
29
-
1. Include scripts in you application: `dataGrid.min.js` and `pagination.min.js` (include the second one only if you need pagination).
29
+
1. Include scripts in you application: `angular.min.js`, `dataGrid.min.js` and `pagination.min.js` (include the second one only if you need pagination).
@@ -105,7 +106,10 @@ Use this object for calling methods of directive: `sort()`, `filter()`, `refresh
105
106
};
106
107
```
107
108
108
-
- For server side pagination/filtering to fetch data by page: assign ```getData``` method to some function with URL params as 1st parameter and data itself as 2d parameter:
109
+
- For server side pagination/filtering to fetch data by page:
110
+
1. add attribute 'server-pagination'=true on element on which you applied directive 'grid-data'
111
+
2. assign ```getData``` method to some function with URL params as 1st parameter and data itself as 2d parameter:
112
+
109
113
110
114
```javascript
111
115
$scope.gridOptions= {
@@ -145,7 +149,7 @@ $scope.gridOptions = {
145
149
146
150
### Pagination
147
151
148
-
You can optionally use `pagination` directive to display paging with previous/next and first/last controls.
152
+
You can optionally use `grid-pagination` directive to display paging with previous/next and first/last controls.
149
153
Directive is built on a base of excellent [Angular UI](https://angular-ui.github.io/bootstrap/) component and shares extensive API:
0 commit comments