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

fix: GroupItemMetaDataProvider should implements SlickPlugin #956

Merged
merged 1 commit into from
Dec 29, 2023
Merged
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
6 changes: 4 additions & 2 deletions src/slick.groupitemmetadataprovider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SlickGroup as SlickGroup_, keyCode as keyCode_, Utils as Utils_ } from './slick.core';
import type { Column, DOMEvent, GroupItemMetadataProviderOption, GroupingFormatterItem, ItemMetadata } from './models/index';
import type { Column, DOMEvent, GroupItemMetadataProviderOption, GroupingFormatterItem, ItemMetadata, SlickPlugin } from './models/index';
import type { SlickGrid } from './slick.grid';

// for (iife) load Slick methods from global Slick object, or use imports for (esm)
Expand All @@ -21,7 +21,9 @@ const Utils = IIFE_ONLY ? Slick.Utils : Utils_;
* @constructor
* @param inputOptions
*/
export class SlickGroupItemMetadataProvider {
export class SlickGroupItemMetadataProvider implements SlickPlugin {
pluginName = 'GroupItemMetadataProvider' as const;

protected _grid!: SlickGrid;
protected _options: GroupItemMetadataProviderOption;
protected _defaults: GroupItemMetadataProviderOption = {
Expand Down