Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): expose EventPubSub Service on SlickerGridInstance #780

Merged
merged 1 commit into from
Oct 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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