开发者

Extjs checkboxes inside basic form

开发者 https://www.devze.com 2023-03-14 07:39 出处:网络
I have a basic form inside a window. This form has several check boxes and I need to some how be able to select all with another checkbox. How am I supposed to access these checkbox type开发者_开发知识

I have a basic form inside a window. This form has several check boxes and I need to some how be able to select all with another checkbox. How am I supposed to access these checkbox type开发者_开发知识库s. I am trying to get reference to "this" and then this.getForm().getFieldValues() but is there a better way to do it, as I only need to get the checkboxes and not other fields.

Thanks, SS


By default ExtJs fields don't have a getForm() method to get access to their parent. However, you can use this override to add this method. Once you've got the form, you can get access to any field you like, which should let you do what you describe.

0

精彩评论

暂无评论...
验证码 换一张
取 消