Are you looking to instantiate existing elements or register new ones on
the fly? If you're just looking to create elements you've already defined,
you can just use standard DOM APIs!
var node = document.createElement("my-custom-element");
node.someProperty = "someValue";
this.appendChild(node)
If you're looking to define new ones on the fly, I'm not 100% sure why
you'd want to and I'm also not 100% how, so I'll let someone else handle
that.
On Monday, September 22, 2014 2:59:43 PM UTC-7, [email protected] wrote:
>
> Hi
>
> I am going to write some more complicated elements like grids that have
> dynamically created cells with polymer elements in each cell based on the
> cell type.
>
> To do that I need to create and bind polymer elements programmatically
> during runtime.
>
> I cannot find any documentation about that.
>
> Is it possible?
>
> How?
>
> Any risks/limitations with polyfills/life cycle/memory leaks?
>
> Thank you
> Bernd
>
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/50624710-e235-46c1-b504-ea75cd5c503c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.