mirror of
https://github.com/janickiy/yii2-nomer
synced 2025-03-09 15:39:59 +00:00
add files to project
This commit is contained in:
commit
5cac498444
3729 changed files with 836998 additions and 0 deletions
31
web/metronic/global/plugins/jquery-bootpag/README.md
Normal file
31
web/metronic/global/plugins/jquery-bootpag/README.md
Normal file
|
@ -0,0 +1,31 @@
|
|||
bootpag - dynamic pagination
|
||||
============================
|
||||
|
||||
This jQuery plugin helps you create dynamic pagination with [Bootstrap](http://getbootstrap.com/) or in any other html pages.
|
||||
|
||||
#Example
|
||||
|
||||
Snippet that dynamic loads number of pages.
|
||||
More examples can be found on [project homepage](http://botmonster.com/jquery-bootpag/)
|
||||
|
||||
```html
|
||||
<p id="content">Dynamic page content</p>
|
||||
<p id="pagination-here"></p>
|
||||
```
|
||||
|
||||
```javascript
|
||||
$('#pagination-here').bootpag({
|
||||
total: 7, // total pages
|
||||
page: 1, // default page
|
||||
maxVisible: 5, // visible pagination
|
||||
leaps: true // next/prev leaps through maxVisible
|
||||
}).on("page", function(event, num){
|
||||
$("#content").html("Page " + num); // or some ajax content loading...
|
||||
// ... after content load -> change total to 10
|
||||
$(this).bootpag({total: 10, maxVisible: 10});
|
||||
});
|
||||
|
||||
```
|
||||
#License
|
||||
|
||||
Plugin available under MIT license (see LICENSE.txt)
|
Loading…
Add table
Add a link
Reference in a new issue