Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.

Ability to enable/disable dragging of widgets from one panel to another panel #223

Open
GordonSmith opened this issue Mar 5, 2017 · 5 comments

Comments

@GordonSmith
Copy link

Prevent the user from changing the rendered layout.

Typically used in conjunction with the new save/restore layout capability:

  • Admin designs new layout and saves it to DB
  • Layout is loaded for user - they should not be able to change it.
@sccolbert
Copy link
Member

related to #225

@GordonSmith
Copy link
Author

@sccolbert is the intention of Widget.Flag.DisallowLayout to indicate that Widget cannot be relocated?

@sccolbert
Copy link
Member

Widget.Flag.DisallowLayout is used to prevent a layout from being installed on a widget. This is useful for leaf widgets (like TabBar) which should never have a layout installed on them.

Relevant links:
https://github.com/phosphorjs/phosphor/blob/master/packages/widgets/src/widget.ts#L227-L242
https://github.com/phosphorjs/phosphor/blob/master/packages/widgets/src/tabbar.ts#L63

GordonSmith added a commit to GordonSmith/phosphor that referenced this issue May 26, 2017
Allow user to enable / disable tab dragging at runtime.

Fixes phosphorjsGH-223

Signed-off-by: Gordon Smith <gordonjsmith@gmail.com>
GordonSmith added a commit to GordonSmith/phosphor that referenced this issue May 26, 2017
Allow user to enable / disable tab dragging at runtime.

Fixes phosphorjsGH-223

Signed-off-by: Gordon Smith <gordonjsmith@gmail.com>
@rmeshksar
Copy link

Hi,
Is there any progress or recommendation on this request. I would like to use DockPanel as it has save/restore feature, but I would like to limit the layout and what user can do. For example I would like to set the left side panel of the split panel fixed or not show tab bar is the tab panel has only one tab.

@sccolbert
Copy link
Member

@rmeshksar The point of the DockPanel is to be user configurable, so placing limits on it would be antithetical (and also difficult to implement). You can, however, combine the DockPanel with other layouts to achieve what you want.

GordonSmith added a commit to GordonSmith/phosphor that referenced this issue Nov 6, 2019
Allow user to enable / disable tab dragging at runtime.

Fixes phosphorjsGH-223

Signed-off-by: Gordon Smith <gordonjsmith@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants