Skip to content

support of nested columns #46

@dohomi

Description

@dohomi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions