码迷,mamicode.com
首页 > Web开发 > 详细

ExtJS 4 【Ext.panel.Panel】

时间:2016-11-23 16:28:24      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:family   uri   margin   tools   tool   bar   工具   path   max   

Ext.panel.Panel.html

<div id="content"></div>

 

Ext.panel.Panel.js

/// <reference path="~/Scripts/ext-4.2.1.883/ext-all-dev.js" />
Ext.onReady(function () {
    Ext.create(‘Ext.panel.Panel‘,
    {
        title: ‘面板头部‘,
        tbar: [
        {
            text: ‘Button 1‘,
            handler: function () { alert(‘Button 1‘) }
        }],
        bbar: [‘底端工具栏‘],
        height: 200,
        width: 300,
        frame: true,
        renderTo: ‘content‘,
        bodyPadding: 5,
        bodyStyle: ‘background-color:#fff‘,
        html: ‘面板体‘,
        tools: [
            { id: ‘save‘},
            { id: ‘toggle‘ },
            { id: ‘close‘ },
            { id: ‘maximize‘ }
        ],
        buttons: [
        {
            text: ‘面板底部‘
        }]
    });
});

ExtJS 4 【Ext.panel.Panel】

标签:family   uri   margin   tools   tool   bar   工具   path   max   

原文地址:http://www.cnblogs.com/CodingArt/p/6094078.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!