onBeforePortletMove

fires before a portlet is moved

void onBeforePortletMove(object source,object parent,object active,object target,string mode);
sourceobjectthe original parent layout
parentobjecta new parent layout
activeobject(also this) a portlet to move
targetobjecta target view (highlighted, will be placed beside the active one within the parent layout)
modestringdrag direction relative to the target

Example

webix.attachEvent("onBeforePortletMove", function(source,parent,active,target,mode){ 
    // some code here
})

Details

Pay attention that the event is attached globally - webix.attachEvent( ).

See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
If you have not checked yet, be sure to visit site of our main product Webix html5 framework and page of javascript portlet product.