-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Labels
Description
Hello,
I just made a quick tryout to show all Meteor.users in a DataTable to test this plugin.
Template.userList.users = function () {
return {
id: "operator-user-list",
columns: [
{
title: "ID",
data: "_id"
},
{
title: "First name",
data: "profile.firstName"
},
{
title: "Last name",
data: "profile.lastName"
}
],
subscription: "operatorAllUser"
}
};
Template.html:
{{> DataTable users}}
Publication:
var UserTable = new DataTableComponent({
subscription: "operatorAllUser",
collection: Meteor.users
});
UserTable.publish();
The _id of the user is displayed, but profile.firstName and profile.lastName is empty. Thanks for some infos.