Primefaces DataTable RowGroup 与 HeaderRow :如何反转顺序?

问题描述 投票:0回答:1
primefaces
1个回答
0
投票

我查看了

org.primefaces.component.headerrow.HeaderRowBase
,有一个
sortOrder
值。所以添加
sortOrder="desc"
就可以了。例如在展示中:

<p:headerRow field="representative.name"
                                  expandable="true" 
+                                 sortOrder="desc"
                                  expanded="#{customer.representative.name != 'Stephen Shaw'}">

文档中缺少此属性:

https://primefaces.github.io/primefaces/13_0_0/#/components/headerrow

© www.soinside.com 2019 - 2024. All rights reserved.