首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何安装dhtmlx

如何安装dhtmlx
EN

Stack Overflow用户
提问于 2021-10-01 14:20:23
回答 1查看 37关注 0票数 0

如何安装dhtmlx gantt

代码语言:javascript
复制
"dhtmlx-gantt": "^5.1.0"

我正在开发一个spfx的webpart部件。require('dhtmlx');我正在使用这行代码。

EN

回答 1

Stack Overflow用户

发布于 2021-12-03 11:58:16

我在GitHub上找到了这个Sharepoint演示:

https://github.com/kmosti/spfx-gantt

在这里,通过以下方式导入甘特图:

代码语言:javascript
复制
require("gantt");

https://github.com/kmosti/spfx-gantt/blob/master/src/webparts/ganttChart/components/GanttChart.tsx#L28

我不熟悉Sharepoint,因此,我不能建议您是否需要做其他事情。

官方文档介绍了如何成功连接DHTMLX Gantt的各种方法:

https://docs.dhtmlx.com/gantt/desktop__initializing_gantt_chart.html

对于React,通常需要这样导入Gantt:

代码语言:javascript
复制
import { gantt } from 'dhtmlx-gantt';
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69407443

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档