TabPanel与doLayout

来源:互联网 发布:卡拉0k软件 编辑:程序博客网 时间:2024/06/01 09:08
TabPanel与doLayout
2008年08月20日 星期三 15:45
---------------------------------------------------------------------------------------------------
TabPanel与doLayout
---------------------------------------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <link rel="stylesheet" type="text/css" href="../lib/ext/resources/css/ext-all.css" />
        <script type="text/javascript" src="../lib/ext/adapter/ext/ext-base.js">
        </script>
        <script type="text/javascript" src="../lib/ext/ext-all.js">
        </script>
    </head>
    <script>
        Ext.onReady(function(){
            Ext.QuickTips.init();
            var fs = new Ext.FormPanel({
                id: 'xiong',
                frame: true,
                title: 'XML Form',
                labelAlign: 'right',
                labelWidth: 85,
                width: 340,
                waitMsgTarget: true,
                items: [new Ext.form.FieldSet({
                    title: 'Contact Information',
                    autoHeight: true,
                  
                    defaultType: 'textfield',
                    items: [{
                        fieldLabel: 'Field1',
                      
                        name: 'Field1',
                        width: 190
                    }]
                })]
            });
            var fs2 = new Ext.FormPanel({
                frame: true,
                title: 'XML Form',
                labelAlign: 'right',
                labelWidth: 85,
                width: 340,
                waitMsgTarget: true,
                items: [new Ext.form.FieldSet({
                    title: 'Contact Information_2',
                    autoHeight: true,
                    defaultType: 'textfield',
                    items: [{
                        fieldLabel: 'Field_2',
                        name: 'Field_2',
                        width: 190
                    }]
                })]
            });
原创粉丝点击