//表单
                               var form = new Ext.form.FormPanel({                             //创建表单面板
                                   labelAlign: 'center',                                       //水平对齐方式
                                   layout: 'form',                                             //布局模式
                                   id: 'form_xg',                                              //设置ID
                                   labelWidth: 100,                                            //宽度
                                   frame: true,                                                //是否显示frame
                                   defaultType: 'textfield',                                   //默认文本类型
                                   defaults: { allowBlank: false },                            //默认是否允许为空
                                   autoHeight: true,                                           //自适应高度
                                   autoWidth: true,                                            //自适应宽度
                                   bodyStyle: 'padding:0 0 10px 30px;',                        //设置窗体样式
                                   items: items
                               });


                              form.items.each(function (item, index, length) {

                                    alert(item.initialConfig.id);
                                    alert(item.getName());
                                    alert(item.initialConfig.name);
                                    alert(item.initialConfig.emptyText);
                                    alert(item.getValue());
                                    alert(item.getXType());

                               });

 

相关文章:

  • 2022-01-13
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
  • 2021-10-05
  • 2021-05-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-19
  • 2021-10-02
  • 2021-08-16
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案