UNPKG

dockview

Version:

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

19 lines (18 loc) 711 B
import { GridviewPanel, } from '../../gridview/gridviewPanel'; import { ReactPart } from '../react'; export class ReactGridPanelView extends GridviewPanel { constructor(id, component, reactComponent, reactPortalStore) { super(id, component); this.reactComponent = reactComponent; this.reactPortalStore = reactPortalStore; } getComponent() { var _a; return new ReactPart(this.element, this.reactPortalStore, this.reactComponent, { params: ((_a = this.params) === null || _a === void 0 ? void 0 : _a.params) || {}, api: this.api, containerApi: this.params .containerApi, }); } }