1234567891011121314151617181920212223 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- var ToolbarButton_1 = require("./ToolbarButton");
- var Toolbar = (function () {
- function Toolbar(toolbarItems, clickHandler) {
- var _this = this;
- this.getUI = function () {
- _this.toolbarUI = document.createElement('div');
- _this.toolbarUI.className = 'fc-whiteboardtoolbar';
- for (var _i = 0, _a = _this.toolbarItems; _i < _a.length; _i++) {
- var toolbarItem = _a[_i];
- var toolbarButton = new ToolbarButton_1.ToolbarButton(toolbarItem, _this.clickHandler);
- _this.toolbarUI.appendChild(toolbarButton.getElement());
- }
- return _this.toolbarUI;
- };
- this.toolbarItems = toolbarItems;
- this.clickHandler = clickHandler;
- }
- return Toolbar;
- }());
- exports.Toolbar = Toolbar;
|