org.zkoss.zul.tree.checkmarkDeselectOthers"

From Documentation
m
Line 10: Line 10:
 
If you prefer to deselect all other items and select the item being clicked (which the behavior of ZK 5.0.4 and earlier), you could specify true to this library property.
 
If you prefer to deselect all other items and select the item being clicked (which the behavior of ZK 5.0.4 and earlier), you could specify true to this library property.
  
{{ZKConfigurationReferencePageFooter}}
+
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">
 +
<listbox>
 +
  <custom-attribute org.zkoss.zul.listbox.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()">org.zkoss.zk.ui.Component</javadoc>).
 +
|}
 +
{{ZKConfigurationReferencePageFooter}}

Revision as of 06:20, 7 April 2011


org.zkoss.zul.tree.checkmarkDeselectOthers


Property:

org.zkoss.zul.tree.checkmarkDeselectOthers
Default: false
[Since 5.0.5]

If a tree's checkmark (Tree.isCheckmark()) is enabled, the selection will be toggled when an user clicks an item. In other words, all other items will remain the same.

If you prefer to deselect all other items and select the item being clicked (which the behavior of ZK 5.0.4 and earlier), you could specify true 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.

<listbox>
  <custom-attribute org.zkoss.zul.listbox.rightSelect="false"/>
...

Version History

Last Update : 2011/04/07


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()).


Last Update : 2011/04/07

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.