Giter VIP home page Giter VIP logo

Comments (6)

rechsteiner avatar rechsteiner commented on May 24, 2024

This isn't possible at the moment, but it shouldn't be that difficult to get this working. We probably need to add some progress value to the widthForPagingItem pagingItem: delegate method, so that we can return different a width based on how far you've scrolled.

from parchment.

IVANKRUPSKI avatar IVANKRUPSKI commented on May 24, 2024

Ok. Understood.

Would be great to have it in the next update.
Thank you!

from parchment.

miguelalvescosta avatar miguelalvescosta commented on May 24, 2024

Hi, and if possible different background menu color on each menu tab?

from parchment.

rechsteiner avatar rechsteiner commented on May 24, 2024

@miguelalvescosta could you open a separate issue with a bit more details on what you're trying to achieve? Do you want the background color to change based on which item is selected or do you want each cell to always have a specific color? Both should be possible with the current version 🙂

from parchment.

rechsteiner avatar rechsteiner commented on May 24, 2024

Finally got this working now!

The widthForPagingItem delegate method now has a isSelected argument that you can use to return a different width for the selected cell. You can check out the DelegateExample target for more details. Here's the PR: #85

And sorry for taking so long – it turned out to be much harder than I originally thought. Will release a new version pretty soon ✌️

from parchment.

IVANKRUPSKI avatar IVANKRUPSKI commented on May 24, 2024

Cool!
Looking forward to seeing that working.

from parchment.

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.