Simple Pagination Ember Component providing all basic pagination functionalities.
- Uses Material Design Lite.
ember install ember-cli-simple-paginationgit clonethis repositorynpm installbower install
page_no-- Initialize a Controller variable in who's template you want Pagination, e.g.page_no: 1getByPageNumber-- Action that returnspage_noi.e.the current page requested, e.g.
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');
}
}ember server- Visit your app at http://localhost:4200.
npm test(Runsember try:testallto test your addon against multiple Ember versions)ember testember test --server
ember build
For more information on using ember-cli, visit http://ember-cli.com/.