Skip to content

Commit

Permalink
feat(core): expose EventPubSub Service on SlickerGridInstance (#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding authored Oct 21, 2022
1 parent 054e4bc commit 8ad54b5
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 @@ -637,6 +637,7 @@ export class SlickVanillaGridBundle {

// 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 SlickerGridInstance {
/** Slick DataView object */
Expand All @@ -34,6 +35,9 @@ export interface SlickerGridInstance {
/** Backend Service, when available */
backendService?: BackendService;

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

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

Expand Down

0 comments on commit 8ad54b5

Please sign in to comment.