简体   繁体   English

拆分任务功能在 Dhtmlx 甘特图的 React 版本中可用吗?

[英]Is Split Task functionality available in React Version of Dhtmlx Gantt Chart?

The problem i am facing is displaying more than one task in a same row.我面临的问题是在同一行中显示多个任务。 But the default structure of Gantt Chart is to show task in individual rows infront of task name.但是甘特图的默认结构是在任务名称前面的单独行中显示任务。 We have customize the structure and replaced task names ( left Columns of the Gantt Chart ) with the workers name.我们自定义了结构并用工人姓名替换了任务名称(甘特图的左列)。 Tasks assigned to each Worker should displayed in the same row as the the worker name.分配给每个工人的任务应显示在与工人姓名相同的行中。

There is a functionality available in Js version of Gantt chart but not sure about the react version of it.在 Js 版本的甘特图中有一个功能可用,但不确定它的反应版本。 In js one can access the instance of gantt chart and but in react you have to do everything with help of props.在 js 中可以访问甘特图的实例,但在反应中你必须在道具的帮助下做所有事情。

Unfortunately, split tasks functionality in React version of Dhtmlx Gantt chart is not available.遗憾的是,React 版本的 Dhtmlx 甘特图中的拆分任务功能不可用。

This functionality is available in the PRO version of JS dhtmlxGantt https://docs.dhtmlx.com/gantt/desktop__split_tasks.html .此功能在 JS dhtmlxGantt https://docs.dhtmlx.com/gantt/desktop__split_tasks.html的 PRO 版本中可用。 JS dhtmlxGantt can be used in react app. JS dhtmlxGantt 可以在 React 应用中使用。 To do this, you need to write a wrapper component.为此,您需要编写一个包装器组件。

Here is a demo and tutorial on how to do it: https://github.com/DHTMLX/react-gantt-demo https://dhtmlx.com/blog/create-react-gantt-chart-component-dhtmlxgantt/这是有关如何操作的演示和教程: https://github.com/DHTMLX/react-gantt-demo https://dhtmlx.com/blog/create-react-gantt-chart-component-dhtmlxgantt/

Here is the demo, with JS dhtmlxGantt split tasks in react app: https://files.dhtmlx.com/30d/22969d8959ddb7651919594cd28848fd/gantt-react+split.zip .这是演示,在 React 应用程序中使用 JS dhtmlxGantt 拆分任务: https://files.dhtmlx.com/30d/22969d8959ddb7651919594cd28848fd/gantt-react+split.zip

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM