dockview
Version:
Zero dependency layout manager supporting tabs, grids and splitviews with ReactJS support
27 lines • 1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ActionContainer = void 0;
var ActionContainer = /** @class */ (function () {
function ActionContainer() {
this._element = document.createElement('div');
this._element.className = 'actions-bar';
this._list = document.createElement('ul');
this._list.className = 'actions-container';
this._element.appendChild(this._list);
}
Object.defineProperty(ActionContainer.prototype, "element", {
get: function () {
return this._element;
},
enumerable: false,
configurable: true
});
ActionContainer.prototype.add = function (element) {
var listItem = document.createElement('li');
listItem.className = 'action-item';
this._list.appendChild(element);
};
return ActionContainer;
}());
exports.ActionContainer = ActionContainer;
//# sourceMappingURL=actionsContainer.js.map