Portlet - Move (mode) options

Hello,

The move of the portlets can be configured using ‘mode’ attribute:

  • mode:“replace” means the portlets replace one another after DnD
  • mode:“cols” allows only horizontal movement
  • mode:“rows” allows only vertical movement

Besides these, is there an option to disable the movements?

Consider the scenario when a dashboard can be in ‘view’ mode (which should not allow any movement, with an option to hide or not the move handler as well) and the standard ‘edit’ mode.

Also, I’ve noticed that ‘mode’ attribute is not included in the API Ref documentation (http://docs.webix.com/api__refs__ui.portlet.html).

Thanks

Hello,

Besides these, is there an option to disable the movements?

For now, there’s no such built-in feature. But your suggestion makes sense and we will consider it.

As a temporary solution, it is possible to remove the portlet’s icon. Drop areas will work as usual while the view itself will be “static”:

http://webix.com/snippet/4d451eca

‘mode’ attribute is not included in the API Ref documentation

Thank you for pointing this out!

The solution is just a nice and quick way to have this ‘feature’ also.

Your feedback and help is greatly appreciated!