解决方案 »
- 请问一个bassistance的autocomplete插件的问题
- 求助!!!
- js 问题,顺便散分~
- 简单问题:显示隐藏的层,写一个判断
- 从WORD中粘贴一篇文章到 HTML在线编辑器中时候,编辑器如何知道文章是从WORD粘贴过来的??
- 唉~学javascript 两个星期就要转去学asp.net了
- 请教 在多个网页中多次引用到一个JAVASCRIPT函数,怎么帮这个函数存成*.JS格式,怎么调用这个函数
- 如何使输入文本框中的内容显示在中间?
- 十万火急,在线等待,用javascript 写个判断一条字符串只能为数字的函数。谢谢
- 放分!不知道什么时候才能得一颗星!好累!但是心情好!
- jQuery多次绑定
- JS折叠怎么默认显示一个
我也很无奈可是 Ext4.0 代码里的确有这个东西(Ext.app.Portal),
还有就是 xtype: 'portalpanel', 这个类型我在API 也没看到。郁闷死了
网上也没有例子。只能自己闷了
Ext.define('Ext.app.PortalPanel', {
extend: 'Ext.panel.Panel',
alias: 'widget.portalpanel',
requires: [
'Ext.layout.component.Body'
], cls: 'x-portal',
bodyCls: 'x-portal-body',
defaultType: 'portalcolumn',
componentLayout: 'body',
autoScroll: true, initComponent : function() {
var me = this; // Implement a Container beforeLayout call from the layout to this Container
this.layout = {
type : 'column'
};
this.callParent(); this.addEvents({
validatedrop: true,
beforedragover: true,
dragover: true,
beforedrop: true,
drop: true
});
this.on('drop', this.doLayout, this);
}, // Set columnWidth, and set first and last column classes to allow exact CSS targeting.
beforeLayout: function() {
var items = this.layout.getLayoutItems(),
len = items.length,
i = 0,
item; for (; i < len; i++) {
item = items[i];
item.columnWidth = 1 / len;
item.removeCls(['x-portal-column-first', 'x-portal-column-last']);
}
items[0].addCls('x-portal-column-first');
items[len - 1].addCls('x-portal-column-last');
return this.callParent(arguments);
}, // private
initEvents : function(){
this.callParent();
this.dd = Ext.create('Ext.app.PortalDropZone', this, this.dropConfig);
}, // private
beforeDestroy : function() {
if (this.dd) {
this.dd.unreg();
}
Ext.app.PortalPanel.superclass.beforeDestroy.call(this);
}
});