GWT材料。在表格标题中添加InlineSearch

时间:2018-10-20 15:34:20

标签: java xml gwt gwt-material-design

如何添加此搜索图标

<m:MaterialLink iconType="SEARCH" ui:field="openSearch" iconColor="BLACK" float="RIGHT"/>

和此内联搜索

<incubator:search.ExpandableInlineSearch ui:field="txtSearch" theme="LIGHT" width="50%" placeholder="Search" display="INLINE"/>

在物料表标题中?

<mt:MaterialDataTable addStyleNames="{style.text-wrap}" ui:field="table"
                                           height="calc(100vh - 151px)"
                                           useStickyHeader="false"
                                           useCategories="false"
                                           useRowExpansion="false"
                                           selectionType="NONE"/>

1 个答案:

答案 0 :(得分:0)

是的,终于!太简单了。

您应该使用此:

@UiField
MaterialDataTable<MailNotificationDTO> table;

Panel panel = table.getScaffolding().getToolPanel();
panel.add(new MaterialIcon(IconType.SEARCH));'

与内联搜索相同