manolo / gwt-polymer-elements

Polymer Web Components for GWT. A collection of Material Design widgets for desktop and mobile.
Apache License 2.0
155 stars 49 forks source link

PolymerElement #44

Closed lilletech closed 8 years ago

lilletech commented 9 years ago

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 ?

manolo commented 9 years ago

Do you use Elements or Widgets in your UiBinder ?

lilletech commented 9 years ago

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 .

manolo commented 8 years ago

The ways to get notified when the ui is ready are:

   Polymer.whenReady(Function callback);
   Polymer.ready(Element el, Function callback);
Mattallica commented 8 years ago

Note that the whenReady method is available since the 1.2.1.0 version of vaadin-gwt-polymer-elements