Skip to content

Commit

Permalink
feat(core): expose EventPubSub Service on AngularGridInstance
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Oct 20, 2022
1 parent 5f6bbb9 commit a1c5ad5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ export class AngularSlickgridComponent implements AfterViewInit, OnDestroy {

// return all available Services (non-singleton)
backendService: this.gridOptions?.backendServiceApi?.service,
eventPubSubService: this._eventPubSubService,
filterService: this.filterService,
gridEventService: this.gridEventService,
gridStateService: this.gridStateService,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
SortService,
TreeDataService
} from '@slickgrid-universal/common';
import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';

export interface AngularGridInstance {
/** Slick DataView object */
Expand All @@ -36,6 +37,9 @@ export interface AngularGridInstance {
/** Backend Service, when available */
backendService?: BackendService;

/** EventPubSub Service instance that is used internal by the lib and could be used externally to subscribe to Angular-Slickgrid events */
eventPubSubService?: EventPubSubService;

/** Extension (Plugins & Controls) Service */
extensionService: ExtensionService;

Expand Down

0 comments on commit a1c5ad5

Please sign in to comment.