I have several panels created like this:
<div id="w007" class="easyui-panel" title="Events" collapsible="true" closable="false">
my content here...
</div>
Each of those panels (ids: w001, w002, .... w012) are placed on the page inside a hidden div, and later need to be moved into the portal.
The example in the portal documentation for adding a panel to the portal only shows how to do it for a dynamically created panel:
var p = $('<div></div>').appendTo('body');
p.panel({ ... sets up the portal properties dynamically ...});
$('#pp').portal('add', {
panel: p,
columnIndex: 0
});
My question is how do you write the code to add the panel to the portal if the panel was NOT created dynamically, using the panel's unique id?