是否支持与 ant design集成

如何在灯箱中引入ant desing 的组件进行展示呢,自定义这样不利于拓展,可以使用第三方组件像ant design这样的内容直接引入并且展示吗?
我自己尝试会报错,提示底层的部分代码

Hello,
Please, ask the questions only in English.

Right now, you can only show HTML elements inside Gantt. There is no way to render React elements or other components. In the future, the dev team will add a way to do that.

If Ant design can return pure HTML elements, you can show them in the lightbox by creating custom sections:
https://docs.dhtmlx.com/gantt/desktop__custom_editor.html#customthirdpartyeditor
Here are examples of the third-party components inside Gantt:
https://docs.dhtmlx.com/gantt/samples/05_lightbox/14_jquery_multiselect.html
http://snippet.dhtmlx.com/248e7a34f
http://snippet.dhtmlx.com/5/759755a2a

Another way is to create a custom lightbox:
https://docs.dhtmlx.com/gantt/desktop__custom_edit_form.html
Here are examples:
https://snippet.dhtmlx.com/5/786a25548
http://snippet.dhtmlx.com/5/12f0ed066
https://snippet.dhtmlx.com/5/8f5d80c99

2 Likes