Let's say element B extends A.
<polymer-element name="A">
<template>
The property: {{property}}
</template>
<script>
Polymer({ property: 'Property defined in A' });
</script>
</polymer-element>
<polymer-element name="B" extends="A">
<template>
<!--shadow></shadow--> <!-- NO shadow! I want my own completely
different template! -->
My own template, with binding: {{property}}
</template>
<script>
Polymer(); // no overrides here
</script>
</polymer-element>
1. (templating)
Can B have it's own template without calling "<shadow></shadow>" ?
If yes, will properties and events defined in A be bound the B's new
template ?
2. (styling)
Will styles defined for A apply to B, now that the tag name has changed ?
If yes, how much of them? Only those defined on :host, or also those
involving the "A" tag name ?
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/fafd4bfd-7e59-4c3d-b77b-3be292bf7ce6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.