3

我需要自定义 Tapestry Grid 列上的标题文本。这段代码就是这样做的,但它删除了排序功能

<table class="table table-striped" t:type="grid" t:source="data"
    t:rowsPerPage="50" t:pagerPosition="bottom">

    <p:specialHeader>Custom header</p:specialHeader>

</table>

带有自定义标题的网格

如何将排序功能恢复为此自定义标题?

4

1 回答 1

2

如果您只需要网格标题中的文本,则可以为此使用消息包:

special-label=Custom header
于 2013-05-23T12:27:29.303 回答