Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Portal Question

    Hi,

    I am using SmartGWT Power 6.0 and I've got a question regarding Portal usage. I like the behavior of the TabSet and also the Portal and was wondering if there is a way to combine them. For example, I want to be able to drag a tab out of a TabSet to create a Portlet window. Similarly, I would like to be able to drag a Portlet window into a TabSet and have it become part of the TabSet. This is similar to the behavior of eclipse. Is this possible in Smart GWT?
    Thanks,
    Ken

    #2
    You would approach this by adding your own DropHandlers to various AutoChildren of the PortalLayout and the TabSet (the paneContainer in this case). For example, to make a Portlet into a Tab instead, detect the source widget for the drop, and have your code remove the Portlet from the PortalLayout, then add its contained widgets as a new Tab.

    Comment

    Working...
    X