Would injectBoundHTML() be a good solution?

http://stackoverflow.com/questions/25981318/polymer-how-to-create-element-with-binding/25982843#25982843

On Mon, Sep 22, 2014 at 3:03 PM, Michael Bleigh <[email protected]> wrote:

> 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
> <https://groups.google.com/d/msgid/polymer-dev/50624710-e235-46c1-b504-ea75cd5c503c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

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/CACGqRCBEbErCHxckBxL9Rq3JEXb4TEG3KXWPQ2r-w_1tRPgd0Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to