简体   繁体   中英

Meteor aldeed-tabular

i'm trying to get the list of all users using aldeed-tabular but it doesn't work , any help please !

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>

Check out this Meteor forum where they discuss displaying users with specific roles. Your case is easier since you just want to get all users.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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