Define receive callback for sortable grid

This commit is contained in:
Hadi Nategh 2019-03-18 09:15:30 +01:00
parent c6f2f7f85e
commit 350f1cd0b7

View File

@ -62,6 +62,12 @@ var et2_grid = (function(){ "use strict"; return et2_DOMWidget.extend([et2_IDeta
type: "string",
default: "",
description: "Defines other sortable areas that should be connected to sort list"
},
sortable_recieveCallback: {
name: "Sortable receive callback",
type: "string",
default: et2_no_init,
description: "Defines sortable receive callback function"
}
},
@ -944,6 +950,11 @@ var et2_grid = (function(){ "use strict"; return et2_DOMWidget.extend([et2_IDeta
self,
true
).sendRequest();
},
receive: function (event, ui) {
if (typeof self.options.sortable_recieveCallback == 'function') {
self.options.sortable_recieveCallback.call(self, event,ui);
}
}
});
},