finos/FDC3-Sail

Support tear-out and drop in of tabs

Closed this issue · 2 comments

A user should be able to drag a tab out of window and drop it on the desktop to create a new window with the tab.

A user should be able to drag a tab from one window and drop it into the tab set of another window. When dropping into the tab set, the user should be able to drop it at a specific point in the tab set.

After some initial work on this. Going to try the following approach as an adjustment to the original plans:

  • a 'tear out' icon will be added to the tab, this will spawn the tab in a new window
  • tabs cannot be dragged out into their own windows
  • the tab bar and tabs in any window will be a drop area for tabs and a tab can be dragged from another window into a different window this way
  • on a successful drop of a tab into another tab set, the tab will removed from the origin window and added into the target window. If the tabset of the origin is now empty, the window will automatically close.

PR #50 addresses full pass of this.