You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`mode`| mode to either 'reorder' the column or 'swap' column position on drop | 'reorder' | string | yes |
66
+
|`draggable`| array of column accessors to allow drag and drop || array of strings ||
67
+
|`enableColumnWideDrag`| when {true} entire column is draggable. when {false} only header text is draggable | true | bool ||
68
+
|`disableTableScroll`| disable ReactTable horizontal/vertical scrolling when dragging a column | false | bool ||
69
+
|`overflow`| used with disableTableScroll={true} to reset ReactTable overflow style onDragEnd event |`auto`| string ||
70
+
|`useDragImage`| clone dragged column element? useful for applying a different css class. | true | bool ||
71
+
|`dragImageClassName`| dragImageClassName only applies when useDragImage={true} |`rt-dragged-item`| string ||
72
+
|`onDragEnterClassName`| when mode={'swap'} - css class applied on dragged over column |`rt-drag-enter-item`| string ||
73
+
|`onDraggedColumnChange`| callback method to be notified when column order changes - signature: function(columns) || function ||
74
+
|`onDropSuccess`| callback method to be notified when on column drop success - signature: function(draggedColumn, targetColumn, oldIndex, newIndex, oldOffset, newOffset) || function ||
75
+
|`reorderIndicatorUpClassName`| additional className for reorder indicator Up || string ||
76
+
|`reorderIndicatorDownClassName`| additional className for reorder indicator Down || string ||
/** callback method to be notified when on column drop success - signature: function(draggedColumn, targetColumn, oldIndex, newIndex) */
547
+
/** callback method to be notified when on column drop success - signature: function(draggedColumn, targetColumn, oldIndex, newIndex, oldOffset, newOffset) */
504
548
onDropSuccess: PropTypes.func,
505
549
/** callback method to be notified when column order changes - signature: function(columns) */
506
550
onDraggedColumnChange: PropTypes.func,
@@ -513,6 +557,3 @@ export default Component => {
513
557
514
558
returnwrapper
515
559
}
516
-
517
-
// todo - additionalDropZones prop? For columns that aren't draggable to but you want to allow other columns to be reordered before or after it?
518
-
// (reorder mode only, doesn't make sense for swap mode)
1) future idea - additionalDropZones prop? For columns that aren't draggable to but you want to allow other columns to be reordered before or after it?
0 commit comments