当前位置: 动力学知识库 > 问答 > 编程问答 >

meteor - aldeed tabular doesn't recognise cell template

问题描述:

I use an all packages architecture in a meteor project.

the CompanyButtons template is undefined in TabularLevel , the console log displays undefined and no template is displayed in the actions cell.

 TabularTables = {};

Meteor.isClient && console.log(Template.companyButtons)

TabularTables.Companies = new Tabular.Table({

name: "Companies",

collection: Companies,

columns: [

{data: "name", title: "Name"},

{data: "phone", title: "Phone"},

{data: "cities", title: "City"},

{title:"actions", width:"80%", tmpl: Meteor.isClient && Template.companyButtons

}

]

});

the template is correctly added

 api.addFiles([

"lib/client/templates/utility/companyButtons.html",

], "client");

my template is recognised in the browser when i call Template.companyButtons

分享给朋友:
您可能感兴趣的文章:
随机阅读: