How can I invoke function in 'title'?
awakelee opened this issue · comments
I think you need to replace component from gantt that is responsible for this.
GanttElastic.components... = your modified one
You can also change route dynamically
https://github.com/neuronetio/gantt-elastic/blob/master/examples/vue.edit.html#L317
just add event and push route route.push
I define the click function in events, but in the function scope vue-router doesn't work.
I'm guessing, maybe try to bind this function to proper vue instance after it was created like
created(){
/*...*/.events.click = /*...*/.events.click.bind(this);
}
and inside click function use something like this.$router.push('...')