UNPKG

@voila-dashboards/jupyterlab-gridstack

Version:

A gridstack-based template for [![voila-gridstack](assets/voila.png)](https://github.com/voila-dashboards/voila).

43 lines (42 loc) 956 B
import { Widget } from '@lumino/widgets'; import { ISignal } from '@lumino/signaling'; export declare enum ItemState { CLOSED = 0, LOCKED = 1, UNLOCKED = 2 } export declare class GridStackItemModel { constructor(options: GridStackItemModel.IOptions); get cellId(): string; get isLocked(): boolean; get stateChanged(): ISignal<this, ItemState>; dispose(): void; close(): void; lock(): void; unlock(): void; private _isLocked; private _cellId; private _stateChanged; } /** * A namespace for GridStackItem statics. */ export declare namespace GridStackItemModel { /** * Options interface for GridStackItem */ interface IOptions { /** * The cell Id. */ cellId: string; /** * The cell widget. */ cellWidget: Widget; /** * If the cell is pinned or not. */ isLocked: boolean; } }