Skip to content

kartikv11/ember-cli-simple-pagination

Repository files navigation

Ember-cli-simple-pagination

Ember Observer Score

Simple Pagination Ember Component providing all basic pagination functionalities.

Installation

ember install ember-cli-simple-pagination

Cloning

  • git clone this repository
  • npm install
  • bower install

Usage & Actions

  • page_no -- Initialize a Controller variable in who's template you want Pagination, e.g. page_no: 1
  • getByPageNumber -- Action that returns page_no i.e. the current page requested, e.g.
{{page-numbers totalPages=pageCount currentPage=page_no}}
actions: {
  // Bubbled up action from addon
  // clicking on '2' after '5' or clicking 'previous' or 'next' buttons
  getByPageNumber: function(page_no){
      // Controller variable defined above to always contain the current requested page
      this.set('page_no', page_no);
      // whatever reload page functionality your page possesses
      this.send('reload');
    }
}

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://ember-cli.com/.

About

Simple Pagination Ember Component providing all basic pagination functionalities.

Topics

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published