This repository has been archived by the owner on May 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pagination): bind *-text attributes
BREAKING CHANGE: The 'first-text', 'previous-text', 'next-text' and 'last-text' attributes are now binded to parent scope. To migrate your code, surround the text of these attributes with quotes. Before: <pagination first-text="<<" ...></pagination> After: <pagination first-text="'<<'" ...></pagination>
- Loading branch information
1 parent
53e0a39
commit e1bff6b
Showing
4 changed files
with
76 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,51 @@ | ||
|
||
A lightweight pagination directive that is focused on ... providing pagination! | ||
A lightweight pagination directive that is focused on ... providing pagination & will take care of visualising a pagination bar and enable / disable buttons correctly! | ||
|
||
It will take care of visualising a pagination bar. Additionally it will make sure that the state (enabled / disabled) of the Previous / Next and First / Last buttons (if exist) is maintained correctly. | ||
### Settings ### | ||
|
||
Settings can be provided as attributes in the `<pagination>` or globally configured through the `paginationConfig`. | ||
|
||
* `num-pages` <i class="icon-eye-open"></i> | ||
: | ||
Number of total pages. | ||
|
||
* `current-page` <i class="icon-eye-open"></i> | ||
: | ||
Current page number. | ||
|
||
* `max-size` <i class="icon-eye-open"></i> | ||
_(Defaults: null)_ : | ||
Limit number for pagination size. | ||
|
||
* `rotate` | ||
_(Defaults: true)_ : | ||
Whether to keep current page in the middle of the visible ones. | ||
|
||
* `on-select-page (page)` | ||
_(Default: null)_ : | ||
An optional expression called when a page is selected having the page number as argument. | ||
|
||
* `direction-links` | ||
_(Default: true)_ : | ||
Whether to display Previous / Next buttons. | ||
|
||
* `previous-text` | ||
_(Default: 'Previous')_ : | ||
Text for Previous button. | ||
|
||
* `next-text` | ||
_(Default: 'Next')_ : | ||
Text for Next button. | ||
|
||
* `boundary-links` | ||
_(Default: false)_ : | ||
Whether to display First / Last buttons. | ||
|
||
* `first-text` | ||
_(Default: 'First')_ : | ||
Text for First button. | ||
|
||
* `last-text` | ||
_(Default: 'Last')_ : | ||
Text for Last button. | ||
|
||
It also provides optional attribute max-size to limit the size of pagination bar & rotate attribute whether to keep current page in the middle of the visible ones. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters