在ZK中启用文本框 [英] Textbox Enabling in ZK
问题描述
继续我的zk研究,现在我对这里的数据绑定功能有了更好的了解
Continuing with my zk studies, now i have a better knowledge about data binding features from here
感谢以前的帮助,我解决了该问题,现在我对有使用ZK经验的人提出了一个小要求,那就是我从该表中选择一个项目
thanks for the previous help i resolved the issue, now i have a small request for someone that has experience using ZK and it is when i select an item from this table
http://s33.postimg.org/mo1bu0ua6/Sample.jpg
仅当我进行选择时,我才希望启用上述所有组件,文本框和按钮.
i want to enable all the component of above, the textboxes and the buttons and only when i do the selection.
在这种特殊情况下,如何在ZK中启用/禁用组件限制?我愿意接受您的建议,谢谢您的宝贵时间.
How works the components restrictions enable/disable in ZK in this particular case? i am open to your suggestions, thank you for your time.
推荐答案
如果您使用MVVM模式,则实际上非常简单:
If you work with MVVM patter it's actually very easy :
<textbox value="bind(vm.selectedObject.textValue)" readonly="@load(empty vm.selectedObject)" />
数据绑定适用于每个属性,您可以在其中使用一些关键字.
databinding works for each attribute and you can use some keywords in it.
这篇关于在ZK中启用文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!