dockview
Version:
React docking layout manager — tabs, groups, grids, splitviews, drag and drop, floating panels
33 lines (32 loc) • 1.25 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReactGroupDragGhostPart = void 0;
var react_1 = require("../react");
var ReactGroupDragGhostPart = /** @class */ (function () {
function ReactGroupDragGhostPart(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';
}
Object.defineProperty(ReactGroupDragGhostPart.prototype, "element", {
get: function () {
return this._element;
},
enumerable: false,
configurable: true
});
ReactGroupDragGhostPart.prototype.init = function (params) {
this.part = new react_1.ReactPart(this._element, this.reactPortalStore, this.component, {
group: params.group,
api: params.api,
});
};
ReactGroupDragGhostPart.prototype.dispose = function () {
var _a;
(_a = this.part) === null || _a === void 0 ? void 0 : _a.dispose();
};
return ReactGroupDragGhostPart;
}());
exports.ReactGroupDragGhostPart = ReactGroupDragGhostPart;