dockview
Version:
Zero dependency layout manager supporting tabs, grids and splitviews with ReactJS support
35 lines • 1.79 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReactGroupPanelView = void 0;
var defaultTab_1 = require("../../../dockview/components/tab/defaultTab");
var defaultGroupPanelView_1 = require("../../../dockview/defaultGroupPanelView");
var reactContentRenderer_1 = require("./reactContentRenderer");
var ReactGroupPanelView = /** @class */ (function (_super) {
__extends(ReactGroupPanelView, _super);
function ReactGroupPanelView(id, options, data, reactPortalStore) {
var _this = _super.call(this, {
content: new reactContentRenderer_1.ReactContentRenderer(id, options.frameworkComponents[data.content], reactPortalStore),
tab: new defaultTab_1.DefaultTab(),
}) || this;
_this.data = data;
return _this;
}
return ReactGroupPanelView;
}(defaultGroupPanelView_1.DefaultGroupPanelView));
exports.ReactGroupPanelView = ReactGroupPanelView;
//# sourceMappingURL=reactGroupPanelView.js.map