org.zkoss.zul.listbox.rightSelect"

From Documentation
m
 
(3 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
'''Property:'''
 
'''Property:'''
 
  org.zkoss.zul.listbox.rightSelect
 
  org.zkoss.zul.listbox.rightSelect
 +
 +
{{NestedLibraryProperty}}
  
 
  Default: true
 
  Default: true
[Since 5.0.5]
+
{{versionSince| 5.0.5}}
  
If a listbox's checkmark (<javadoc method="isCheckmark()">org.zkoss.zul.Listbox</javadoc>) is enabled, the selection will be toggled when user right click on item.
+
If a listbox's checkmark (<javadoc method="isCheckmark()">org.zkoss.zul.Listbox</javadoc>) is enabled, the selection will be toggled when the user right clicks on an 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 an item with a 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.
 
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.
Line 14: Line 16:
 
<source lang="xml">
 
<source lang="xml">
 
<listbox>
 
<listbox>
   <custom-attribute org.zkoss.zul.listbox.rightSelect="false"/>
+
   <custom-attributes org.zkoss.zul.listbox.rightSelect="false"/>
 
...
 
...
 
</source>
 
</source>

Latest revision as of 04:28, 8 September 2023


org.zkoss.zul.listbox.rightSelect


Property:

org.zkoss.zul.listbox.rightSelect
Applicable:
Dndsmalltalk-check-icon.png globally in zk.xml via <library-property>
Dndsmalltalk-check-icon.png nested in a zul file via <custom-attributes>
Default: true

Since 5.0.5

If a listbox's checkmark (Listbox.isCheckmark()) is enabled, the selection will be toggled when the user right clicks on an item.

If you prefer not to select/deselect an item with a 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.

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

Version History

Last Update : 2023/09/08


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


Last Update : 2023/09/08

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