我有一个设置了 sort="auto" 的 listheader 元素,但是当我单击该列时,该列表不会排序。箭头出现并反向,但列表顺序不会改变。
附加到列表的组件是org.zkoss.zul.A
对象,这似乎是排序不起作用的原因。
是否有一种解决方法可以让列表项为 A 对象的 Listbox 工作?
我的祖尔:
<listbox id="myList" checkmark="true" multiple="true">
<listhead>
<listheader id='select' label="" width="30px" align="left"/>
<listheader label="myLabel" width="75px" sort="auto"/>
</listhead>
</listbox>
时髦的:
Listitem li = new Listitem(value: "myId")
li.appendChild(new Listcell())
Listcell listcell = new Listcell()
Long theId = "12345"
A link = new A(label: theId.toString(), style: "color:blue;")
listcell.appendChild(invoiceLink)
li.appendChild(listcell)