Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Add ability to lock/unlock layout changes. #87

Open
azeyad opened this issue Dec 28, 2015 · 6 comments
Open

[Suggestion] Add ability to lock/unlock layout changes. #87

azeyad opened this issue Dec 28, 2015 · 6 comments

Comments

@azeyad
Copy link

azeyad commented Dec 28, 2015

Assume there is a scenario where changing the layout is allowed for the admin users only(or for any given user with a certain type of privilege) and in case the logged user is not authorized for such action I need a way to disable dragging panels around and changing the layout.

This can be even better if I can disable/enable layout changes at runtime after the page has been loaded, but I am not sure about feasibility of that?

@ryanlin1986
Copy link

+1 for this.

@azeyad
Copy link
Author

azeyad commented Dec 28, 2015

@gbaumgart: I was thinking that having these properties on the main wcDocker window so that whenever we set them they apply on all child panels is more intuitive, also after the page has been loaded, setting these properties at runtime should notify the child panels so they can set the movable & collapsible properties correspondingly.

@Lochemage
Copy link
Contributor

@azeyad

I'm not against putting in some simple locking options that are docker wide such as disabling all panel movement. Does disabling panel re-sizing make sense as well (not sure if anyone would actually need that)?

@azeyad
Copy link
Author

azeyad commented Dec 29, 2015

@Lochemage
In my opinion we just need to disable panels dragging and closing functionalities, but not sure if there are other scenarios where disable re-sizing is going to be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@Lochemage @azeyad @ryanlin1986 and others