Polymer update object outside of component and reflect changes to UI -
is possible reflect changes polymer component property without update value via .set(path, value)
.
for example have object overrided setter based on value apply new value other field.
polymer({ is: 'x-element', properties: { form: {type: object, value: { set name(v) { this._name = v; this.additional = v; // change different property }, name() { return this.name; }, set additional(v) { // process v this._additional = v; // field not reflect }, additional() { return this._additional; } }, reflecttoattribute: true } })
Comments
Post a Comment