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