-
Bug
-
Resolution: Fixed
-
Normal
-
8.6.1
-
Security Level: Jimmy
-
Windows 10, Oracle JDK 1.8.0_201, Tomcat 8.0.47, ZK 8.6.1.FL.20190201
-
ZK 8.6.2 S1, ZK 8.6.2 S2
-
None
When setting the sortDirection in a listheader and a template is in use, the icon is not shown.
public class SortVM { public class Resource { private String code; private String description; public Resource(String code, String description) { this.code = code; this.description = description; } public String getCode() { return code; } public String getDescription() { return description; } } public Resource[] getResources() { return new Resource[] { new Resource("01", "ZZZ"), new Resource("02", "AAA") }; } }
<listbox viewModel="@id('vm') @init('SortVM')" model="@load(vm.resources)"> <listhead> <listheader label="Code" sort="auto(code)" sortDirection="ascending" /> <listheader label="Description" sort="auto(description)" /> </listhead> <template name="model"> <listitem> <listcell label="${each.code}" /> <listcell label="${each.description}" /> </listitem> </template> </listbox>
- relates to
-
ZK-4067 Header sort icon not cleared on model change
- Closed