I've tried something else having:
<core-list>
<template>
<li is="{{itemTemplate}}></li>
</template>
</core-list>
and :
<list-test itemTemplate="list-item"></list-test>
But the core-list item gets rendered as a regular <li> element...
On Thursday, February 26, 2015 at 3:36:11 PM UTC+1, David Bismut wrote:
>
> Hi,
>
> I'm wrapping the core-list element into a custom list-test element like
> this:
>
> <polymer-element name="list-test" attributes="object">
> <template>
> <!-- other HTML code -->
> <core-list>
> <template>
> <content select=".test"></content>
> </template>
> </core-list>
> </template>
>
> <script>
> (function () {
> Polymer({
> })();
> </script>
> </polymer-element>
>
> And I would like to use my list-test element like this, so I can
> dynamically chose the custom element that will display the core-list items.
>
> <list-test>
> <list-item class="test"></list-item>
> </list-test>
>
> I'm full aware that this is not the right way to use the content tag and
> that it won't work. I've tried to search for similar topics here and there
> without success. I've found a more-list
> <https://github.com/PolymerLabs/labs/blob/master/list/elements/more-list/more-list.html#L54>
>
> item in Polymer labs, but I'm not sure how the shadowFromTemplate function
> would work.
>
> Is there a way to make this works?
> Thanks!!
>
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/55a5b971-b900-4cdf-965b-530b1952b107%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.