Is it possible to avoid the column, not to drag out of the data-table view area, as you can make out yourself, what I am talking about from this link https://l-lin.github.io/ang
As l-lin points out, angular-datatables is a wrapper for jQuery dataTables providing directives and making sure dataTables not is conflicting with angular. To change core functionality you must still change the core.
You can change many things in the dataTables core libraries by monkey patching. To prevent dragging of a column header outside the The above override ColReorders mousemove events when dragging is going on. If the mouse is outside the angular-datatables demo -> http://plnkr.co/edit/uPv8FoUrJkQWnEaE2AQY?p=preview pure jQuery dataTables demo -> http://jsfiddle.net/0boznoh7/ section of a table you can do this :
var old_fnMouseMove = $.fn.DataTable.ColReorder.prototype._fnMouseMove;
$.fn.DataTable.ColReorder.prototype._fnMouseMove = function(e) {
var x = e.clientX,
y = e.clientY,
r = document.querySelector('#example thead').getBoundingClientRect(),
within = (x>r.left && x
element it simply just dont pass the event to the original function - by that dragging a column outside is effectively prevented.