一:Ext.Panel类简介
二:Ext.Panel类常用属性方法与事件
三:Ext.Panel实例运用

1.Ext.Panel类简介
  类 Ext.Panel
  包: Ext
  定义的文件: Panel.js
  类全称: Ext.Panel 继承自于: Ext.Container

说明:面板是一种面向用户界面构建应用程序最佳的单元块,一种特定功能和结构化组件。

面板包含有底部和顶部的工具条,连同单独的头部、底部和body部分。它提供内建都得可展开和可闭合的行为,
  连同多个内建的可制定的行为的工具按钮。面板可简易地置入任意的容器或布局,而面板和渲染管线(rendering pipeline)则由框架完全控制。
2.实例:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="Ext/resources/css/ext-all.css" rel="stylesheet" type="text/css" />
    <script src="Ext/adapter/ext/ext-base.js" type="text/javascript"></script>
    <script src="Ext/ext-all.js" type="text/javascript"></script>
    <script type="text/javascript">
        Ext.onReady(function() {
            var p = new Ext.Panel({
                title: "My Panel",
                collapsible: true,
                x: 100,
                y: 100,
                width: 400,
                height: 300,
                floating: true, //设置面板浮动
                frame: true, //设置完全透明和阴影效果
                //draggable:true,
                draggable: {
                    insertProxy: false, //去掉虚边框
                    onDrag: function(e) {
                        var pel = this.proxy.getEl(); //得到当前的元素
                        this.x = pel.getLeft(true); //得到拖动时新的panel的x轴坐标
                        this.y = pel.getTop(true); //得到拖动时新的panel的y轴坐标
                        var s = this.panel.getEl().shadow; //得到拖动panel时的阴影对象
                        if (s) {
                            s.realign(this.x, this.y, pel.getWidth(), pel.getHeight());
                            //设置阴影和新的panel一致
                        }
                    },
                    endDrag: function(e) {
                        this.panel.setPosition(this.x, this.y);
                    }
                },
                html: "<p>我是内容</p>",
                renderTo: "container",
                buttonAlign: "center",                 tbar: [{ text: "工具栏1" }, { text: "工具栏2", handler: function() { alert("ok"); } }],
                bbar: [{ text: "状态栏1" }, { text: "状态栏2", handler: function() { alert("状态栏2"); } }],
                buttons: [{ text: "注册" }, { text: "退出", handler: function() { p.hide(); } }],
                tools:[{id:"save"},{id:"help"},{id:"up"},{id:"close",handler:function(){Ext.MessageBox.alert("工具栏按钮","工具栏上的关闭按钮时间被激发了")}}]             });             //alert(document.getElementById("container").outerHTML);             // p.render("container");         });
    </script>  
</head>
<body>
   <div id="container"></div>
</body>
</html>

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZkAAAE8CAIAAACdFlvEAAAHzElEQVR4nO3crW4baQCF4VxfbmNxLmDvpbTQ0GSlXRLJBpFcEMkBkcbA4AMBHwgwWOAF404m/t/Uracnz9ED4slMMgV95bpObtZmZr//bq59A2ZmF5iWmVnCtMzMEqZlZpYwLTOzhGmZmSXsQMv+fbMyMxvk+qXaaVm/X6+r1euqmpkNcm2j2u1pWVux+XI1fqjjhwIwYHW+XK1et1r2PWS11vFDnTzWWj0vM7PBbjV5rOOHWmvd07Jaa32p44dS66pZ1vkCYIiaZa11NX4o9WW3Za+rWmspZTwttbYXFIBBqrXW8bSUUva17KWWZRlNS3mp80WZPwMM0qKUlzqalrJ837L2H5illGbRjO5LKXX2XGZPAL/C17/mx21f8lxKqaP70iwaLQMG4etf83Jq2zn7Hy17KrPHZphu777c3n25+m0AP+6ckL3lrLvw6UMt29uOM4PSnta5yB9ey/g11uv11e8hXtuy5pRLtqyfj/Pb1D/tUg3SMn6B9Xp9c3MjZz/bpmXLE36oZZPHptV/YnXoYf/M7sIjn936IpOdZ3CHvvve7wKX1Yas3Xq9vvr9BGtbNl++88ef460jbcu6qz7essnhhH2sZbsn7D3z5EG4uH7I5Oxn27Ss996xP/4ct/oHP9iy+aKMp834fuP27kv3wZGP+0f61+797O7xvV9867TdM+GydkPW5ezq9xapbdnkaaMLWas73rbs7cJpM1+Us1r290Pz93Tj9u5L93H/YHe835ojpx259pyDx78mXET/70WbsG5Xv7dIbcvad1pshazVfqpt2duFD/+rZd/d3n3pP+wO9o9vPTx+vH+w+/jkwZPfC37EJli9h23LDp3ARfRbdsSmZb0Lz27Zt7drLt6y7vjbs7kDLTt5JlzE3nKdPMKP27Ts+YTtln07r2XN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BmQQMuABFoGJNAyIIGWAQm0DEigZUACLQMSaBmQQMuABFoGJNAyIIGWAQm0DEigZUACLQMSaBmQQMuABFoGJNAyIIGWAQm0DEigZUACLQMSaBmQQMuABFoGJNAyIIGWAQm0DEigZUACLQMSaBmQQMuABFoGJNAyIIGWAQm0DEigZUACLQMSaBmQQMuABFoGJNAyIIGWAQm0DEigZUACLQMSaBmQQMuABFoGJNAyIIGWAQm0DEigZUACLQMSaBmQQMuABFoGJNAyIIGWAQm0DEigZUACLQMSaBmQQMuABFoGJNAyIIGWAQm0DEigZUACLQMSaBmQQMuABFoGJNAyIIGWAQm0DEigZUACLQMSaBmQQMuABFoGJNAyIIGWAQm0DEigZUACLQMSaBmQQMuABFoGJNAyIIGWAQm0DEigZUCCAy1b/7teva7qSy3LMpqW2XOXM4DBmT2V2XMZTUtZln0tq7WUMp6W0bSM7huA4ZqW8bSUstuy1arWWl/qfFHnizp7rrPnAjBIm1LVl7qnZe1Ts/pSSyllWZpFAzBAZVlKKfWl1rrVsvX7nHVFMzMb3tqK1VpXr6s9LdvkbLVavfaiZmY2sLWNarfTsl7R3nXNzGxg65fqQMvMzH6r/QeNETO/6UVPHQAAAABJRU5ErkJggg==" alt="" />

(带顶部,底部,脚部工具栏的panel ):
var p=new Ext.Panel({
id:"panel1",
title:"标题",
collapsible:true,
renderTo:"container",
closable:true,
width:400,
height:300,
tbar:[{text:"按钮1"},{text:"按钮2"}], //顶部工具栏
bbar:[{text:"按钮1"},{text:"按钮2"}], //底部工具栏
html:"内容",
buttons: [{ text: "按钮1" }, { text: "按钮2"}] //footer部工具栏
});
(标准Panel工具栏)
//添加下面的代码到panel配置参数中tools:
[{id:"save"},{id:"help"},{id:"up"},{id:"close",handler:function(){Ext.MessageBox.alert("工具栏按钮","工具栏上的关闭按钮时间被激发了")}}],

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZ8AAAE4CAIAAAALmWmVAAAReklEQVR4nO3dv2vb/L7A8Q5n6PAMHs7wD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NSt7oJb7EUdXdGjfVWsZdGZawOx2aGe8a5Cgfsb26PYLmd8Qba2yygDdau7YutWK1uoW92k7TLKQN3q7jc81H/DXUYZqFvdBd+4X/lhWdahnv6zCpVv3jZ3GWWgbnVn/jQ9r8hvSqgRz0v77ZW/2y6jDNSt9iZqdrSLm7J/83jVW1fKxG8e3ybq1gQTZV6b8mQd57/hLqNo1A2ATNQNgEzUDYBM1A2ATNQNgEyb18355QFAbVE3ADLlrZtz76iJsu9s64a6AWiAWd1uLPvOVhPl3DvpdZsq+862b239yh2NXf/RB4DaGo1d/cq1b237zlbTdXULTt+CwAFAzc3SFlyWrqlbJHDWjWWNAaCWbqxo2tbULR64O9u+BYBaultJW2rdYoGbqmL/mgYAFGyamraVus0DF6r8dwECQKJYrFanfwP/zG0bK8dJ2gAAAABJRU5ErkJggg==" alt="" />

3.Ext.Panel类常用属性方法与事件

panel组件的子类组件包括TabPanel,GridPanel,

FormPanel,TreePanel组件,所以非常有必要介绍Panel组件的配置参数和相关的属性、方法。

//配置参数(只列举部分常用参数)
1.autoLoad:有效的url字符串,把那个url中的body中的数据加载显示,但是可能没有样式和js控制,只是html数据
2.autoScroll:设为true则内容溢出的时候产生滚动条,默认为false
3.autoShow:设为true显示设为"x-hidden"的元素,很有必要,默认为false

4.bbar:底部条,显示在主体内,//代码:bbar:[{text:'底部工具栏bottomToolbar'}],
5.tbar:顶部条,显示在主体内,//代码:tbar:[{text:'顶部工具栏topToolbar'}],

}6.buttons:按钮集合,自动添加到footer中(footer参数,显示在主体外)//代码:buttons:[{text:"按钮位于footer"}]
7.buttonAlign:footer中按钮的位置,枚举值为:"left","right","center",默认为right

8.collapsible:设为true,显示右上角的收缩按钮,默认为false
9.draggable:true则可拖动,但需要你提供操作过程,默认为false

10.html:主体的内容
11.id:id值,通过id可以找到这个组件,建议一般加上这个id值
12.width:宽度
13.height:高度
13.title:标题

14.titleCollapse:设为true,则点击标题栏的任何地方都能收缩,默认为false.
15.applyTo:(id)呈现在哪个html元素里面
17.renderTo:(id)呈现在哪个html元素里面
注:
1、renderTo与render方法对应
2、applyTo与applyToMarkup方法对应

简单的说,

applyTo是将组件加在了指定元素之后,

而renderTo则是加在指定元素之内。

 

Ext.js入门:面板(五)的更多相关文章

  1. Ext.js入门:TreePanel(九)

    一:最简单的树 二:通过TreeNode自定义静态树 三:用TreeLoader加载数据生成树 四:解决IE下非正常加载节点问题 五:使用TreeNodeUI 六:带有checkbox的树 七:编辑树 ...

  2. Ext.js入门:TabPanel组件(八)

    一:TabPanel组件简介 二:简单代码示例 三:使用iframe作为tab的标签页内容 四:动态添加tabpanel的标签页 五:为tabpanel标签页添加右键菜单 方式一: <html ...

  3. Ext.js入门:Window对象与FormPanel(六)

    一:Ext.Window类 二:Ext.Window类实例 三:Ext.FormPanel类 四:Ext.FormPanel类实例   1.类Ext.Window 包: Ext 定义的文件 Windo ...

  4. Ext.js入门:模板(四)

    1.Ext.DomHelper简介2.Template语法使用简介3.Template简单应用4.Template中使用转换函数5.使用模板的自定义接口6.XTemplate应用 一:Ext.DomH ...

  5. Ext.js入门

    一:ExtJs简介: ExtJs通常简称为Ext,它是一个非常优秀的Ajax框架,用Javascript编写,它与后台技术无关,可以用来开发具有炫丽外观的富客户端应用.Ext所开发的多彩界面吸引了许多 ...

  6. Ext JS学习第五天 Ext_window组件(一)

    此文来记录学习笔记 •第一个组件:Ext.window.Window.对于组件,也就是Ext最吸引开发者的地方,那么我们要真正的使用Ext的组件,首先必须学会阅读API文档. –xtype:组件的别名 ...

  7. Ext JS学习第五天 我们所熟悉的javascript(四)

    此文用来记录学习笔记: •javascript之对象.面向对象 •可能对于高级语言你可能了解甚至精通OOP面向对象,那么对于javascript你又熟悉多少呢?我们一起来学习javascript面向对 ...

  8. Ext.js入门:常用组件与综合案例(七)

    一:datefield简单示例 二:timefield简单示例 三:numberfield简单示例 四:FormPanel提交   datefield简单示例: <html xmlns=&quo ...

  9. Ext.js入门(二)

        ExtJs OOP基础 一:ExtJs中的面向对象 1.ExtJs中命名空间的定义        Ext中的命名空间类似于C#中的namespace和java中的包,用来对工程中的类进行更好的 ...

随机推荐

  1. python---tornado钩子预留解析

    在tornado.web.RequestHandler类中的初始构造方法中: class RequestHandler(object): """Base class fo ...

  2. UVALive 4254 Processor(二分)

    题目链接 题意 有n个任务,每个任务有三个参数ri,di和wi,表示必须在时刻[ri,di]之内执行,工作量为wi.处理器执行速度可以变化,当执行速度为s时,工作量为wi.处理器的速度可以变化,当执行 ...

  3. 从匿名函数(闭包特性)到 PHP 设计模式之容器模式

    匿名函数(匿名函数) 匿名函数,也叫闭包函数,它允许临时创建一个没有指定名称的函数,常用作回调函数参数的值,也可以作为变量的值来使用.具体的使用见以下示例代码: /* 示例一:声明一个简单匿名函数,并 ...

  4. Pool多进程示例

    利用Pool类多进程实现批量主机管理 #!/usr/bin/python # -*- coding: UTF-8 -*- # Author: standby # Time: 2017-03-02 # ...

  5. STM32Cube自学-1

    为了方便调试,使用Keil5+Proteus.1.新建Proteus STM32项目,选择STMF103C6 2.新建STM32CubeMX项目,选择同型号CPU,选择UART1,Asynchrono ...

  6. ubuntu 18.04下character_set_server设置为utf8

    打开/etc/mysql/mysql.conf.d/mysql.cnf添加以下代码: character-set-server = utf8 然后重启mysql即可

  7. Hadoop mapreduce执行过程涉及api

    资源的申请,分配过程略过,从开始执行开始. mapper阶段: 首先调用默认的PathFilter进行文件过滤,确定哪些输入文件是需要的哪些是不需要的,然后调用inputFormat的getSplit ...

  8. 20155237 2016-2017-2 《Java程序设计》第8周学习总结

    20155237 2016-2017-2 <Java程序设计>第8周学习总结 教材学习内容总结 NIO与NIO2 认识NIO Channel: 衔接数据节点(与IO中的流对比) isOpe ...

  9. 第14月第11天 linkmap

    1. 4.LinkMap服务的开启方式及文件目录 Xcode->Project->Build Settings-> Search map -> 设置 Write Link Ma ...

  10. python - class类 (七) 三大特性 - 封装 结尾

    封装: # 封装 #第一层,类就是麻袋,本身就是一种封装 #第二层,类中定义私有的,至在类的内部使用,外部无法访问 #第三层,封装在于明确区分内外,使得类实现者可以修改封装内的东西二不影响外部调用者 ...