aurelia-kendoui-bridge
Version:
A set of Telerik KendoUI wrappers for Aurelia allowing developers to easily use KendoUI components in their Aurelia application.
23 lines (20 loc) • 846 B
JavaScript
import {customElement} from 'aurelia-templating';
import {inject} from 'aurelia-dependency-injection';
import {constants} from '../common/constants';
import {generateBindables} from '../common/decorators';
import {TemplateGatherer} from '../common/template-gatherer';
import {Util} from '../common/util';
(`${constants.elementPrefix}grid-toolbar`)
('GridToolbarItem')
(TemplateGatherer, Util, Element)
export class GridToolbar {
constructor(templateGatherer, util, element) {
this.templateGatherer = templateGatherer;
this.util = util;
this.element = element;
}
beforeOptionsBuild() {
let templates = this.util.getChildrenVMs(this.element, `${constants.elementPrefix}template`);
this.templateGatherer.useTemplates(this, 'GridToolbarItem', templates);
}
}