-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi all.
I have a tree
<tree id="objects" vflex="1" model="@bind(vm.objects)" multiple="true"
checkmark="true" onSelect="@command('select')">
<treecols>
<treecol/>
</treecols>
<template name="model" var="item">
<treeitem>
<treerow>
<treecell image="@load(vm.getIcon(item))" sclass="nowrap"
tooltiptext="@load(item.title)" label="@load(item.title)"/>
</treerow>
</treeitem>
</template>
</tree>
All i want is to make a tree item checkbox checked only if user click on checkbox icon. Not on the text of item. Is it posible? If yes - where can I find information how to implement it?
Many thanks and best regards.
I found it.
Simplest way - is to use nonselectableTags="*"
parameter:
<tree id="objects" vflex="1" model="@bind(vm.objects)" multiple="true"
checkmark="true" onSelect="@command('select')" nonselectableTags="*">
. . .
</tree>
Asked: 2016-01-28 11:28:26 +0800
Seen: 16 times
Last updated: Feb 01 '16
How to control selectAll() feature in a Listbox with multiple=true and checkmark=true
ZK8 Wizard Series: Part 2 now released!
Faster And Lighter, The Performance Test On ZK8
org.zkoss.xel.XelException: Resource not found: http://www.zkoss.org/dsp/web/core
How To Check Dirty Status in ZK8?
Come and join the ''JS'' Hunt!