我正在尝试使用aldeed-tabular获取所有用户的列表,但它不起作用,请帮助!
LIB / Users.js
TabularTables = {};
Meteor.isClient && Template.registerHelper('TabularTables', TabularTables);
TabularTables.UserList = new Tabular.Table({
name: "Users List",
collection: Meteor.users,
columns: [
{data: "email()", title: "firstName", class: "col-md-1"},
{data: "lastName", title: "lastName", class: "col-md-3"},
]});
**Client/UsersList.js**
<template name="tabular">
{{> tabular table=TabularTables.UserList class="table table-striped table-bordered table-condensed"}}
</template>