Skip to content

Commit 62e5819

Browse files
committed
Changed pagination default value for items per page to 75 for both fixed header samples.
1 parent b696972 commit 62e5819

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

Diff for: demo/fixed-header/angular-md-grid.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ <h4>Using Stand-alone Directive</h4>
156156
ng-change="reloadGrid()"
157157
items-per-page="paginationOptions.itemsPerPage"></grid-pagination>
158158
<md-input-container flex-offset-gt-xs="5" class="items-per-page">
159-
<md-select ng-init="paginationOptions.itemsPerPage = '10'"
159+
<md-select
160160
ng-model="paginationOptions.itemsPerPage" ng-change="reloadGrid()">
161161
<md-option>10</md-option>
162162
<md-option>25</md-option>
@@ -217,7 +217,7 @@ <h4>Using Stand-alone Directive</h4>
217217
ng-change="reloadGrid()"
218218
items-per-page="paginationOptions.itemsPerPage"></grid-pagination>
219219
<md-input-container flex-offset-gt-xs="5" class="items-per-page">
220-
<md-select ng-init="paginationOptions.itemsPerPage = '10'" ng-model="paginationOptions.itemsPerPage"
220+
<md-select ng-model="paginationOptions.itemsPerPage"
221221
ng-change="reloadGrid()">
222222
<md-option>10</md-option>
223223
<md-option>25</md-option>

Diff for: demo/fixed-header/bootstrap-grid.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ <h4>Using Stand-alone Directive</h4>
186186
</div>
187187
<div class="form-group items-per-page">
188188
<label for="itemsOnPageSelect1">Items per page:</label>
189-
<select id="itemsOnPageSelect1" class="form-control input-sm" ng-init="paginationOptions.itemsPerPage = '10'" ng-model="paginationOptions.itemsPerPage" ng-change="reloadGrid()">
189+
<select id="itemsOnPageSelect1" class="form-control input-sm" ng-model="paginationOptions.itemsPerPage" ng-change="reloadGrid()">
190190
<option>10</option>
191191
<option>25</option>
192192
<option>50</option>
@@ -243,7 +243,7 @@ <h4>Using Stand-alone Directive</h4>
243243
</div>
244244
<div class="form-group items-per-page">
245245
<label for="itemsOnPageSelect2">Items per page:</label>
246-
<select id="itemsOnPageSelect2" class="form-control input-sm" ng-init="paginationOptions.itemsPerPage = '10'"
246+
<select id="itemsOnPageSelect2" class="form-control input-sm"
247247
ng-model="paginationOptions.itemsPerPage" ng-change="reloadGrid()">
248248
<option>10</option>
249249
<option>25</option>

Diff for: demo/fixed-header/js/bootstrap/demoApp.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ angular.module('myApp', ['ui.bootstrap', 'dataGrid', 'pagination', 'dataGridUtil
33

44
$scope.gridOptions = {
55
data: [],
6-
urlSync: true
6+
urlSync: true,
7+
pagination: {
8+
itemsPerPage: '75',
9+
currentPage: 1
10+
}
711
};
812

913
myAppFactory.getData().then(function (responseData) {

Diff for: demo/fixed-header/js/material-design/demoApp.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ angular.module('myApp', ['dataGrid', 'pagination', 'ngMaterial', 'dataGridUtils.
33

44
$scope.gridOptions = {
55
data: [],
6-
urlSync: true
6+
urlSync: true,
7+
pagination: {
8+
itemsPerPage: '75',
9+
currentPage: 1
10+
}
711
};
812
myAppFactory.getData().then(function (responseData) {
913
$scope.gridOptions.data = responseData.data;

0 commit comments

Comments
 (0)