-
-
Notifications
You must be signed in to change notification settings - Fork 116
/
gridMenu.interface.ts
87 lines (59 loc) · 3.62 KB
/
gridMenu.interface.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import { CustomGridMenu } from './customGridMenu.interface';
export interface GridMenu {
/** Array of Custom Items (title, command, disabled, ...) */
customItems?: CustomGridMenu[];
/** Defaults to "Commands" which is the title that shows up over the custom commands list */
customTitle?: string;
/** Defaults to "Columns" which is the title that shows up over the columns */
columnTitle?: string;
/** Link for the displaying the Grid menu icon image (basically the hamburger menu) */
iconImage?: string;
/** CSS class for the displaying the Grid menu icon image (basically the hamburger menu) */
iconCssClass?: string;
/** Defaults to False, which leads to leaving the menu open after a click */
leaveOpen?: boolean;
/** Defaults to 16 pixels (only the number), which is the width in pixels of the Grid Menu icon */
menuWidth?: number;
/** Defaults to "Force fit columns" which is 1 of the last 2 checkbox title shown at the end of the picker list */
forceFitTitle?: string;
/** Defaults to True, which will show the "Clear All Filters" command in the Grid Menu (Grid Option "enableFiltering: true" has to be enabled) */
hideClearAllFiltersCommand?: boolean;
/** Defaults to True, which will show the "Clear All Sorting" command in the Grid Menu (Grid Option "enableSorting: true" has to be enabled) */
hideClearAllSortingCommand?: boolean;
/** Defaults to True, which will show the "Export to CSV" command in the Grid Menu (Grid Option "enableExport: true" has to be enabled) */
hideExportCsvCommand?: boolean;
/** Defaults to True, which will show the "Export to Text Delimited" command in the Grid Menu (Grid Option "enableExport: true" has to be enabled) */
hideExportTextDelimitedCommand?: boolean;
/** Defaults to True, show/hide 1 of the last 2 checkbox at the end of the picker list */
hideForceFitButton?: boolean;
/** Defaults to True, which will show the "Refresh Dataset" command in the Grid Menu (only works with a Backend Service API) */
hideRefreshDatasetCommand?: boolean;
/** Defaults to True, show/hide 1 of the last 2 checkbox at the end of the picker list */
hideSyncResizeButton?: boolean;
/** Defaults to True, which will show the "Toggle Filter Row" command in the Grid Menu (Grid Option "enableFiltering: true" has to be enabled) */
hideToggleFilterCommand?: boolean;
/** icon for the "Clear All Filters" command */
iconClearAllFiltersCommand?: string;
/** icon for the "Clear All Sorting" command */
iconClearAllSortingCommand?: string;
/** icon for the "Export to CSV" command */
iconExportCsvCommand?: string;
/** icon for the "Export to Text Delimited" command */
iconExportTextDelimitedCommand?: string;
/** icon for the "Refresh Dataset" command */
iconRefreshDatasetCommand?: string;
/** icon for the "Toggle Filter Row" command */
iconToggleFilterCommand?: string;
/** Defaults to False, which will resize the Header Row and remove the width of the Grid Menu icon from it's total width. */
resizeOnShowHeaderRow?: boolean;
/** Defaults to "Synchronous resize" which is 1 of the last 2 checkbox title shown at the end of the picker list */
syncResizeTitle?: string;
/** SlickGrid Event fired before the menu is shown. */
onBeforeMenuShow?: (e: Event, args: any) => void;
/** SlickGrid Event fired when any of the columns checkbox selection changes. */
onColumnsChanged?: (e: Event, args: any) => void;
/** SlickGrid Event fired when the menu is closing. */
onMenuClose?: (e: Event, args: any) => void;
/** SlickGrid Event fired on menu item click for buttons with 'command' specified. */
onCommand?: (e: Event, args: any) => void;
}