I'm using uniform.js in my GWT app. I need to change the values of the select item diagrammatically. But, the widget seems does not get updated. I know this can be updated using
$.uniform.update();
But, how can I do it in GWT?
I'm using uniform.js in my GWT app. I need to change the values of the select item diagrammatically. But, the widget seems does not get updated. I know this can be updated using
$.uniform.update();
But, how can I do it in GWT?
Hi I has the similar issue. I tried the below JSNI. It worked for me.
$wnd.jQuery(".checker span").each(function(){
if(!$wnd.jQuery(this).parent().find("input:checkbox").is(':checked'))
{
$wnd.jQuery(this).removeClass("checked");
}
});
$wnd.jQuery(".selector span").each(function(){
$wnd.jQuery(this).html($wnd.jQuery(this).parent().find(":selected").text());
});
Yeh .You can contact with jquery from gwt by using JSNI .
Try using this
public static native void update() /*-{
$wnd$.uniform.update();
}-*/;
or like
public static native void update() /*-{
$wnd.jQuery.uniform.update();
}-*/;
And call the static method update() in your GWT
class