Ayuda con extjs 4.2.2大豆新品种
我试图让我的面板倒塌,但我失败了。。。我是这个框架的新手,我想给我一个解决方案Ayuda con extjs 4.2.2大豆新品种,extjs,Extjs,我试图让我的面板倒塌,但我失败了。。。我是这个框架的新手,我想给我一个解决方案 Ext.define('MyApp.view.MyWindow', { extend: 'Ext.window.Window', requires: [ 'Ext.toolbar.Toolbar', 'Ext.button.Button', 'Ext.grid.Panel', 'Ext.grid.View', 'Ext.
Ext.define('MyApp.view.MyWindow', {
extend: 'Ext.window.Window',
requires: [
'Ext.toolbar.Toolbar',
'Ext.button.Button',
'Ext.grid.Panel',
'Ext.grid.View',
'Ext.grid.column.CheckColumn'
],
autoShow: true,
height: 401,
width: 970,
title: 'Linia de tiempo',
initComponent: function() {
var me = this;
Ext.applyIf(me, {
dockedItems: [
/* {
xtype: 'toolbar',
dock: 'top',
items: [
{
xtype: 'button',
text: 'MyButton'
}
]
} */
],
items: [
{
xtype: 'gridpanel',
title: ' ',
columns: [
{
xtype: 'gridcolumn',
dataIndex: 'string',
width: 250,
text: 'Grado y Sección'
},
{
xtype: 'checkcolumn',
text: 'Inicio'
},
{
xtype: 'checkcolumn',
text: 'Indice'
},
{
xtype: 'checkcolumn',
text: 'Proyecto1'
},
{
xtype: 'checkcolumn',
text: 'Proyecto2'
},
{
xtype: 'checkcolumn',
text: 'Proyecto3'
},
{
xtype: 'checkcolumn',
text: 'Proyecto4'
},
{
xtype: 'checkcolumn',
text: 'Cierre'
}
]
},
{
title : 'Collapsed Panel ' ,
collapsed: true,
collapsible : true,
anchura : 640 ,
//html : KitchenSink . DummyText . MEDIUMTEXT ,
colspan : 3
},
{
xtype: 'panel',
collapseMode: 'standard',
collapsed: true,
collapsible: true,
autoScroll: true,
split:true,
title: 'My Panel'
html: '<iframe src="http://www.google.com" style="width:100%;height:100%;border:none;"></iframe>'
},
/*{
title : 'Collapsed Panel ' ,
se derrumbó : true ,
plegable : true ,
ancho : 640 ,
colspan : 3
} */
]
});
me.callParent(arguments);
}
});
Ext.define('MyApp.view.MyWindow'{
扩展:“Ext.window.window”,
要求:[
“Ext.toolbar.toolbar”,
“Ext.button.button”,
“Ext.grid.Panel”,
“Ext.grid.View”,
“Ext.grid.column.CheckColumn”
],
汽车展:是的,
身高:401,
宽度:970,
标题:“tiempo丽娜酒店”,
initComponent:function(){
var me=这个;
Ext.applyIf(me,{
摘要:[
/* {
xtype:'工具栏',
码头:“顶部”,
项目:[
{
xtype:'按钮',
文本:“我的按钮”
}
]
} */
],
项目:[
{
xtype:“gridpanel”,
标题:“”,
栏目:[
{
xtype:'gridcolumn',
数据索引:“字符串”,
宽度:250,
文字:“Grado y Sección”
},
{
xtype:“检查列”,
文本:“Inicio”
},
{
xtype:“检查列”,
文本:“标记”
},
{
xtype:“检查列”,
文本:“Proyecto1”
},
{
xtype:“检查列”,
文本:“Proyecto2”
},
{
xtype:“检查列”,
文本:“Proyecto3”
},
{
xtype:“检查列”,
文本:“Proyecto4”
},
{
xtype:“检查列”,
文本:“Cierre”
}
]
},
{
标题:“折叠面板”,
对,,
可折叠的:是的,
安古拉:640,
//html:KitchenSink.DummyText.MEDIUMTEXT,
科尔斯潘:3
},
{
xtype:'面板',
collapseMode:“标准”,
对,,
可折叠的:是的,
autoScroll:是的,
斯普利特:是的,
标题:“我的小组”
html:'
},
/*{
标题:“折叠面板”,
塞德鲁姆博:没错,
是的,
主持人:640,,
科尔斯潘:3
} */
]
});
me.callParent(参数);
}
});
以下是您的问题示例
工作小提琴是
Ext.define('MyApp.view.MyWindow'{
//扩展:“Ext.panel.panel”,
扩展:“Ext.window.window”,
别名:“widget.parentPanel”,
需要:['Ext.toolbar.toolbar','Ext.button.button','Ext.grid.Panel','Ext.grid.View','Ext.grid.column.CheckColumn'],
汽车展:是的,
身高:401,
宽度:520,
样式:'margin-top:200px',
标题:“tiempo丽娜酒店”,
initComponent:function(){
var me=这个;
Ext.applyIf(我{
dockedItems:[],
项目:[{
xtype:“gridpanel”,
标题:“”,
栏目:[{
xtype:'gridcolumn',
数据索引:“字符串”,
宽度:250,
文字:“Grado y Sección”
}, {
xtype:“检查列”,
文本:“Inicio”
}, {
xtype:“检查列”,
文本:“标记”
}, {
xtype:“检查列”,
文本:“Proyecto1”
}, {
xtype:“检查列”,
文本:“Proyecto2”
}, {
xtype:“检查列”,
文本:“Proyecto3”
}, {
xtype:“检查列”,
文本:“Proyecto4”
}, {
xtype:“检查列”,
文本:“Cierre”
}]
}, {
xtype:'面板',
标题:“折叠面板”,
错误:,
可折叠的:是的,
安古拉:640,
科尔斯潘:3,
项目:[{
xtype:'textfield'
},{
xtype:'复选框',
boxLabel:'选择',
boxLabelAlign:“之前”
}]
}, {
xtype:'面板',
collapseMode:“标准”,
对,,
可折叠的:是的,
autoScroll:是的,
斯普利特:是的,
标题:“我的小组”,
html:'
}]
});
me.callParent(参数);
}
});
Ext.widget('parentPanel',{renderTo:'panel'});
Ext.define('MyApp.view.MyWindow', {
//extend: 'Ext.panel.Panel',
extend: 'Ext.window.Window',
alias: 'widget.parentPanel',
requires: ['Ext.toolbar.Toolbar', 'Ext.button.Button', 'Ext.grid.Panel', 'Ext.grid.View', 'Ext.grid.column.CheckColumn'],
autoShow: true,
height: 401,
width: 520,
style:'margin-top: 200px',
title: 'Linia de tiempo',
initComponent: function() {
var me = this;
Ext.applyIf(me, {
dockedItems: [],
items: [{
xtype: 'gridpanel',
title: ' ',
columns: [{
xtype: 'gridcolumn',
dataIndex: 'string',
width: 250,
text: 'Grado y Sección'
}, {
xtype: 'checkcolumn',
text: 'Inicio'
}, {
xtype: 'checkcolumn',
text: 'Indice'
}, {
xtype: 'checkcolumn',
text: 'Proyecto1'
}, {
xtype: 'checkcolumn',
text: 'Proyecto2'
}, {
xtype: 'checkcolumn',
text: 'Proyecto3'
}, {
xtype: 'checkcolumn',
text: 'Proyecto4'
}, {
xtype: 'checkcolumn',
text: 'Cierre'
}]
}, {
xtype: 'panel',
title: 'Collapsed Panel ',
collapsed: false,
collapsible: true,
anchura: 640,
colspan: 3,
items:[{
xtype: 'textfield'
},{
xtype: 'checkbox',
boxLabel: 'select',
boxLabelAlign: 'before'
}]
}, {
xtype: 'panel',
collapseMode: 'standard',
collapsed: true,
collapsible: true,
autoScroll: true,
split: true,
title: 'My Panel',
html: '<iframe src="http://www.google.com" style="width:100%;height:100%;border:none;"></iframe>'
}]
});
me.callParent(arguments);
}
});
Ext.widget('parentPanel', {renderTo: 'panel'});