UNPKG

dockview

Version:

Zero dependency layout manager supporting tabs, grids and splitviews with ReactJS support

42 lines (41 loc) 1.19 kB
import { GridviewPanelApiImpl } from '../api/gridviewPanelApi'; import { Groupview } from './groupview'; import { GridviewPanel } from '../gridview/gridviewPanel'; export class GroupviewPanel extends GridviewPanel { constructor(accessor, id, options) { super(id, 'groupview_default', new GridviewPanelApiImpl(id)); this._model = new Groupview(this.element, accessor, id, options, this); } get model() { return this._model; } get minimumHeight() { return this._model.minimumHeight; } get maximumHeight() { return this._model.maximumHeight; } get minimumWidth() { return this._model.minimumWidth; } get maximumWidth() { return this._model.maximumWidth; } initialize() { this.model.initialize(); } setActive(isActive) { super.setActive(isActive); this.model.setActive(isActive); } layout(width, height) { super.layout(width, height); this.model.layout(width, height); } getComponent() { return this._model; } toJSON() { return this.model.toJSON(); } }