sort = "auto"のlistheader要素がありますが、その列をクリックするとリストはソートされません。矢印が表示され、方向が逆になりますが、リストの順序は変わりません。オブジェクトのsort = "auto"の使い方は?
リストに追加されたコンポーネントは、org.zkoss.zul.A
オブジェクトです。これはソートが機能しない理由と思われます。
リスト項目がAオブジェクトであるリストボックスでソートが機能する回避策がありますか?
私のZUL:グルーヴィー
<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)
コードが不完全または間違っているようです。 – aristotll