Skip to content
This repository was archived by the owner on Mar 20, 2021. It is now read-only.
This repository was archived by the owner on Mar 20, 2021. It is now read-only.

CollectionView: Support for header and footer #402

@MichaReiser

Description

@MichaReiser

If the collection helper is used to render e.g. an ul, then it's hard to add a header and footer (need to use appendItem). It would be nice if this common case would be possible from the handlebars template.

{{#collection ... tagName="ul"}}
    <li class="header">...</li>
    {{collection-element}}
    <li class="footer">..</li>
{{/collection}}

Instead of inserting a new Wrapper-Element in the collection-element helper, it should append it to the parents element (maybe another helper name should be used).

This change would require to rewrite the update mechanism in the CollectionView (which first removes all content from the collection.el and then renders the items.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions