Is there a way to prevent dashboard panels or items in a grid layout from being moved?
Thanks
Is there a way to prevent dashboard panels or items in a grid layout from being moved?
Thanks
Hello,
First solution:
You can use Grid Layout
Second solution:
You can customize its $dragCreate
method that is automatically called when drag is about to start:
webix.protoUI({
name:"mydashboard",
$dragCreate:function(){
if(notAllowed)
return false;
else
return webix.ui.dashboard.prototype.$dragCreate.apply(this, arguments);
}
}, webix.ui.dashboard);
https://snippet.webix.com/otle2kvd
It doesn’t affect resizing, but this can be similarly blocked on UI Panel level (change its resize property or modify its $resizeMove method).
Thank you!!