dockview
Version:
React docking layout manager — tabs, groups, grids, splitviews, drag and drop, floating panels
32 lines (31 loc) • 1.25 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReactContextMenuItemPart = void 0;
var react_1 = require("../react");
var ReactContextMenuItemPart = /** @class */ (function () {
function ReactContextMenuItemPart(id, component, reactPortalStore) {
this.id = id;
this.component = component;
this.reactPortalStore = reactPortalStore;
this._element = document.createElement('div');
this._element.className = 'dv-react-part';
this._element.style.height = '100%';
this._element.style.width = '100%';
}
Object.defineProperty(ReactContextMenuItemPart.prototype, "element", {
get: function () {
return this._element;
},
enumerable: false,
configurable: true
});
ReactContextMenuItemPart.prototype.init = function (props) {
this.part = new react_1.ReactPart(this._element, this.reactPortalStore, this.component, props);
};
ReactContextMenuItemPart.prototype.dispose = function () {
var _a;
(_a = this.part) === null || _a === void 0 ? void 0 : _a.dispose();
};
return ReactContextMenuItemPart;
}());
exports.ReactContextMenuItemPart = ReactContextMenuItemPart;