繁体   English   中英

流星呈板状

[英]Meteor aldeed-tabular

我正在尝试使用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>

在这个Meteor论坛上 ,他们讨论显示具有特定角色的用户。 您的案件比较容易,因为您只想吸引所有用户。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM