On Fri, 25 Nov 2016 at 04:39 <rhys.m.greg...@gmail.com> wrote:

> Hey!
>
> If I had a similar list item to the Polymer Shop:
> https://github.com/Polymer/shop/blob/master/src/shop-list-item.html
>
> ..and I wanted to use a paper-icon-item, would the idea be to put the
> paper-icon-item inside shop-list-item?
>

The shop example is built in a way that shows a working example, but some
of the elements are designed to work with only their siblings. That
includes the shop-list and shop-list-item elements. Unfortunately it means
you cannot modify much without hacking it about directly.

If you just want to replace the image on an item then the object which
defines each item can include an `image` attribute. This attribute will be
passed to shop-image which determines the image display. The attribute
itself should be a single string with the URL to the image you want to
display.

To create your own custom list and list-item elements which allow for
composability you can attempt something like
http://stackoverflow.com/questions/34645114/polymer-dom-repeat-binding-to-content/34751655#34751655
however
I don't understand that method well enough to advise usage.

HTH,
Dan.

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to polymer-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/CABtuYwe_MmWDryiow48Asf2L30OrG0MGNcGHVBACTGhrde7ahw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to