Closed lilletech closed 8 years ago
Do you use Elements or Widgets in your UiBinder ?
I'm using widgets in uibinder Le 14 juil. 2015 18:48, "Manuel Carrasco Moñino" notifications@github.com a écrit :
Do you use Elements or Widgets in your UiBinder ?
— Reply to this email directly or view it on GitHub https://github.com/vaadin/gwt-polymer-elements/issues/44#issuecomment-121305410 .
The ways to get notified when the ui is ready are:
Polymer.whenReady(Function callback);
Polymer.ready(Element el, Function callback);
Note that the whenReady method is available since the 1.2.1.0 version of vaadin-gwt-polymer-elements
Sometimes, when your init the widget via uibinder and call the setValue() of a input does'nt work. the console shows no errors but the value stays empty.
Calling setValue() via a Function passed in the method ready() fixes that. Is there a method to get notified when all the polymer elements of a container are ready ?