UNPKG

dockview

Version:

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

19 lines (18 loc) 710 B
import { SplitviewPanel } from '../../splitview/splitviewPanel'; import { ReactPart } from '../react'; export class ReactPanelView extends SplitviewPanel { 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, }); } }