Skip to content

Commit

Permalink
Expose page count in options
Browse files Browse the repository at this point in the history
  • Loading branch information
Zacharias3690 committed Jul 31, 2015
1 parent bcc0b9c commit e3e4338
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tc-grid",
"version": "0.7.16",
"version": "0.7.17",
"homepage": "https://github.com/ThirdCornerLLC/tc-grid",
"authors": [
"Zach Barnes <[email protected]>",
Expand Down
2 changes: 2 additions & 0 deletions dist/tc-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@
if (vm.pageCount < 1) {
vm.pageCount = 1;
}

vm.options.paging.pageCount = vm.pageCount;
}

function first() {
Expand Down
2 changes: 1 addition & 1 deletion dist/tc-grid.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/js/tcGridDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@
if (vm.pageCount < 1) {
vm.pageCount = 1;
}

vm.options.paging.pageCount = vm.pageCount;
}

function first() {
Expand Down

0 comments on commit e3e4338

Please sign in to comment.