Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
addDnd(column) {
if (!this.draggableCell) {
this.draggableCell = draggable(column.cellRenderer || Table.Cell, 'element');
}
column.cellRenderer = this.draggableCell;
// add dnd callback methods
column.cellExtraProps = {};
column.cellExtraProps.beginDrag = this.dndListener.beginDrag;
column.cellExtraProps.canDrop = this.dndListener.canDrop;
column.cellExtraProps.drop = this.dndListener.drop;
column.cellExtraProps.endDrag = this.dndListener.endDrag;
}
addDnd(column) {
if (!this.draggableCell) {
this.draggableCell = draggable(column.cellRenderer || Table.Cell, 'element');
}
column.cellRenderer = this.draggableCell;
// add dnd callback methods
column.cellExtraProps = {};
column.cellExtraProps.beginDrag = this.dndListener.beginDrag;
column.cellExtraProps.canDrop = this.dndListener.canDrop;
column.cellExtraProps.drop = this.dndListener.drop;
column.cellExtraProps.endDrag = this.dndListener.endDrag;
}