如何使用gwtext或gxt将日期字段添加到工具栏
我需要为From Date和to Date添加两个日期字段,并使用gxt或gwtext向工具栏添加一个按钮。请建议如何执行此操作 更新 我正在gxt中创建一个网格。我需要在网格顶部添加一个工具栏。我正在按以下方式创建工具栏:如何使用gwtext或gxt将日期字段添加到工具栏,gwt,gxt,gwt-ext,Gwt,Gxt,Gwt Ext,我需要为From Date和to Date添加两个日期字段,并使用gxt或gwtext向工具栏添加一个按钮。请建议如何执行此操作 更新 我正在gxt中创建一个网格。我需要在网格顶部添加一个工具栏。我正在按以下方式创建工具栏: ToolBar toolBar = new ToolBar(); 然后我创建了两个日期字段作为 DateField fromDate=new DateField(); DateField toDate=new DateField(); fromD
ToolBar toolBar = new ToolBar();
然后我创建了两个日期字段作为
DateField fromDate=new DateField();
DateField toDate=new DateField();
fromDate.setFieldLabel("From Date");
fromDate.setHeight(23);
fromDate.setWidth(179);
toDate.setFieldLabel("To Date");
toDate.setHeight(23);
toDate.setHeight(179);
但是现在我想将这两个日期字段和一个按钮添加到工具栏中,并且需要将工具栏添加到网格面板的顶部
请导游 您只需添加两个日期字段,如下所示:
toolBar.add(fromDate);
toolbar.add(new SeparatorToolItem());
toolBar.add(toDate);
@埃米尔Adz@AnsgarWiechers我更新了我的问题。请建议解决方案。