Textbox Enabling in ZK

2019-08-02 15:37发布

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条回答
乱世女痞
2楼-- · 2019-08-02 16:02

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.

查看更多
登录 后发表回答