From bd05577a99a52d7d43f74a1f3f50663e4fb5cc5a Mon Sep 17 00:00:00 2001 From: Julien Dramaix Date: Mon, 7 Mar 2011 10:11:25 +0000 Subject: add suggestbox in widget plugin --- .../src/main/java/gwtquery/samples/client/GwtQueryWidgetModule.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'samples') diff --git a/samples/src/main/java/gwtquery/samples/client/GwtQueryWidgetModule.java b/samples/src/main/java/gwtquery/samples/client/GwtQueryWidgetModule.java index 63f8cf5e..4f01d103 100644 --- a/samples/src/main/java/gwtquery/samples/client/GwtQueryWidgetModule.java +++ b/samples/src/main/java/gwtquery/samples/client/GwtQueryWidgetModule.java @@ -24,6 +24,7 @@ import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.query.client.plugins.widgets.WidgetInitializer; import com.google.gwt.query.client.plugins.widgets.ListBoxWidgetFactory.ListBoxOptions; +import com.google.gwt.query.client.plugins.widgets.SuggestBoxWidgetFactory.SuggestBoxOptions; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.PopupPanel; @@ -63,6 +64,8 @@ public class GwtQueryWidgetModule implements EntryPoint { $("#disclosure").as(Widgets).disclosurePanel(); $(".list").as(Widgets).listBox(); $("#multiSelect").as(Widgets).listBox(new ListBoxOptions(".item", true)); + $("#suggestBox1").as(Widgets).suggestBox(new SuggestBoxOptions("div")); + $("#suggestBox2").as(Widgets).suggestBox(new SuggestBoxOptions("li")); } } -- cgit v1.2.3