Textbox Enabling in ZK

2019-08-02 15:15发布

问题:

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.