- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我目前正在使用EXTjs的默认Portal Demo.. http://docs.sencha.com/ext-js/4-2/extjs-build/examples/portal/portal.html
谁能告诉我我们是否可以制作一个居中的 TabPanel,其中有 3 个选项卡,每个选项卡内部都有一个 Portal。
因此,在页面加载时,我们位于选项卡 1.. 这本质上是一个门户,我可以在其中拖放内容。与选项卡 2 相同。
在ExtJs提供的portal.js内部,我们有用于创建portalpanel
的代码。一切正常,但现在我必须有一个选项卡面板而不是门户面板,本质上是选项卡面板内的门户面板。
显示portalpanel
的代码是:
Ext.define('Ext.app.Portal', {
extend: 'Ext.container.Viewport',
uses: ['Ext.app.PortalPanel', 'Ext.app.PortalColumn', 'Ext.app.GridPortlet', 'Ext.app.ChartPortlet'],
initComponent: function(){
var content = '<div class="portlet-content">'+Ext.s.shortBogusMarkup+'</div>';
Ext.apply(this, {
id: 'app-viewport',
layout: {
type: 'border',
padding: '0 5 5 5'
},
items: [{
id: 'app-header',
xtype: 'box',
region: 'north',
height: 40,
html: '<div></div>'
},{
xtype: 'container',
region: 'center',
layout: 'border',
items: [{
id: 'app-options',
title: 'All Widgets',
region: 'west',
animCollapse: true,
width: 200,
minWidth: 150,
maxWidth: 400,
split: true,
collapsible: true,
layout: 'accordion',
layoutConfig:{
animate: true
},
items: [{
html: '<div class="portlet-content">'+Ext.s.example+'</div>',
title:'Tables',
autoScroll: true,
border: false,
iconCls: 'nav'
},
{
id: 'app-portal',
xtype: 'portalpanel',
region: 'center',
items: [{
id: 'col-1',
items: [{
id: 'portlet-1',
title: 'Grid Portlet',
tools: this.getTools(),
items: Ext.create('Ext.app.GridPortlet'),
listeners: {
'close': Ext.bind(this.onPortletClose, this)
}
},{
id: 'portlet-2',
title: 'Portlet 2',
tools: this.getTools(),
html: content,
listeners: {
'close': Ext.bind(this.onPortletClose, this)
}
}]
},{
id: 'col-2',
items: [{
id: 'portlet-3',
title: 'Portlet 3',
tools: this.getTools(),
html: '<div class="portlet-content">'+Ext.smartdashboard.bogusMarkup+'</div>',
listeners: {
'close': Ext.bind(this.onPortletClose, this)
}
}]
},{
id: 'col-3',
items: [{
id: 'portlet-4',
title: 'Stock Portlet',
tools: this.getTools(),
items: Ext.create('Ext.app.ChartPortlet'),
listeners: {
'close': Ext.bind(this.onPortletClose, this)
}
}]
}]
}
如果我们能以某种方式在 tabpanel
内创建一个 portalpanel
(使用现有的门户示例),有什么想法吗?请帮忙!!!
最佳答案
你在ajas选项卡中使用ajax选项卡你的调用url,在该url中你显示的门户面板如下代码
var tabs2 = Ext.widget('tabpanel', {
renderTo: document.body,
activeTab: 0,
width: 600,
height: 250,
plain: true,
defaults :{
autoScroll: true,
bodyPadding: 10
},
items: [{
title: 'Normal Tab',
html: "My content was added during construction."
},{
title: 'Ajax Tab 1',
loader: {
url: 'ajax1.htm',
contentType: 'html',
loadMask: true
},
listeners: {
activate: function(tab) {
tab.loader.load();
}
}
},{
title: 'Ajax Tab 2',
loader: {
url: 'ajax2.htm',
contentType: 'html',
autoLoad: true,
params: 'foo=123&bar=abc'
}
},{
title: 'Event Tab',
listeners: {
activate: function(tab){
setTimeout(function() {
alert(tab.title + ' was activated.');
}, 1);
}
},
html: "I am tab 4's content. I also have an event listener attached."
},{
title: 'Disabled Tab',
disabled: true,
html: "Can't see me cause I'm disabled"
}
]
});
关于javascript - 在 EXTJS 中的选项卡面板内添加 PORTAL : Using the Portal Demo by EXTJS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15510765/
在进行一些研发时,我搞砸了我的 IBM WebSphere 门户登录页面。我在登录页面上附加了一个自定义 portlet 以及原始登录 portlet。现在登录页面没有显示,我无法访问管理工具。我现在
打开浏览器 导航至http://www.windowsazure.com/en-us/ 选择右上角的门户 使用我的电子邮件地址登录 收到以下错误 https://manage.windowsazure
我正在使用 IBM Portal API 来开发 Websphere Portal Server 中的一些页面,但我希望在嵌套在我的主门户中的虚拟门户的上下文中工作。我已经阅读了 IBM 的文档,但我
我是liferay的新手,我需要从Liferay6.1升级到Liferay6.2。如果我们可以覆盖 Portal-setup-wizard.properties 中的主题,我不知道 Portal-ex
我目前正在使用EXTjs的默认Portal Demo.. http://docs.sencha.com/ext-js/4-2/extjs-build/examples/portal/portal.ht
我用 spring mvc 3 框架创建了一个 portlet(jsr286)。如果页面有 SSA(服务器端聚合),它工作正常,但是当使用 CSA(客户端聚合)时它停止工作。 我正在使用 WPS 7.
我正在使用 IBM WebSphere Portal,IBM WebSphere Portal 中的 /wps/portal 和 /wps/myportal 有什么区别? 最佳答案 /wps/port
是否有人将SAP Portal与第三方Web内容管理系统(例如Vignette)集成在一起?我没有太多接触SAP Portal,但是我知道它提供了J2EE App Server,并且有一种叫做iVie
我已使用设置 ADFS 的公司帐户登录 Azure 门户。现在,我想使用另一个帐户登录Azure Portal。但是,当我尝试打开 portal.azure.com 时,它总是将我重定向到我的公司登录
我已使用设置 ADFS 的公司帐户登录 Azure 门户。现在,我想使用另一个帐户登录Azure Portal。但是,当我尝试打开 portal.azure.com 时,它总是将我重定向到我的公司登录
我正在尝试设置单元测试。我正在使用 Struts2 和 Liferay 6.1。 我收到以下错误 java.lang.NullPointerException at com.liferay.porta
就目前而言,这个问题不适合我们的问答形式。我们希望答案得到事实、引用或专业知识的支持,但这个问题可能会引起辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the he
是否有一种方法,仅使用标准 oracle JSR-286 类来获取 portlet 请求后面的 HttpServletRequest?这里是liferay特有的方法 HttpServletReques
因此,Portals 解决的一个有趣且令人惊奇的属性是即使您的组件需要在其他地方呈现,也可以保留 Provider 的 Context。如果您使用 ContextProvider 包装组件子树,则在该
我一直在尝试实现类似游戏 Antichamber 的东西(更准确地说,这个技巧如下所示)过去一周: 这是我希望实现的目标的视频(即使它是使用虚幻引擎 4 完成的;我没有使用它):https://www
我正在使用 Angular 2 构建一个门户。该门户应该能够托管多个应用程序(portlet)并且应该作为一个容器。 Portlet 也可以使用/不使用 Angular 2 构建。它们将是由独立团队管
谁能解释一下堺的 sleep 传送门和皮肤的用途吗?我想问的是,如何启用这些功能以及 Sakai 中的 neo 皮肤和 neo 门户代码有什么区别? 提前致谢。 最佳答案 Morpheus(使用 Sa
我正在为 WebSphere Portal 8 创建一个 portlet,并且想要检索呈现我的 portlet 的页面名称。这很重要,因为根据页面的不同,Portlet 将以不同的方式提供内容 我尝试
从 react 门户的文档: A typical use case for portals is when a parent component has an overflow: hidden or
我创建了这支笔来演示它:https://codepen.io/no1melman/pen/WWyJqQ 基本上我有这个门户: const ChatArea = ({ children }) => {
我是一名优秀的程序员,十分优秀!