ExtJS 4 【Ext.panel.Panel】

Ext.panel.Panel.html

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

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, "Courier New", courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

 

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: ‘面板底部‘
        }]
    });
});

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, "Courier New", courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

时间: 2024-08-27 20:07:09

ExtJS 4 【Ext.panel.Panel】的相关文章

ExtJS 4 【Ext.tab.Panel】

  Ext.onReady(function () { Ext.create('Ext.tab.Panel', { title: 'Ext.tab.Panel 示例', frame: true, height: 150, width: 300, activeTab: 1, renderTo: 'content', items: [ { title: '1', html: '1' }, { title: '2', html: '2' }, { title: '3', html: '3' } ] }

ExtJS 4 【Ext.container.Viewport】

  Ext.onReady(function(){ Ext.create('Ext.container.Viewport', { layout: 'border', items: [{ title: '1', region: 'north', html: ' <a href="../../Default.html">首页</a>', height: 100 }, { title: '2', region: 'west', width: 150, html: 'l

ExtJS 4 【Ext.toolbar.Toolbar】

<input type="button" id="EnableToolbar" value="启用工具栏" /> <input type="button" id="DisableToolbar" value="停用工具栏" /> <br/> <div id="toolbar"></div> .csharpco

ExtJS 4 【Ext.menu.Menu】

<div id="toolbar"></div>   .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin

ExtJS 4 【Ext.Msg.alert】

function ShowMsg() { Ext.MessageBox.alert("消息", "您好!"); } .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;

Extjs学习笔记--Ext.tree.Panel

Ext.create('Ext.tree.Panel', { title: 'Simple Tree', width: 200, height: 150, store: store, rootVisible: false, //是否显示根节点 lines:false,//是否显示树节点前面的虚线 参考图A,B renderTo: Ext.getBody() });            图片A                           图片B

ExtJS 4 【Ext.data.proxy.Ajax】

namespace ExtJSProject.WebApi.Models { [Serializable] [DataContract] public class Person { [DataMember] public string Name { get; set; } [DataMember] public int Age { get; set; } } }   namespace ExtJSProject.WebApi.Controllers { [RoutePrefix("api/Per

【extjs】 extjs5 Ext.grid.Panel 搜索示例

先看效果图: 页面js: <script type="text/javascript"> /** * 日志类型 store * */ var logTypeStore = Ext.create('Ext.data.Store', { fields: ['type', 'name'], data : [ {"type":"1", "name":"登录日志"}, {"type":

【extjs】 ext5 Ext.grid.Panel 分页,搜索

带有分页,搜索的grid. <%@page language="java" contentType="text/html; charset=UTF-8" isELIgnored="false" pageEncoding="UTF-8" %> <html> <head> <jsp:include page="../common/resource_classic.jsp"