org.zkoss.zul.tree.rightSelect"
From Documentation
(Created page with ' {{ZKConfigurationReferencePageHeader}} Default: true [Since 5.0.5] If a tree's checkmark (<javadoc method="isCheckmark()">org.zkoss.zul.Tree</javadoc>) is enabled, the selec…') |
Robertwenzel (talk | contribs) m |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ZKConfigurationReferencePageHeader}} | {{ZKConfigurationReferencePageHeader}} | ||
+ | '''Property:''' | ||
+ | org.zkoss.zul.tree.rightSelect | ||
+ | |||
+ | {{NestedLibraryProperty}} | ||
Default: true | Default: true | ||
[Since 5.0.5] | [Since 5.0.5] | ||
− | If a tree's checkmark (<javadoc method="isCheckmark()">org.zkoss.zul.Tree</javadoc>) is enabled, the selection will be toggled when user right | + | If a tree's checkmark (<javadoc method="isCheckmark()">org.zkoss.zul.Tree</javadoc>) is enabled, the selection will be toggled when the user right clicks item. |
If you prefer not to select/deselect item on right click, you could specify false to this library property. | If you prefer not to select/deselect item on right click, you could specify false to this library property. | ||
+ | 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. | ||
+ | |||
+ | <source lang="xml"> | ||
+ | <tree> | ||
+ | <custom-attributes org.zkoss.zul.tree.rightSelect="false"/> | ||
+ | ... | ||
+ | </source> | ||
+ | |||
+ | =Version History= | ||
+ | {{LastUpdated}} | ||
+ | {| border='1px' | width="100%" | ||
+ | ! Version !! Date !! Content | ||
+ | |- | ||
+ | | 5.0.5 | ||
+ | | October 2010 | ||
+ | | org.zkoss.zul.listbox.rightSelect and org.zkoss.zul.tree.rightSelect are introduced to control whether to toggle item selection or not when an item is right clicked on a tree or a listbox with checkmark. | ||
+ | |- | ||
+ | | 5.0.7 | ||
+ | | April 2011 | ||
+ | | org.zkoss.zul.listbox.rightSelect and org.zkoss.zul.tree.rightSelect could be specified as component's attribute (<javadoc type="interface" method="getAttribute(java.lang.String, boolean)">org.zkoss.zk.ui.Component</javadoc>). | ||
+ | |} | ||
{{ZKConfigurationReferencePageFooter}} | {{ZKConfigurationReferencePageFooter}} |
Latest revision as of 11:14, 7 July 2016
Property:
org.zkoss.zul.tree.rightSelect
Applicable: globally in zk.xml via <library-property> nested in a zul file via <custom-attributes>
Default: true [Since 5.0.5]
If a tree's checkmark (Tree.isCheckmark()) is enabled, the selection will be toggled when the user right clicks item.
If you prefer not to select/deselect item on right click, you could specify false to this library property.
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.rightSelect="false"/>
...
Version History
Version | Date | Content |
---|---|---|
5.0.5 | October 2010 | org.zkoss.zul.listbox.rightSelect and org.zkoss.zul.tree.rightSelect are introduced to control whether to toggle item selection or not when an item is right clicked on a tree or a listbox with checkmark. |
5.0.7 | April 2011 | org.zkoss.zul.listbox.rightSelect and org.zkoss.zul.tree.rightSelect could be specified as component's attribute (Component.getAttribute(String, boolean)). |