data binding - Dart + Polymer, how to bind to programmatically generated elements, textarea, select, optgroup -


i'm trying create form polymer component form elements generated on fly. i've looked, , far way bind value attribute using .injectboundhtml. not work component types, i'm trying bind value of <textarea>, , get:

removing disallowed attribute <textarea value="{{ results[ "comments" ] }}">

my work around add: textareaid.addeventlistener('change', updatevaluemap)

i'm hoping tell me why value disallowed, and/or if there better way programmatically assign bound attributes in polymer. please :)!

thanks gunter's suggestion, , passing node validator:

var val = new nodevalidatorbuilder.common()   ..allowelement('textarea', attributes:['value']); this.injectboundhtml(getelementstr(i), element:selp, validator:val); 

textarea doesn't have value attribute. try instead

<textarea>{{results['comments']}}</textarea> 

for more information message removing disallowed attribute see how create shadow dom programmatically in dart?


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -