Giter Club home page Giter Club logo

Comments (7)

ddnexus avatar ddnexus commented on August 25, 2024

Overall the integration looks like it should be a fairly simple task.

Indeed it should be very simple: you can start from the pagy_nav_bootstrap helper and just edit it (mostly the class names).

Which are the issues you ran into?

from pagy.

dwieringa avatar dwieringa commented on August 25, 2024

I just took another look at this. My first issue was with some malformed HTML, but I was able to resolve that.

I know I got a bit confused integrating Foundation's recommended screen reading content...into link.call I think. But that could probably be left off if needed.

Now my main issue is that my Previous and Next buttons are getting an arrow from Foundation and another from pagy_t (eg pagy_t('pagy.nav.next')). Should I just skip pagy_t here and hard code "Next" and "Previous"?

image

from pagy.

ddnexus avatar ddnexus commented on August 25, 2024

Hi @dwieringa, glad that you are making progress!

Indeed the pagy_t is getting the full string (including the chevron) from the I18n dictionary, and it looks like the Foundation CSS adds another one to it.

If it is just for your own use, you can skip the pagy_t, but if you are going to share it in an extra for everybody else (and I hope so), I think you should remove the class and use the original pagy_t that allows people to translate/change it by just changing the entry in the dictionary file.

Not sure whether that class adds something else that is important for the pagination style.

from pagy.

ddnexus avatar ddnexus commented on August 25, 2024

If that class is adding something important, and in case you want to start the foundation extra ;)... there is a third solution, which is adding a couple of extra entries in the dictionary file like pagy.nav.next_text_onlyand pagy.nav.prev_text_only, so you could use that in the helpers.

from pagy.

dwieringa avatar dwieringa commented on August 25, 2024

I just searched https://github.com/zurb/foundation-sites and it appears the pagination-previous and pagination-next classes only add the arrows, so for now, I'll alter my pagy extra to leave those off.

I'll plan on submitting a PR once I'm done with it. :)

from pagy.

dwieringa avatar dwieringa commented on August 25, 2024

I've submitted PR #79

I haven't looked at adding support for the compact or responsive extras yet.

from pagy.

ddnexus avatar ddnexus commented on August 25, 2024

Thank you!

from pagy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.