jQuery.portal

A plugin for jQuery UI that provides the ability to easily create an advanced web portal.

Options
title:
The title of the portlet as it should appear in the titlebar
Default:""
content:
The content of the portlet (can be dynamically loaded later)
Default:""
closer:
If true, then allow the user to close/remove the portlet
Default:true
hider:
If true, allow the portlet to be minimized/maximized
Default:true
min:
If not false, the portlet will be loaded minmized by default. A value of true or a callback function is accepted. If a callback function is passed, it will be executed the first time the portlet is triggered to maximize. (In this way, you can wait to dynamically load content until it is actually needed.)
Default:false
settings:
If not false, the portlet will have an icon for an options menu. (This functionality currently requires jQuery.popMenu)
Default:false
detachable:
If true, the user will be allowed to detach the portlet from its container so that it can float freely
Default:true
floating:
If true, the portlet will be loaded detached by default
Default:false
width:
If floating is true, the width the portlet should be
Default:300
modal:
If floating is true, whether or not to create a modal layer behind the detached portlet
Default:true

Usage

Add a portlet to the element with the id "myContainer":

$("#myContainer").portal("myFirstPortlet", {
   title:   "My Portlet",
   content: $("<p>").text("Hello World!")
});