Textbox Enabling in ZK

自古美人都是妖i 提交于 2019-12-11 13:22:43

问题


Continuing with my zk studies, now i have a better knowledge about data binding features from here

Selected Item data from a table to textbox in 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.

How works the components restrictions enable/disable in ZK in this particular case? i am open to your suggestions, thank you for your time.


回答1:


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.



来源:https://stackoverflow.com/questions/37649566/textbox-enabling-in-zk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!