0

How to make listItems have a actionListener and change a ListBox ?

asked 2021-11-08 15:38:48 +0800

daniapesteguia gravatar image daniapesteguia
7 2

updated 2021-11-10 11:36:22 +0800

cor3000 gravatar image cor3000
6270 2 7
ZK Team

Hi, I'm trying to build this:

if listItem option is 0 -> Show a table

if listItem option is 1 -> Not show a table

<listbox selectedItem="@bind(fx.accessType)">
  <listitem value='${c:int(0)}' label="${labels.shared.accesable}" />
  <listitem value='${c:int(1)}' label="${labels.shared.notAccesable}" />

and table should be shown in the same window, not another tab. ¿Is it possible? Right now is shown depending of this, but I wanted to be interactive with listitem selected item.

<zk id="sharedTable" if="${vm.shared.accessType==0}">
    <window sclass="header_modal" title="Restricted share">
        <my listbox>
delete flag offensive retag edit

1 Answer

Sort by » oldest newest most voted
0

answered 2021-11-10 18:42:15 +0800

cor3000 gravatar image cor3000
6270 2 7
ZK Team

you can use the same techniques already mentioned in your previous question

https://forum.zkoss.org/question/113914/how-to-show-listbox-only-if-certain-condition/

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2021-11-08 15:38:48 +0800

Seen: 5 times

Last updated: Nov 10

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