level 1
我不是老许别要求太高
楼主
Ext.define('MyApp.store.MyJsonStore', {
extend: 'Ext.data.Store',
constructor: function(cfg) {
var me = this;
cfg = cfg || {};
me.callParent([Ext.apply({
storeId: 'MyJsonStore',
proxy: {
type: 'ajax',
reader: {
type: 'json'
}
}
}, cfg)]);
}
});
Ext.create('Ext.container.Viewport', {
layout: 'border',
items: [
{
xtype: 'panel',
height: 30,
title: '南部',
region: 'south'
},
{
xtype: 'panel',
width: 157,
layout: {
type: 'border'
},
title: '功能列表',
region: 'west',
items: [
{
xtype: 'panel',
height: 150,
tpl: Ext.create('Ext.XTemplate',
'未读消息',
'以读消息'
),
title: '我的信箱',
region: 'north'
},
{
xtype: 'panel',
title: '最近编辑的病人',
region: 'center'
}
]
},
{
xtype: 'panel',
layout: {
type: 'border'
},
title: 'My Panel',
region: 'center',
items: [
{
xtype: 'ta
bp
anel',
activeTab: 0,
region: 'center',
items: [
{
xtype: 'panel',
height: 388,
title: 'Tab 1',
dockedItems: [
{
xtype: 'toolbar',
dock: 'top',
items: [
{
xtype: 'button',
text: '住院病案'
},
2012年03月14日 04点03分
1
extend: 'Ext.data.Store',
constructor: function(cfg) {
var me = this;
cfg = cfg || {};
me.callParent([Ext.apply({
storeId: 'MyJsonStore',
proxy: {
type: 'ajax',
reader: {
type: 'json'
}
}
}, cfg)]);
}
});
Ext.create('Ext.container.Viewport', {
layout: 'border',
items: [
{
xtype: 'panel',
height: 30,
title: '南部',
region: 'south'
},
{
xtype: 'panel',
width: 157,
layout: {
type: 'border'
},
title: '功能列表',
region: 'west',
items: [
{
xtype: 'panel',
height: 150,
tpl: Ext.create('Ext.XTemplate',
'未读消息',
'以读消息'
),
title: '我的信箱',
region: 'north'
},
{
xtype: 'panel',
title: '最近编辑的病人',
region: 'center'
}
]
},
{
xtype: 'panel',
layout: {
type: 'border'
},
title: 'My Panel',
region: 'center',
items: [
{
xtype: 'ta
bp
anel',
activeTab: 0,
region: 'center',
items: [
{
xtype: 'panel',
height: 388,
title: 'Tab 1',
dockedItems: [
{
xtype: 'toolbar',
dock: 'top',
items: [
{
xtype: 'button',
text: '住院病案'
},
