Closed Masber closed 6 years ago
The reason is, when the render function is called, to draw the button inside the cell, the vue processing bit is over and done with, so adding vue tags and directives won't do any good because at that stage they are not processed anymore.
One way to go about it is to define a vue variable for the vue object , like so:
var vueApp = new Vue(.....
Then, instead of v-on:click , on the render function, you can do a normal javascript onclick and call the vueApp.method .
I know this isn't ideal.
Is there a way to put renderActionColumn inside Vue?
Nope. Maybe we could do something along the lines of making the render a vue component instead of taking a javascript function, that could possibly work, but not with the current version.
I am putting a button inside a cell and I would like to throw an alert when its pressed. I am using renderActionColumn to render the button with it's properties "v-on:click="showEditUserModal()"". However the method showEditUserModal is not executed after click.
Why is that?
My code: