【问题标题】:Meteor aldeed-tabularMeteor aldeed-tabular
【发布时间】:2016-06-21 04:11:10
【问题描述】:

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


    【解决方案1】:

    查看此Meteor forum,他们在其中讨论了显示具有特定角色的用户。您的案例更简单,因为您只想获得所有用户。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-12-20
      • 2017-05-15
      • 1970-01-01
      • 2015-04-26
      • 2016-12-02
      • 2016-10-08
      • 1970-01-01
      相关资源
      最近更新 更多