org.zkoss.zul.tree.autoSort"
From Documentation
Jimmyshiau (talk | contribs) (Created page with "{{ZKConfigurationReferencePageHeader}} '''Property:''' org.zkoss.zul.tree.autoSort Default: false [Since 5.0.7] Specifies whether to sort the model when the following cases:...") |
Robertwenzel (talk | contribs) m |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
'''Property:''' | '''Property:''' | ||
org.zkoss.zul.tree.autoSort | org.zkoss.zul.tree.autoSort | ||
+ | |||
+ | {{NestedLibraryProperty}} | ||
Default: false | Default: false | ||
Line 10: | Line 12: | ||
*<javadoc method="setSortDirection(String)">org.zkoss.zul.Treecol</javadoc> is called. | *<javadoc method="setSortDirection(String)">org.zkoss.zul.Treecol</javadoc> is called. | ||
*Model receives <javadoc>org.zkoss.zul.event.TreeDataEvent</javadoc> and <javadoc method="setSortDirection(String)">org.zkoss.zul.Treecol</javadoc> is set. | *Model receives <javadoc>org.zkoss.zul.event.TreeDataEvent</javadoc> and <javadoc method="setSortDirection(String)">org.zkoss.zul.Treecol</javadoc> is set. | ||
− | If you want to ignore | + | If you want to ignore sorting when receiving <javadoc>org.zkoss.zul.event.TreeDataEvent</javadoc>, you can specifies the value as '''ignore.change'''. |
If you prefer to configure a particular component, you could specify it as the custom attribute of the component or any of its ancestor components. | If you prefer to configure a particular component, you could specify it as the custom attribute of the component or any of its ancestor components. |
Latest revision as of 11:15, 7 July 2016
Property:
org.zkoss.zul.tree.autoSort
Applicable: globally in zk.xml via <library-property> nested in a zul file via <custom-attributes>
Default: false [Since 5.0.7]
Specifies whether to sort the model when the following cases:
- Tree.setModel (TreeModel)is called and Treecol.setSortDirection(String) is set.
- Treecol.setSortDirection(String) is called.
- Model receives TreeDataEvent and Treecol.setSortDirection(String) is set.
If you want to ignore sorting when receiving TreeDataEvent, you can specifies the value as ignore.change.
If you prefer to configure a particular component, you could specify it as the custom attribute of the component or any of its ancestor components.
<tree>
<custom-attributes org.zkoss.zul.tree.autoSort="true"/>
...
Version History
Version | Date | Content | 5.0.7 | April 2011 | Tree shall sort model based on current state. |
---|