@highcharts/dashboards
Version:
Highcharts Dashboards framework
82 lines (81 loc) • 2.49 kB
TypeScript
import type Board from '../../Board';
import type Cell from '../../Layout/Cell';
import type { Grid, GridNamespace } from '../../Plugins/DataGridTypes';
import type Options from './DataGridComponentOptions';
import Component from '../Component.js';
import SidebarPopup from '../../EditMode/SidebarPopup';
/**
* Grid Component for Highcharts Dashboards.
* @private
*/
declare class DataGridComponent extends Component {
/**
* Predefined sync config for the Grid Component.
*/
static predefinedSyncConfig: import("../Sync/Sync").default.PredefinedSyncConfig;
/**
* The namespace of the Grid Component.
* @deprecated
* DataGrid will be removed in behalf of Grid in the next major version.
*/
static get DataGridNamespace(): GridNamespace | undefined;
/**
* The namespace of the Grid Component.
*/
static GridNamespace?: GridNamespace;
/**
* The default options for the Grid Component.
*/
static defaultOptions: Partial<Component.Options> & import("../../Globals").default.DeepPartial<Options>;
/**
* The Grid that is rendered in the Grid Component.
* @deprecated
* DataGrid will be removed in behalf of Grid in the next major version.
*/
get dataGrid(): Grid | undefined;
/**
* The Grid that is rendered in the Grid Component.
*/
grid?: Grid;
/**
* The options of the Grid Component.
*/
options: Options;
constructor(cell: Cell, options: Partial<Options>, board?: Board);
update(options: Partial<Options>): Promise<void>;
render(): this;
resize(width?: number | string | null, height?: number | string | null): void;
onTableChanged(): void;
getEditableOptions(): Options;
getOptionsOnDrop(sidebar: SidebarPopup): Partial<Options>;
/**
* Get the Grid Component's options.
*
* @returns
* Grid Component's options.
*
* @internal
*/
getOptions(): Partial<Options>;
/**
* Destroys the data grid component.
*/
destroy(): void;
/**
* Sets the options for the data grid component content container.
*/
private setOptions;
/**
* Function to create the Grid.
*
* @returns The Grid.
*/
private constructGrid;
}
declare namespace DataGridComponent {
/** @private */
type ComponentType = DataGridComponent;
/** @private */
type ChartComponentEvents = Component.EventTypes;
}
export default DataGridComponent;