Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kklldog/ngbootstrappagebar

a pagebar directive base on bootstrap angularjs 1
https://github.com/kklldog/ngbootstrappagebar

Last synced: 22 days ago
JSON representation

a pagebar directive base on bootstrap angularjs 1

Awesome Lists containing this project

README

        

# ngbootstrappagebar
a pagebar directive base on bootstrap angularjs1
## Usage
add bootstrap,angularjs and ngBootstrapPagebar.js then inject into the module .
```





angular.module('pageBarTest',['agile.bootstrap-pagebar']);
```

## Attributes

### pageInfo
a parent scope variable , it should include 3 porperties:
- **pageIndex**: current select page index ; if changes 'pageIndex' and pageIndex not in the showing pages the pagebar will be rebuild .
- **showPages**: how many page numbers should be shown ; if changes 'showPages' the pagebar will be rebuild .
- **totalPages**: how many pages or means the last page index ; if changes 'totalPages' the pagebar will be rebuild .

### onChange
a parent scope function , when the page number be clicked pagebar will call the fun and pass the index .

### example
[sample](https://kklldog.github.io/ngbootstrappagebar_sample.html)