css - Displaying an indeterminate checkbox with GWT Bootstrap -


i want able set bootstrap checkbox "indeterminate" status in gwt. wrote following code:

/**  * javascript give id'd element in form focus  *   * @param checkbox      element manipulate  * @param indeterminate true if indeterminate, false if not  */ public static native void setindeterminate (element checkbox, boolean indeterminate) /*-{     checkbox.indeterminate = indeterminate; }-*/; 

running in chrome debugger tells me checkbox set indeterminate = true, still displays unselected. when display this page see indeterminate checkbox correctly, it's not browser problem.

any suggestions on how fix this?

why want jsni code that?

you can use following

checkbox checkbox = new checkbox("some-label"); checkbox.getelement().setattribute("indeterminate", true /*or false*/); 

edit

just checked docs , blog posts. apparently, gwt doesn't support indeterminate in checkboxes. apparently there work around.

whenever want indeterminate value, set checkbox null. use css tricks style checkbox.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -