@highcharts/dashboards
Version:
Highcharts Dashboards framework
42 lines (41 loc) • 1.13 kB
TypeScript
import type CSSJSONObject from '../CSSJSONObject';
import type { Options as RowOptions } from './Row';
interface Layout {
options: Options;
}
/**
* Each layout's options.
**/
export interface Options {
/**
* Unique id of the layout.
**/
id?: string;
/**
* The class name of the layout container.
**/
layoutClassName?: string;
/**
* The class name applied to each row that is in that exact layout.
* Note that the layout container is also treated as a row thus this
* class is also being applied to the layout container.
**/
rowClassName?: string;
/**
* The class name applied to each cell that is in that exact layout.
*
* Try it:
*
* {@link https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/dashboards/gui/cell-class-name/ | Set cell class names}
**/
cellClassName?: string;
/**
* An array of rows. Each row can contain an array of cells.
**/
rows?: Array<RowOptions>;
/**
* CSS styles of the layout.
**/
style?: CSSJSONObject;
}
export default Layout;