[英]GWT Material. Add InlineSearch in table header
How can i add this search icon 如何添加此搜索图标
<m:MaterialLink iconType="SEARCH" ui:field="openSearch" iconColor="BLACK" float="RIGHT"/>
and this Inline search 和此内联搜索
<incubator:search.ExpandableInlineSearch ui:field="txtSearch" theme="LIGHT" width="50%" placeholder="Search" display="INLINE"/>
in header of material table? 在物料表的标题中?
<mt:MaterialDataTable addStyleNames="{style.text-wrap}" ui:field="table"
height="calc(100vh - 151px)"
useStickyHeader="false"
useCategories="false"
useRowExpansion="false"
selectionType="NONE"/>
Yeah, finally! 是的,终于! That was so easy.
那太简单了。
You should use this: 您应该使用此:
@UiField
MaterialDataTable<MailNotificationDTO> table;
Panel panel = table.getScaffolding().getToolPanel();
panel.add(new MaterialIcon(IconType.SEARCH));'
And the same for inline search 与内联搜索相同
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.