WebCabin / wcDocker

wcDocker (Web Cabin Docker) is a powerful window layout system with a responsive and completely interactive design. Move, remove, create, and duplicate panel windows at any time! Organize how you wish! View the demo here:
http://docker.webcabin.org
146 stars 53 forks source link

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

Open azeyad opened 8 years ago

azeyad commented 8 years ago

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 commented 8 years ago

+1 for this.

azeyad commented 8 years ago

@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 commented 8 years ago

@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 commented 8 years ago

@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.