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
If you have not checked yet, be sure to visit site of our main product Webix html5 framework and page of javascript portlet product.