vue onclick useless
Hello,
If you want to add a button to the column in the grid, there are several ways to do it. One of the option is to use onTaskClick
event to track clicks on your button. There is an article:
https://docs.dhtmlx.com/gantt/api__gantt_ontaskclick_event.html
Please check the example of how it might be implemented:
https://snippet.dhtmlx.com/3yrfvu1d
Another option is to use onrender
function in the column configuration that will help you to modify the grid cell with your button after rendering. There is an article:
https://docs.dhtmlx.com/gantt/desktop__specifying_columns.html#modifyingcellsafterrendering
Using the Vue code, you can attach onclick
handler to your button.
Please check the simplified demo with onrender
function:
https://files.dhtmlx.com/30d/ca859d707d51973fe1adf4629a5c0358/vue+onrender_button.zip
If you meant something different, please clarify your question.