UNPKG

dockview

Version:

React docking layout manager — tabs, groups, grids, splitviews, drag and drop, floating panels

24 lines (23 loc) 736 B
import { ReactPart } from '../react'; export class ReactGroupDragGhostPart { get element() { return this._element; } constructor(component, reactPortalStore) { this.component = component; this.reactPortalStore = reactPortalStore; this._element = document.createElement('div'); this._element.className = 'dv-react-part'; this._element.style.display = 'inline-flex'; } init(params) { this.part = new ReactPart(this._element, this.reactPortalStore, this.component, { group: params.group, api: params.api, }); } dispose() { var _a; (_a = this.part) === null || _a === void 0 ? void 0 : _a.dispose(); } }