Giter Site home page Giter Site logo

DidSelectItem about collectionkit HOT 2 CLOSED

soysaucelab avatar soysaucelab commented on July 24, 2024 1
DidSelectItem

from collectionkit.

Comments (2)

lkzhao avatar lkzhao commented on July 24, 2024

Not supported at the moment. don't want to overload too many features into CollectionView. But it is very easy to build this feature in your project with CollectionKit. Just keep a selected sets in your view controller. then assign a tapHandler and update that selected sets. Every time the selected sets changes, call collectionView.setNeedsReload(). Finally in the viewUpdater function, update your views to indicate selected/unselected state.

I have done this many times and it should be easy to do so. If time permits, I will add a new examples in the example project later after I release v2.0.

from collectionkit.

LinusGeffarth avatar LinusGeffarth commented on July 24, 2024

Wait, we cannot do anything when a cell is selected? That makes this unusable, unfortunately...who has a collection view that doesn't allow the user to tap cells?!
I really like the code examples, so I'd be happy to use the library if it featured this. I don't feel like cell selection can be considered overloading too many features.

from collectionkit.

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.