|
31 | 31 | <div class="container"> |
32 | 32 | <div> |
33 | 33 | <h3>Angular Data Grid sample using out-of-box Bootstrap styling</h3> |
34 | | - Features enabled: sorting, filtering (using both in-grid and external controls), pagination and item-per-page functionality. |
| 34 | + Features enabled: sorting, filtering (using both in-grid and external controls), pagination and items-per-page functionality. |
35 | 35 | Angular UI Datepickers used for date controls, although you can use any other framework / plugins. |
36 | 36 | <a href="https://github.com/angular-data-grid/angular-data-grid.github.io" target="_blank">Project GitHub</a> |
37 | 37 | </div> |
@@ -123,14 +123,26 @@ <h3>Angular Data Grid sample using out-of-box Bootstrap styling</h3> |
123 | 123 | <span class="items">{{filtered.length}} items total</span> |
124 | 124 | </div> |
125 | 125 | <div class="col-md-9 text-right"> |
126 | | - <grid-pagination max-size="5" |
127 | | - boundary-links="true" |
128 | | - class="pagination-sm" |
129 | | - ng-if="paginationOptions.totalItems > paginationOptions.itemsPerPage" |
130 | | - total-items="paginationOptions.totalItems" |
131 | | - ng-model="paginationOptions.currentPage" |
132 | | - ng-change="reloadGrid()" |
133 | | - items-per-page="paginationOptions.itemsPerPage"></grid-pagination> |
| 126 | + <form class="form-inline pull-right margin-bottom-basic"> |
| 127 | + <div class="form-group"> |
| 128 | + <grid-pagination max-size="5" |
| 129 | + boundary-links="true" |
| 130 | + class="pagination-sm" |
| 131 | + total-items="paginationOptions.totalItems" |
| 132 | + ng-model="paginationOptions.currentPage" |
| 133 | + ng-change="reloadGrid()" |
| 134 | + items-per-page="paginationOptions.itemsPerPage"></grid-pagination> |
| 135 | + </div> |
| 136 | + <div class="form-group items-per-page"> |
| 137 | + <label for="itemsOnPageSelect1">Items per page:</label> |
| 138 | + <select id="itemsOnPageSelect1" class="form-control input-sm" ng-init="paginationOptions.itemsPerPage = '10'" ng-model="paginationOptions.itemsPerPage" ng-change="reloadGrid()"> |
| 139 | + <option>10</option> |
| 140 | + <option>25</option> |
| 141 | + <option>50</option> |
| 142 | + <option>75</option> |
| 143 | + </select> |
| 144 | + </div> |
| 145 | + </form> |
134 | 146 | </div> |
135 | 147 | </div> |
136 | 148 | <table class="table table-bordered table-striped"> |
@@ -168,30 +180,26 @@ <h3>Angular Data Grid sample using out-of-box Bootstrap styling</h3> |
168 | 180 | </tr> |
169 | 181 | </tbody> |
170 | 182 | </table> |
171 | | - <div class="text-right"> |
172 | | - <grid-pagination max-size="5" |
173 | | - boundary-links="true" |
174 | | - class="pagination-sm" |
175 | | - ng-if="paginationOptions.totalItems > paginationOptions.itemsPerPage" |
176 | | - total-items="paginationOptions.totalItems" |
177 | | - ng-model="paginationOptions.currentPage" |
178 | | - ng-change="reloadGrid()" |
179 | | - items-per-page="paginationOptions.itemsPerPage"></grid-pagination> |
180 | | - </div> |
181 | | - <form class="form-inline"> |
182 | | - <div class="form-group pull-right"> |
183 | | - <label for="itemsOnPageSelect">Items per page:</label> |
184 | | - <select id="itemsOnPageSelect" class="form-control input-sm" ng-init="paginationOptions.itemsPerPage = '10'" ng-model="paginationOptions.itemsPerPage" ng-change="reloadGrid()"> |
| 183 | + <form class="form-inline pull-right margin-bottom-basic"> |
| 184 | + <div class="form-group"> |
| 185 | + <grid-pagination max-size="5" |
| 186 | + boundary-links="true" |
| 187 | + class="pagination-sm" |
| 188 | + total-items="paginationOptions.totalItems" |
| 189 | + ng-model="paginationOptions.currentPage" |
| 190 | + ng-change="reloadGrid()" |
| 191 | + items-per-page="paginationOptions.itemsPerPage"></grid-pagination> |
| 192 | + </div> |
| 193 | + <div class="form-group items-per-page"> |
| 194 | + <label for="itemsOnPageSelect2">Items per page:</label> |
| 195 | + <select id="itemsOnPageSelect2" class="form-control input-sm" ng-init="paginationOptions.itemsPerPage = '10'" ng-model="paginationOptions.itemsPerPage" ng-change="reloadGrid()"> |
185 | 196 | <option>10</option> |
186 | 197 | <option>25</option> |
187 | 198 | <option>50</option> |
188 | 199 | <option>75</option> |
189 | 200 | </select> |
190 | 201 | </div> |
191 | 202 | </form> |
192 | | - <!--<div class="text-right">--> |
193 | | - <!--<span grid-item-per-page="10, 25, 50, 75" class="pagination-sm"></span>--> |
194 | | - <!--</div>--> |
195 | 203 | </div> |
196 | 204 | </div> |
197 | 205 | </div> |
|
0 commit comments