public registerPlugin()

in components/js/slickGrid.ts [313:322]


    public registerPlugin(plugin: Slick.Plugin<any> | string): void {
        if (typeof plugin === 'object') {
            this._grid.registerPlugin(plugin);
        } else if (typeof plugin === 'string' && Slick[plugin] && typeof Slick[plugin] === 'function') {
            this._grid.registerPlugin(new Slick[plugin]);
        } else {
            console.error(`Tried to register plugin ${plugin}, but none was found to be attached to Slick Grid or it was not a function.
                        Please extend the Slick with the plugin as a function before registering`);
        }
    }