View Full Version : Show a portlet into a portal

26 Jan 2012, 1:05 AM
Hello !

In a portal, like this (http://dev.sencha.com/deploy/ext-4.0.7-gpl/examples/portal/portal.html), I want to, on click on a dataView contained in one portlet, show another portlet. It is possible to do ?

Thank you,


26 Jan 2012, 6:39 AM
Here's a simple example of how to dynamically add a new portlet to the second column of the portalpanel widget in the sample portal. If using Firefox/Firebug (or Chrome), open the sample portal page, open the script console and execute this:

Ext.ComponentQuery.query('portalpanel #col-2')[0].add({
title: 'Dynamically Added Portlet',
height: 200,
html: 'This is panel content'