-
FEATURED COMPONENTS
First time here? Check out the FAQ!
i am using composer with my view in the composer i have a method which returns a simple boolean by a condition i want to set the width of a component by that condition how can i do it?
i am trying with something like this with no success
<listheader width='${composer.works}?15%:13%'>
But treats it as a string literal is this possible? i know there is much options of setting width but this one really intrigue me. thanks a lot sorry by my poor english.
Hello javiut,
You can check out the following:
https://www.zkoss.org/wiki/ZKDeveloper'sReference/UIComposing/ZUML/ELExpressions
But i would rather create a string variable and set it's value in the controller based on the boolean value as shown below:
http://www.cafeaulait.org/course/week2/43.html
Best Regards,
Darksu
Asked: 2016-04-27 15:44:07 +0800
Seen: 27 times
Last updated: Apr 27 '16
wrong valueException come in front of modal popup [closed]
Use parameters in a conditional @command
Problems with multiple press and onCtrlKey
MVVM @save on the fly [closed]
Unable to activate destroyed desktop
org.zkoss.zk.ui.UiException: java.lang.ClassNotFoundException
How to put a image or Letter over image on a specific XY Coordinate
Width="${composer.works?'15%':'13%'}"
chillworld ( 2016-04-27 22:18:29 +0800 )edit