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

delegate in itemview #874

@npoppeli

Description

@npoppeli

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions