knownasilya / pagination-pager

Ember.js Component for Bootstrap 3 pagination & pager components
http://knownasilya.github.io/pagination-pager/
MIT License
58 stars 21 forks source link

(Not only) Bootstrap 4 friendly #28

Open mk-conn opened 8 years ago

mk-conn commented 8 years ago

I was just wondering - Bootstrap 4 is around the corner and the pagination css changed a bit so it would be nice to use the pagination-pager addon with it - to do this, only classnames must be configurable like so (proposal):

´´´ {{pagination-pager current=currentPage pageNumberClass="page-item" pageLinkClass="page-link" // and so on } ´´´ and use this in the pagination-pager.hbs and page-item.hbs. What do you think?

knownasilya commented 8 years ago

I'll take a PR. Once Bootstrap4 is released (non alpha/beta) we can major bump and set the classes to that by default.

mk-conn commented 8 years ago

For now I've just extended the addon components and adjusted the templates which is just fine for me now. Yeh it totally makes sense to wait for BS4 to become final...

afuno commented 6 years ago

@knownasilya So... what? Will Bootstrap 4?

knownasilya commented 6 years ago

Since it's been released, I'd be willing to take a PR if you want to take a stab at it.

knownasilya commented 6 years ago

I'll probably be releasing a version that allows this:

{{#pagination-pager current=current count=count change=(action 'changePage') as |api|}}
  {{#each api.items as |item|}}
    {{#if item.separator}}
      {{item.value}}
    {{else}}
      <a href='?page={{item.value}}' onclick={{action api.onClick item}}>{{item.value}}</a>
    {{/if}}
  {{/each}}
{{/pagination-pager}}

From there I'll export two or more versions: BS3, BS4 and maybe Foundation?

musaffa commented 6 years ago

@knownasilya Any progress? We want to use this addon with BS4.

knownasilya commented 6 years ago

I'll try to take a stab at implementing that lower level API this weekend, allowing anyone else to submit a PR for a BS4 "wrapper" component.