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
Post a Comment