Thursday, April 18, 2013

Getting a form from an Ext.form.Panel

Using an Ext.form.Panel is an excellent choice for form-type screens as it can simplify some aspects of the interface. One such simplification is the ability to call isValid(), which allows you to validate all the fields in the form at once. This can, for example, check that fields with a vtype of email are in a format of name@server.com. The problem I ran into however, is that an Ext.form.Panel does not have the method isValid(). The object you want is the underlying Ext.form.BasicForm. To get the child form, you can simply call getForm().


var panel = Ext.create('Ext.form.Panel', {
    items: [...]
});

var validity = panel.getForm().isValid();

1 comment:

  1. How to make your casino mobile mobile with the
    With an HTML5 browser, 진주 출장안마 you 세종특별자치 출장안마 can now play slots games online at an affordable price 통영 출장마사지 from our mobile app. 창원 출장샵 With your phone connected, you can play slots games 아산 출장마사지 for

    ReplyDelete