Can you change the value of a [[..]] property after it has been applied - e.g. in a ready callback script?

25 views
Skip to first unread message

Just.A.Guy

unread,
Feb 25, 2014, 3:08:16 PM2/25/14
to polym...@googlegroups.com
Suppose you have a "nearly" constant value in a custom polymer-element.
You use the [[..]] to minimize monitoring. But in some rare cases, you 
the user needs to change this value via a javascript function.

Is there a function which the script that changes the value can notify polymer
that this value has changed, so that all of its references will be updated?

I am thinking about something like printer name, or building location information.
It is normally not changed, but only on very special instances.  This
way the page could be static, and storing user specific information
could be stored in local storage and retrieved by the "ready" callBack.
In that routine, the user's data could be used to customize what
is really very static data.



Rafael Weinstein

unread,
Feb 25, 2014, 4:21:04 PM2/25/14
to Just.A.Guy, polymer-dev
Unfortunately, no. Right now there are only one-time ([[ foo ]]) and dynamic ({{ bar }}) bindings.


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 polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/7ae91666-fa2f-4388-aa7e-d3f5843fa7ce%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages