How Visible attributes worksin ZK?

asked 2015-01-20 13:15:41 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8

I am getting some issue i have used visible attribute in my zul page and when visible=false then the below DIV is not loading but even in that case it is taking space acquire by this DIV. Is this normal property for zul. What changes i have to do if i do not want if visibility false than it div component will not take acquire space as well?

 <div  visible="@load(vm.iframeVisibility)" >
    //Some code
delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-01-20 13:54:48 +0800

chillworld gravatar image chillworld flag of Belgium
5322 4 9

You should use the if attribute if you don't want that the div is put into the dom structure.

The if is rendered in a phase before you can speak the dynamic data, so @load(vm.iframeVisibility) won't work here. You have to use the ${} expressions.

Greetz chill.

link publish delete flag offensive edit


Thanks its worked

sjoshi ( 2015-01-21 04:51:13 +0800 )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

1 follower



Asked: 2015-01-20 13:15:41 +0800

Seen: 24 times

Last updated: Jan 20 '15

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