Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/app/examples/grid-draggrouping.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ export class GridDraggableGroupingComponent implements OnInit {
preHeaderPanelHeight: 40,
enableFiltering: true,
enableSorting: true,
enableColumnReorder: true,
exportOptions: {
sanitizeDataExport: true
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { Column, SlickGrid } from './index';

export type ColumnReorderFunction = (grid: SlickGrid, headers: HTMLElement[], headerColumnWidthDiff: any, setColumns: (col: Column) => void, setupColumnResize: () => void, columns: Column[], getColumnIndex: number, uid: string, trigger: boolean) => void;
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Grouping } from './grouping.interface';
import { ColumnReorderFunction } from './columnReorderFunction.type';

export interface DraggableGrouping {
/** an extra CSS class to add to the delete button (default undefined), if deleteIconCssClass && deleteIconImage undefined then slick-groupby-remove-image class will be added */
Expand Down Expand Up @@ -35,5 +36,5 @@ export interface DraggableGrouping {
clearDroppedGroups?: () => void;

/** its function to setup draggable feature agains Header Column, should be passed on grid option. Also possible to pass custom function */
getSetupColumnReorder?: () => void;
getSetupColumnReorder?: ColumnReorderFunction;
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
CheckboxSelector,
Column,
ColumnPicker,
ColumnReorderFunction,
ContextMenu,
DraggableGrouping,
EditCommand,
Expand Down Expand Up @@ -195,7 +196,7 @@ export interface GridOption {
enableColumnPicker?: boolean;

/** Defaults to true, which permits the user to move an entire column from a position to another. */
enableColumnReorder?: boolean;
enableColumnReorder?: boolean | ColumnReorderFunction;

/** Do we want to enable Context Menu? (mouse right+click) */
enableContextMenu?: boolean;
Expand Down
1 change: 1 addition & 0 deletions src/app/modules/angular-slickgrid/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export * from './columnEditorDualInput.interface';
export * from './columnFilter.interface';
export * from './columnFilters.interface';
export * from './columnPicker.interface';
export * from './columnReorderFunction.type';
export * from './columnSort.interface';
export * from './contextMenu.interface';
export * from './currentColumn.interface';
Expand Down