You Can、宇龙 2012-07-10 09:51
浏览 306
已采纳

ExtJs

[img]http://dl.iteye.com/upload/attachment/0070/5222/147fd0cb-404d-37e9-bfe0-e509bf987050.jpg[/img]
谁帮我做过这样的界面,基于Extjs3,尽量多写点注释,我刚刚学习ExtJs

  • 写回答

4条回答

  • works001 2012-07-10 11:07
    关注

    对于你的window :
    [code="java"] win = new Ext.Window({
    title:"商品列表",
    layout:'fit',
    width : 420,
    height : 282,
    items:new Ext.form.FormPanel({

    labelAlign: 'right',

    labelWidth:80,

    frame:true,
    width: 300,

    border:false,
    bodyStyle:"margin-top:30",

    defaults:{width:120},
    items:[
    {
    layout:"column",
    anchor:"95%",
    items:[
    {
    columnWidth:.6,
    layout:"form",
    items:{
    xtype:"textfield",
    fieldLabel:"资源路径"
    }

                                },
                                {
                                    columnWidth:.4,
                                    layout:"form",
                                    items:{
                                        xtype:"button",
                                        text:"上传资源"
                                    }
                                }
    
                            ]
    
                        },
    
                        {
                            xtype:"textfield",
                            fieldLabel:"资源名称"
                        },
                        {
                            xtype:"textfield",
                            fieldLabel:"资源尺寸 长"
                        },
                         new Ext.form.ComboBox({
                                hiddenName: "typeId",
                                fieldLabel:"资源类型",
                                store : new Ext.data.JsonStore({
                                    fields: [ {name:"value", mapping:"value"},  {name:"text", mapping:"text"}],
                                    data:[{value:"0",text:"挂失"},{value:"1",text:"正常"}]
                                }),
                                readOnly:true,
                                displayField : "text",
                                valueField : "value",
                                typeAhead : true,
                                editable:false, 
                                triggerAction : 'all',
                                selectOnFocus : true,
                                mode : 'local'
                        }),
                        {
                            xtype:"textfield",
                            fieldLabel:"宽"
                        },
                        {
                            xtype:"textfield",
                            fieldLabel:"关键字"
                        }
                    ]
                }),
                buttonAlign:"center",
              buttons:[{text:"提交"},{text:"关闭"}]
    
            });
        win.show();[/code]
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!