-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi
We are using form binding on a UI component as follows:
<panelform disabled="@load(vm.system)"
form="@id('formData') @load(vm.employee) @save(vm.employee, before='doSaveEmployee')">
<textbox id="employeeName" value="@load(formData.name)" disabled="@load(formData.manager)"/>
</panelform>
The set disabled on the panelform component loops through all of the child components and calls setDisabled(false). This successfully disables the components in this example the employeeName textBox is disabled because vm.system is true.
The problem is when the employeeName disabled property @load is performed, the field is enabled as formData.manager is false.
Is there anyway to override the binder with a custom class and ignore the disabled property bindings under certain conditions. In this example when the vm.system = true we want to ignore individual disabled property bindings on the components in the panelform.
Thanks.
And like this?
disabled="@load(vm.prop?formData.manager:'')"
Asked: 2017-06-23 06:01:45 +0800
Seen: 13 times
Last updated: Jun 23 '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]