• toolbar示例


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Address_Manager</title>
        <link rel="Stylesheet" type="text/css" href="ext-4/resources/css/ext-all.css" />
        <link rel="Stylesheet" type="text/css" href="ext-4/resources/css/ext-all-access-debug.css" />
        <link rel="Stylesheet" type="text/css" href="ext-4/resources/css/ext-all-access.css" />
        <link rel="Stylesheet" type="text/css" href="ext-4/resources/css/ext-all-debug.css" />
        <link rel="Stylesheet" type="text/css" href="ext-4/resources/css/ext-standard.css" />
        <link rel="Stylesheet" type="text/css" href="ext-4/resources/css/ext-ie.css" />
        <script type="text/javascript" src="ext-4/ext-all.js"></script>     
        <!--<script type="text/javascript" src="app.js"></script>     -->
    </head>
    <body>
    <script type="text/javascript">
        Ext.onReady(function () {
            var Toolbar = new Ext.toolbar.Toolbar(
            {
                renderTo: 'toolbar',
                 300
            });
            var fileMenu = new Ext.menu.Menu({
                items: [{
                    xtype: 'textfield',
                    hideLabel: true,
                     100
                }, {
                    text: "颜色选择",
                    menu: new Ext.menu.ColorPicker()
                }, {
                    xtype: 'datepicker'
                }, {
                    xtype: 'buttongroup',
                    columns: 3,
                    title: '按钮组',
                    items: [{
                        text: '用户管理',
                        scale: 'large',
                        colspan: 3,
                         170,
                        iconCls: 'userManagerIcon',
                        iconAlign: 'top'
                    }, {
                        text: '新建', iconCls: 'newIcon'
                    },
                    {
                        text: '打开', iconCls: 'openIcon'
                    }, {
                        text: '保存', iconCls: 'saveIcon'
                    }]
                }]
            })
            Toolbar.add({ text: '文件', menu: fileMenu });
        });
    </script>
    <div id='toolbar'></div>
    </body>
    </html>
  • 相关阅读:
    三大家族的作用和区别
    正则表达式
    Math的方法
    数组API方法
    面向对象方法
    数组的常用方法
    对象和数组的遍历方法
    js运算符(运算符的结合性)
    i++和++i的运算符
    flex
  • 原文地址:https://www.cnblogs.com/super86/p/2991798.html
Copyright © 2020-2023  润新知