-
FEATURED COMPONENTS
First time here? Check out the FAQ!
In panel title attribute i want to add some text and finish whit parameter from ViewModel Is this possible. Something like this:
<panel title="text" + @load(parameter)
title="@load('text'.concat(parameter))"
Тhanks for the answers will be useful to me.I have already changed several panel titles.But for the next panel the problem is:
title="${sec:isAnyGranted('ROLE') ? 'text1' : 'text2'}"
I want to add @load(parameter) after text1/text2 . I tried the ways suggested so far but did`t work . For now I create method and use him like this:
title="@bind(vm.createTitle('lc'))"
He returns the required text, but I have several cases and need to pass different parameter to form the right result.So I think if I can add the different parameter to zul is the smart decision.
@load(sec:isAnyGranted(vm.role)?'text1':'text2') => your binder need to know when role changes so that's normally coming from viewmodel. ${} is static only and will render only 1 time.
chillworld ( 2017-09-13 20:10:09 +0800 )editAsked: 2017-09-11 21:42:58 +0800
Seen: 26 times
Last updated: Sep 13 '17
Problem binding values to a composite component
How to access static member field of a class in zul without zscript
How can i load a constant in .zul
MVVM Validator: class not found ? [closed]
MVVM tab box - delay @load until tab pane displayed?
mvvm, load or save with after or before for seach command
how to fire an event when a variable value loaded through VM
is there any event trigger from zk component on binding ?
ZK team plans to dispose of Composer EventQueues no longer in scope? [closed]