Skip to content
New issue

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

Can't access current element instance inside render function #413

Open
vischnabel opened this issue Mar 21, 2018 · 0 comments
Open

Can't access current element instance inside render function #413

vischnabel opened this issue Mar 21, 2018 · 0 comments

Comments

@vischnabel
Copy link

Currently, I'm trying to put a image inside a table row. The image is part of a FilesCollection (meteor/ostrio:files), and the link to the image is returned by doing something along the following

let link = objectInstanceFromTheFileCollection.link();

in which .link() is a function from the given FilesCollection.
The problem is that I can't access the current instance of data, inside the render. I want to do something like this:

{
    data: "Anything that returns me the object instance in render",
    title: "Image",
    render (val, type, doc) {
        return '<a href="'+val.link()+'">Text</a>';
    },
},

Can you help me with this?

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant