dhtmlx-gantt可以与其他组件库混合使用吗?比如与element-ui在一起使用?我试了下好像没有效果
Hello,
Please, ask the questions on the forum only in English!
Can dhtmlx-gantt be mixed with other component libraries? For example, use it with element-ui? I tried it and it didn’t seem to work
If you want to show custom elements inside Gantt, you can only render HTML elements. However, starting from the 7.1 version, it is possible to let React, Angular, or Vue render native components in the grid and additional task layers. To do that, you need to use the onrender
function:
https://docs.dhtmlx.com/gantt/desktop__specifying_columns.html#modifyingcellsafterrendering
https://docs.dhtmlx.com/gantt/api__gantt_addtasklayer.html
I don’t have an example for Vue.js, but here is a React demo with Material UI and Fluent UI buttons inside the grid:
https://files.dhtmlx.com/30d/a373fbf8959f1b7ac893608bf29cd862/reactive-gantt+gantt-instance+react-components+fluent-ui.zip