forked from josecebe/twbs-pagination
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Update README
- Loading branch information
Eugene
committed
May 31, 2014
1 parent
f08e569
commit a788c5e
Showing
1 changed file
with
35 additions
and
4 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,42 @@ | ||
| ### jQuery pagination plugin (bootstrap powered) | ||
| ## jQuery pagination plugin (bootstrap powered) ## | ||
|
|
||
| [Documentation](http://esimakin.github.io/twbs-pagination/) | ||
| ### Basic usage ### | ||
|
|
||
| ### Changelog | ||
| Plugin requires jQuery (min - 1.11.1, recomended - 1.7.1 or higher). | ||
|
|
||
| You can use Bootstrap CSS styles and markup (or use your own). | ||
|
|
||
| The following code shows call the function on `<ul>` tag (it can be also `<div>` tag). | ||
|
|
||
| ```javascript | ||
| $('#pagination-demo').twbsPagination({ | ||
| totalPages: 35, | ||
| visiblePages: 7, | ||
| onPageClick: function (event, page) { | ||
| $('#page-content').text('Page ' + page); | ||
| } | ||
| }); | ||
| ``` | ||
|
|
||
| For more information see [docs on github pages](http://esimakin.github.io/twbs-pagination/) | ||
|
|
||
| #### Changelog #### | ||
|
|
||
| v1.1.1 | ||
| - Fix bug with incorrect next\prev page link in href attribute | ||
|
|
||
| v1.1 | ||
| - Added 'hold current page on center' | ||
|
|
||
| v1.0 | ||
| - Simple pagination | ||
| - Simple pagination | ||
|
|
||
| #### License #### | ||
|
|
||
| Copyright 2014 © Eugene Simakin | ||
|
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at | ||
|
|
||
| [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. |