Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

delegate in itemview #874

Open
npoppeli opened this issue Feb 6, 2016 · 0 comments
Open

delegate in itemview #874

npoppeli opened this issue Feb 6, 2016 · 0 comments

Comments

@npoppeli
Copy link

npoppeli commented Feb 6, 2016

The documentation of the View module says: "Chaplin has the delegate method to register user input handlers. The declarative events hash doesn’t work well for class hierarchies when several initialize methods register their own handlers. The programatic [typo here] approach of delegate solves these problems."
If you have an item view inside a collection, and the item view needs to register event handlers, the question is: when to do this? The documentation is not clear about this. After some experimentation I found that you need to wait until the collection view is rendered, because at that point all item views are rendered and attached. Can this be clarified in the documentation?

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

No branches or pull requests

1 participant