FlexLayout icon indicating copy to clipboard operation
FlexLayout copied to clipboard

Popouts without a placeholder

Open CodeMaven opened this issue 4 years ago • 4 comments

Hi, I am evaluating FlexLayout as a potential replacement for GoldenLayout in my application. My application makes very extensive use of popouts. I've noticed in the demo that when you popout a tab to a new floating window it leaves behind a 'placeholder' tab with a message "This panel is shown in a floating window" and show window / dock window buttons there. Is it possible to change the behavior so that the tab is completely removed / hidden when you pop it out and the button to return it to the dock is on the window itself?

Along the same lines, is it possible to programatically create a new popout window that is not docked to begin with? It would need to have the ability to be docked from a button in the window, but there should be nothing related to this screen on the main layout when it is not docked there. In my application most data-entry windows are created from a menu button and pop-up in their own floating windows immediately, but the user can optionally click on the dock button in the window to pop them in as a tab in the default workspace.

Thankyou, Troy.

CodeMaven avatar Feb 10 '21 16:02 CodeMaven

Sorry, it is not possible to change the popout behaviour like that currently.

nealus avatar Feb 16 '21 09:02 nealus

I am interested in this as a feature as well.

Would like the ability to popout a window without a placeholder (basically removing it from the current ui and reordering just like closing a tab)

Also the ability to save / load a popout window and reinitialize that window on load or open from api (button press).

Is anyone interested in picking this up? I could offer a bounty.

digitalml avatar Dec 18 '21 20:12 digitalml

I ended up doing this outside of FlexLayout. I didn't have the time (or skill really) to dig into the FlexLayout code and integrate it properly, but what I did was catch the popout button press event and create my own popup window with the same contents, then delete the tab in FlexLayout. Then on pop-in I just add it back to the layout... Less than ideal perhaps, but it works.

CodeMaven avatar Jan 05 '22 15:01 CodeMaven

Interesting, thank you. I will try this

On Wed, Jan 5, 2022 at 7:10 AM CodeMaven @.***> wrote:

I ended up doing this outside of FlexLayout. I didn't have the time (or skill really) to dig into the FlexLayout code and integrate it properly, but what I did was catch the popout button press event and create my own popup window with the same contents, then delete the tab in FlexLayout. Then on pop-in I just add it back to the layout... Less than ideal perhaps, but it works.

— Reply to this email directly, view it on GitHub https://github.com/caplin/FlexLayout/issues/180#issuecomment-1005769623, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALJESLUJ4MY7K5Z3CVCCNDUURNPJANCNFSM4XNJFDTQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

digitalml avatar Jan 05 '22 15:01 digitalml