columns.render is not having this context, how to get the element of the cell ?

columns.render is not having this context, how to get the element of the cell ?

JanurajJanuraj Posts: 85Questions: 18Answers: 0

i am using columns.render for dispalying the data. But i need to append another element to the cell
i tried accessing this.$el. But this is undefined. There is no context.
How to get the element?

Replies

  • allanallan Posts: 61,716Questions: 1Answers: 10,108 Site admin

    this.$el is a very Vue way of looking at it :). I'm afraid we do not have an analouge of that.

    Part of the problem with accessing the cell in the renderer is that the cell might not have been created when the renderer is called!

    I would suggest using columns.createdCell if you want to append another element to the cell (and you don't want it taken account of in filtering / sorting).

    Allan

  • JanurajJanuraj Posts: 85Questions: 18Answers: 0

    Thanks Allan for the suggestion, will use createdCell

This discussion has been closed.