We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
_id
profile.firstName
profile.lastName
The text was updated successfully, but these errors were encountered:
Hello again, with following code the data is getting rendered:
mRender: function (data, type, row) { return data; }
But now I am facing the problem that the ordering is now working correctly. Any ideas why? Thanks
Sorry, something went wrong.
Are you still defining the data property? That is what datatables uses to determine sort order.
@austinrivas I figured out that it was because of mongodb sort and case sensitivity. Sorting seems to work correctly.
No branches or pull requests
Hello,
I just made a quick tryout to show all Meteor.users in a DataTable to test this plugin.
Template.html:
Publication:
The
_id
of the user is displayed, butprofile.firstName
andprofile.lastName
is empty. Thanks for some infos.The text was updated successfully, but these errors were encountered: