Code:
public class Application implements EntryPoint { VLayout vLayout = new VLayout(5); DynamicForm form = new DynamicForm(); form = new DynamicForm(); TextItem name = new TextItem("name", "Event Name"); name.setTextBoxStyle("backgroundRed"); DateTimeItem dateItem1 = new DateTimeItem("Date", "Date"); dateItem1.setTextBoxStyle("backgroundRed"); DateItem dateItem2 = new DateItem("Date", "Date"); dateItem2.setUseTextField(true); dateItem2.setTextBoxStyle("backgroundRed"); form.setFields(new FormItem[]{name, dateItem1, dateItem2}); vLayout.addMember(form); RootPanel.get().add(vLayout);
I try to do some hack with GwtQuery, like
Code:
GQuery formInputElemet = GQuery.$("input"); for (Element element : formInputElemet.elements()) { element.addClassName("backgroundRed"); } }
Any hint?
Thanks
Comment