Skip to content

Address polymer-elements that take child elements #337

Closed
@jyasskin

Description

The documentation has a lot of examples of polymer-elements with attributes, but aside from mentioning that child elements are possible at http://www.html5rocks.com/en/tutorials/webcomponents/customelements/, I don't see anything about how to use the templating engine to generate different shadow-dom based on the child elements of the polymer-element.

For example, maybe I want to implement the dateRangePicker from http://www.html5rocks.com/en/tutorials/webcomponents/shadowdom/#toc-projection. Or maybe I want to generate a shadow-table whose rows depend on which child elements are present, but then use <content select> to attach those child elements.

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