-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: migrate Draggable Grouping Plugins to TypeScript (#814)
- Loading branch information
1 parent
a244ada
commit 0037c7d
Showing
18 changed files
with
601 additions
and
522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import type { ColumnReorderFunction, GroupingGetterFunction } from './index'; | ||
|
||
export interface DraggableGroupingOption { | ||
/** an extra CSS class to add to the delete button (default undefined), if deleteIconCssClass is undefined then slick-groupby-remove-icon class will be added */ | ||
deleteIconCssClass?: string; | ||
|
||
/** a url to the delete button image (default undefined) */ | ||
deleteIconImage?: string; | ||
|
||
/** option to specify set own placeholder note text */ | ||
dropPlaceHolderText?: string; | ||
|
||
/** an extra CSS class to add to the grouping field hint (default undefined) */ | ||
groupIconCssClass?: string; | ||
|
||
/** a url to the grouping field hint image (default undefined) */ | ||
groupIconImage?: string; | ||
|
||
/** Defaults to False, should we display a toggle all button (typically aligned on the left before any of the column group) */ | ||
hideToggleAllButton?: boolean; | ||
|
||
/** Defaults to False, should we show the Sorting icons on each group by element? */ | ||
hideGroupSortIcons?: boolean; | ||
|
||
/** an extra CSS class to add to the sort ascending icon (default undefined), if sortAscIconCssClass is undefined then slick-groupby-sort-asc-icon class will be added */ | ||
sortAscIconCssClass?: string; | ||
|
||
/** an extra CSS class to add to the sort descending icon (default undefined), if sortDescIconCssClass is undefined then slick-groupby-sort-desc-icon class will be added */ | ||
sortDescIconCssClass?: string; | ||
|
||
/** Defaults to "Toggle all Groups", placeholder of the Toggle All button that can optionally show up in the pre-header row. */ | ||
toggleAllPlaceholderText?: string; | ||
|
||
/** Defaults to empty string, text to show in the Toggle All button that can optionally show up in the pre-header row. */ | ||
toggleAllButtonText?: string; | ||
|
||
// | ||
// Methods | ||
// --------- | ||
|
||
/** provide option to clear grouping */ | ||
clearDroppedGroups?: () => void; | ||
|
||
/** its function to setup draggable feature agains Header Column, should be passed on grid option. Also possible to pass custom function */ | ||
getSetupColumnReorder?: ColumnReorderFunction; | ||
|
||
/** provide option to set default grouping on loading */ | ||
setDroppedGroups?: (groupingInfo: Array<string | GroupingGetterFunction> | string) => void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.