-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a listbox that I want to make visible if variableCount is >0 and invisible if variableCount is 0. The problem I have is that variableCount is 0 and when is reloaded, it gets its value but the Listbox never goes visible. Is it possible to reload the "visible" property?
I got something like this:
<vlayout viewModel="@id('vm') >
<listbox visible="@load(vm.variableCount gt 0? true : false)">
Thanks,
Javier
yes it is possible, here an example: https://zkfiddle.org/sample/1hqvnic/1-Another-new-ZK-fiddle
Once you notify-change the variableCount
property the listbox visibility updates accordingly.
What did you try that didn't work? (feel free to update/save the zkfiddle and post the link here)
Asked: 2020-04-17 21:02:07 +0800
Seen: 12 times
Last updated: Apr 23 '20