aurelia-kendoui-bridge
Version:
A set of Telerik KendoUI wrappers for Aurelia allowing developers to easily use KendoUI components in their Aurelia application.
39 lines (26 loc) • 1.54 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.GridToolbar = undefined;
var _dec, _dec2, _dec3, _class;
var _aureliaTemplating = require('aurelia-templating');
var _aureliaDependencyInjection = require('aurelia-dependency-injection');
var _constants = require('../common/constants');
var _decorators = require('../common/decorators');
var _templateGatherer = require('../common/template-gatherer');
var _util = require('../common/util');
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var GridToolbar = exports.GridToolbar = (_dec = (0, _aureliaTemplating.customElement)(_constants.constants.elementPrefix + 'grid-toolbar'), _dec2 = (0, _decorators.generateBindables)('GridToolbarItem'), _dec3 = (0, _aureliaDependencyInjection.inject)(_templateGatherer.TemplateGatherer, _util.Util, Element), _dec(_class = _dec2(_class = _dec3(_class = function () {
function GridToolbar(templateGatherer, util, element) {
_classCallCheck(this, GridToolbar);
this.templateGatherer = templateGatherer;
this.util = util;
this.element = element;
}
GridToolbar.prototype.beforeOptionsBuild = function beforeOptionsBuild() {
var templates = this.util.getChildrenVMs(this.element, _constants.constants.elementPrefix + 'template');
this.templateGatherer.useTemplates(this, 'GridToolbarItem', templates);
};
return GridToolbar;
}()) || _class) || _class) || _class);