This repository was archived by the owner on Jun 1, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 14 files changed +96
-37
lines changed
modules/angular-slickgrid Expand file tree Collapse file tree 14 files changed +96
-37
lines changed Original file line number Diff line number Diff line change 33 "dest" : " dist" ,
44 "workingDirectory" : " .ng_build" ,
55 "lib" : {
6- "entryFile" : " public_api.ts"
6+ "entryFile" : " public_api.ts" ,
7+ "externals" : {
8+ "flatpickr" : " flatpickr"
9+ }
710 }
811}
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export class GridHeaderButtonComponent implements OnInit {
4747 } ,
4848 enableFiltering : false ,
4949 enableCellNavigation : true ,
50- headerButtonOptions : {
50+ headerButton : {
5151 onCommand : ( e , args ) => {
5252 const column = args . column ;
5353 const button = args . button ;
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ export class GridHeaderMenuComponent implements OnInit {
8787 } ,
8888 enableFiltering : false ,
8989 enableCellNavigation : true ,
90- headerMenuOptions : {
90+ headerMenu : {
9191 onCommand : ( e , args ) => {
9292 if ( args . command === 'hide' ) {
9393 this . controlService . hideColumn ( args . column ) ;
Original file line number Diff line number Diff line change 11import { Editor } from './editor.interface' ;
22import { FieldType } from './fieldType' ;
33import { Formatter } from './formatter.interface' ;
4- import { HeaderButton } from './headerButton .interface' ;
5- import { HeaderMenu } from './headerMenu .interface' ;
4+ import { HeaderButtonItem } from './headerButtonItem .interface' ;
5+ import { HeaderMenuItem } from './headerMenuItem .interface' ;
66import { OnEventArgs } from './onEventArgs.interface' ;
77import { Sorter } from './sorter.interface' ;
88
@@ -21,9 +21,9 @@ export interface Column {
2121 focusable ?: boolean ;
2222 formatter ?: Formatter ;
2323 header ?: {
24- buttons ?: HeaderButton [ ] ;
24+ buttons ?: HeaderButtonItem [ ] ;
2525 menu ?: {
26- items : HeaderMenu [ ] ;
26+ items : HeaderMenuItem [ ] ;
2727 } ;
2828 } ;
2929 headerCssClass ?: string ;
Original file line number Diff line number Diff line change 11import { AutoResizeOption } from './autoResizeOption.interface' ;
22import { BackendEventChanged } from './backendEventChanged.interface' ;
33import { GridMenu } from './gridMenu.interface' ;
4+ import { HeaderButton } from './headerButton.interface' ;
5+ import { HeaderMenu } from './headerMenu.interface' ;
46import { Pagination } from './pagination.interface' ;
57import { PaginationChangedArgs } from './paginationChangedArgs.interface' ;
68import { SortChangedArgs } from './sortChangedArgs.interface' ;
@@ -38,15 +40,8 @@ export interface GridOption {
3840 gridMenu ?: GridMenu ;
3941 gridId ?: string ;
4042 headerRowHeight ?: number ;
41- headerButtonOptions ?: {
42- buttonCssClass ?: string ;
43- onCommand ?: ( e : Event , args : any ) => void ;
44- } ;
45- headerMenuOptions ?: {
46- buttonCssClass ?: string ;
47- buttonImage ?: string ;
48- onCommand ?: ( e : Event , args : any ) => void ;
49- } ;
43+ headerButton ?: HeaderButton ;
44+ headerMenu ?: HeaderMenu ;
5045 multiColumnSort ?: boolean ;
5146 onBackendEventApi ?: BackendEventChanged ;
5247 pagination ?: Pagination ;
Original file line number Diff line number Diff line change 1+ import { HeaderButtonOnCommandArgs } from './headerButtonOnCommandArgs.interface' ;
2+
13export interface HeaderButton {
2- cssClass ?: string ; // CSS class to add to the button.
3- image ?: string ; // Relative button image path.
4- tooltip ?: string ; // Button tooltip.
5- showOnHover ?: boolean ; // Only show the button on hover.
6- handler ?: ( e : Event ) => void ; // Button click handler.
7- command ?: string ; // A command identifier to be passed to the onCommand event handlers.
4+ buttonCssClass ?: string ;
5+ onCommand ?: ( e : Event , args : HeaderButtonOnCommandArgs ) => void ;
86}
Original file line number Diff line number Diff line change 1+ export interface HeaderButtonItem {
2+ command ?: string ; // A command identifier to be passed to the onCommand event handlers.
3+ cssClass ?: string ; // CSS class to add to the button.
4+ handler ?: ( e : Event ) => void ; // Button click handler.
5+ image ?: string ; // Relative button image path.
6+ showOnHover ?: boolean ; // Only show the button on hover.
7+ tooltip ?: string ; // Button tooltip.
8+ }
Original file line number Diff line number Diff line change 1+ import { Column } from './column.interface' ;
2+ import { HeaderButtonItem } from './headerButtonItem.interface' ;
3+
4+ export interface HeaderButtonOnCommandArgs {
5+ grid : any ;
6+ column : Column ;
7+ command : string ;
8+ button : HeaderButtonItem ;
9+ }
Original file line number Diff line number Diff line change 1+ import { HeaderMenuOnBeforeMenuShowArgs } from './headerMenuOnBeforeMenuShowArgs.interface' ;
2+ import { HeaderButtonOnCommandArgs } from './headerButtonOnCommandArgs.interface' ;
3+
14export interface HeaderMenu {
2- title ?: string ; // Menu item text.
3- disabled ?: boolean ; // Whether the item is disabled.
4- tooltip ?: string ; // Item tooltip.
5- command ?: string ; // A command identifier to be passed to the onCommand event handlers.
6- iconCssClass ?: string ; // A CSS class to be added to the menu item icon.
7- iconImage ?: string ; // A url to the icon image.
5+ buttonCssClass ?: string ;
6+ buttonImage ?: string ;
7+ onBeforeMenuShow ?: ( e : Event , args : HeaderMenuOnBeforeMenuShowArgs ) => void ;
8+ onCommand ?: ( e : Event , args : HeaderButtonOnCommandArgs ) => void ;
89}
Original file line number Diff line number Diff line change 1+ export interface HeaderMenuItem {
2+ command ?: string ; // A command identifier to be passed to the onCommand event handlers.
3+ disabled ?: boolean ; // Whether the item is disabled.
4+ iconCssClass ?: string ; // A CSS class to be added to the menu item icon.
5+ iconImage ?: string ; // A url to the icon image.
6+ title ?: string ; // Menu item text.
7+ tooltip ?: string ; // Item tooltip.
8+ }
You can’t perform that action at this time.
0 commit comments