0

Disabling right click selecting item on per page basis? [closed]

asked 2015-10-08 15:15:44 +0800

rickcr gravatar image rickcr
704 7

I know I can disable right click from selecting an item in a listbox across the entire application by applying the following to the zk.xml, but what if I only want to apply the behavior to a particular listbox on a page? (The rest of them I want the right click selection behavior to remain the default.)

Only want this on a particular page, not global:

  <library-property>
    <name>org.zkoss.zul.listbox.rightSelect</name>
    <value>false</value>
  </library-property>
delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by rickcr
close date 2015-10-08 16:49:08

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-10-08 15:26:01 +0800

chillworld gravatar image chillworld flag of Belgium
5367 4 9
https://github.com/chillw...

updated 2015-10-08 15:27:17 +0800

try this :

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

This should work the tag where you insert it and all children.

If you need to enable it again In a child, just put it back in that child with property true.

Chill.

link publish delete flag offensive edit

Question tools

Follow

RSS

Stats

Asked: 2015-10-08 15:15:44 +0800

Seen: 30 times

Last updated: Oct 08 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More