Skip to content

Commit

Permalink
Fixed #1080 - onColReorder in Datatable parameter missing
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Nov 8, 2019
1 parent 23931f5 commit fe0cbb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/datatable/DataTable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ interface DataTableProps {
onRowExpand?(e: {originalEvent: Event, data: any}): void;
onRowCollapse?(e: {originalEvent: Event, data: any}): void;
onContextMenu?(e: {originalEvent: Event, data: any}): void;
onColReorder?(e: {dragIndex: number, dropIndex: number, columns: any}): void;
onColReorder?(e: {originalEvent: Event, dragIndex: number, dropIndex: number, columns: any}): void;
onRowReorder?(e: {originalEvent: Event, value: any, dragIndex: number, dropIndex: number}): void;
onValueChange?(value: any[]): void;
rowEditorValidator?(rowData: any): boolean;
Expand Down
1 change: 1 addition & 0 deletions src/components/datatable/DataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,7 @@ export class DataTable extends Component {

if (this.props.onColReorder) {
this.props.onColReorder({
originalEvent: event,
dragIndex: dragIndex,
dropIndex: dropIndex,
columns: columns
Expand Down

0 comments on commit fe0cbb4

Please sign in to comment.