org.zkoss.zul.listbox.rightSelect"
From Documentation
m |
|||
Line 9: | Line 9: | ||
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"> | ||
+ | <listbox> | ||
+ | <custom-attribute org.zkoss.zul.listbox.rightSelect="false"/> | ||
+ | ... | ||
+ | </source> | ||
=Version History= | =Version History= | ||
Line 18: | Line 26: | ||
| October 2010 | | 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. | | 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}} | {{ZKConfigurationReferencePageFooter}} |
Revision as of 06:20, 7 April 2011
Property:
org.zkoss.zul.listbox.rightSelect
Default: true [Since 5.0.5]
If a listbox's checkmark (Listbox.isCheckmark()) is enabled, the selection will be toggled when user right click on 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.
<listbox>
<custom-attribute org.zkoss.zul.listbox.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()). |