Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Not only) Bootstrap 4 friendly #28

Open
mk-conn opened this issue Feb 2, 2016 · 7 comments
Open

(Not only) Bootstrap 4 friendly #28

mk-conn opened this issue Feb 2, 2016 · 7 comments
Assignees

Comments

@mk-conn
Copy link

mk-conn commented Feb 2, 2016

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
Copy link
Owner

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
Copy link
Author

mk-conn commented Feb 9, 2016

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...

@mk-conn mk-conn closed this as completed Feb 9, 2016
@afuno
Copy link

afuno commented May 18, 2018

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

@knownasilya knownasilya reopened this May 18, 2018
@knownasilya
Copy link
Owner

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

@knownasilya
Copy link
Owner

knownasilya commented Jul 26, 2018

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
Copy link

musaffa commented Aug 24, 2018

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

@knownasilya
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants