@highcharts/dashboards
Version:
Highcharts Dashboards framework
64 lines (63 loc) • 1.3 kB
JavaScript
/* *
*
* (c) 2009-2026 Highsoft AS
*
* Integration of this software requires a license.
* - For commercial use, see www.highcharts.com/license
* - For non-commercial, see www.highcharts.com/license-eula
*
*
* Authors:
* - Karol Kołodziej
* - Dawid Draguła
*
* */
;
import GridComponent from '../Components/GridComponent/GridComponent.js';
/* *
*
* Functions
*
* */
/**
* Connects Grid with the Dashboard plugin.
*
* @param GridNS
* Grid core to connect.
*/
function connectGrid(GridNS) {
GridComponent.GridNamespace = GridNS;
}
/**
* Callback function of the Dashboard plugin.
*
* @param {Dashboards.PluginHandler.Event} e
* Plugin context provided by the Dashboard.
*/
function onRegister(e) {
const { ComponentRegistry } = e;
ComponentRegistry.registerComponent('Grid', GridComponent);
}
/**
* Callback function of the Dashboard plugin.
*
* @param {Dashboard.PluginHandler.Event} e Plugin context provided by the Dashboard.
*/
function onUnregister(
// eslint-disable-next-line @typescript-eslint/no-unused-vars
e) { }
/* *
*
* Default Export
*
* */
const GridCustom = {
connectGrid
};
const GridPlugin = {
custom: GridCustom,
name: 'Grid.DashboardsPlugin',
onRegister,
onUnregister
};
export default GridPlugin;