UNPKG

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.5 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.TreeCol = 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 TreeCol = exports.TreeCol = (_dec = (0, _aureliaTemplating.customElement)(_constants.constants.elementPrefix + 'tree-col'), _dec2 = (0, _decorators.generateBindables)('TreeListColumn'), _dec3 = (0, _aureliaDependencyInjection.inject)(_templateGatherer.TemplateGatherer, _util.Util, Element), _dec(_class = _dec2(_class = _dec3(_class = function () { function TreeCol(templateGatherer, util, element) { _classCallCheck(this, TreeCol); this.templateGatherer = templateGatherer; this.util = util; this.element = element; } TreeCol.prototype.beforeOptionsBuild = function beforeOptionsBuild() { var templates = this.util.getChildrenVMs(this.element, _constants.constants.elementPrefix + 'template'); this.templateGatherer.useTemplates(this, 'TreeListColumn', templates); }; return TreeCol; }()) || _class) || _class) || _class);