Javascript 向 jQuery Fullcalendar 添加资源视图/甘特图

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3269117/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-23 03:57:44  来源:igfitidea点击:

Adding a Resource View/Gannt chart to jQuery Fullcalendar

javascriptjqueryjquery-pluginscalendarfullcalendar

提问by Tim

I am using jQuery Fullcalendarand if you're not using it I suggest you do too because it is absolutely fantastic at what it does!

我正在使用jQuery Fullcalendar,如果您不使用它,我建议您也使用它,因为它的功能绝对棒极了!

However to be reallyuseful to me and my project (and many others) I honestly believe it needs a resource/gannt view.

然而,为了对我和我的项目(以及许多其他项目)真正有用,我真的相信它需要一个资源/甘特视图。

Not a problem one would think... until you look under the hood of jQuery FullCalendar and see that the way it generates it's views is not for javascript developer wannabes... ie me.

没有人会想到的问题...直到您深入了解 jQuery FullCalendar 的引擎盖并发现它生成视图的方式不适合 javascript 开发人员的崇拜者...即我。

Having realised this is out of my league I had to go searching elsewhere looking for any calendar/scheduler that will provide a resource view.

意识到这超出了我的能力范围后,我不得不去其他地方寻找任何可以提供资源视图的日历/调度程序。

Here are three proprietary calendars that promise this feature.

以下是承诺此功能的三个专有日历。

  1. http://java.daypilot.org/
  2. http://www.dhtmlx.com/docs/products/dhtmlxScheduler/index.shtml
  3. http://web2cal.com/ajaxeventscalendar/calendar-demo/912-premium-demo/157-scheduler-view
  1. http://java.daypilot.org/
  2. http://www.dhtmlx.com/docs/products/dhtmlxScheduler/index.shtml
  3. http://web2cal.com/ajaxeventscalendar/calendar-demo/912-premium-demo/157-scheduler-view

Unfortunately both daypilotand dhtmlxschedulerlack the clean and clear interface that FullCalendar achieves so well and web2caljust looks and feels unfinished and is still in Beta.

不幸的是,daypilotdhtmlxscheduler 都缺乏 FullCalendar 实现的干净清晰的界面,而web2cal只是看起来和感觉未完成,仍处于 Beta 阶段。

Alternatively I was wondering if anyone has any ideas on how I could integrate a jQuery Gannt chart with jquery fullcalendar.

或者,我想知道是否有人对如何将 jQuery Gannt 图表与 jquery fullcalendar 集成有任何想法。

I have found a few projects that look promising

我发现了一些看起来很有希望的项目

I have looked into how fullcalendar generates its views and so far have not had any success in extending this to provide a container for one of these gannt charts to 'sit within' fullcalendar and be triggered by its buttons.

我已经研究了 fullcalendar 如何生成它的视图,到目前为止还没有成功扩展它来为这些 gannt 图表之一提供一个容器,以“位于”fullcalendar 内并由其按钮触发。

This seems to be one of the more popular feature requests with many people asking for it on the official issue tracker

这似乎是更受欢迎的功能请求之一,许多人在官方问题跟踪器上要求它

http://code.google.com/p/fullcalendar/issues/detail?id=150&colspec=ID%20Type%20Status%20Milestone%20Summary%20Stars

http://code.google.com/p/fullcalendar/issues/detail?id=150&colspec=ID%20Type%20Status%20Milestone%20Summary%20Stars

So I am left at a cross roads. I could pay for a half baked proprietary solution that has minimal to no community support or I can try and find a way of getting a resource view inside of jquery Fullcalendar by asking the people who really know jQuery.

所以我被留在了一个十字路口。我可以为一个半成熟的专有解决方案付费,该解决方案几乎没有社区支持,或者我可以通过询问真正了解 jQuery 的人来尝试找到一种在 jquery Fullcalendar 中获取资源视图的方法。

I would happily donate the funds saved from using a proprietary solution to the developer of Fullcalendar.

我很乐意将使用专有解决方案节省的资金捐赠给 Fullcalendar 的开发人员。

The developer of FullCalendar seems to have a lot on his plate and I would like to again thank him for this truly amazing calendar.

FullCalendar 的开发人员似乎有很多事情要做,我要再次感谢他提供了这个真正了不起的日历。

I hope someone can share a solution with us!

我希望有人可以与我们分享解决方案!

Tim

蒂姆

回答by Desirea Herrera

Just to update what has been done for this idea:

只是为了更新为这个想法所做的工作:

https://github.com/jarnokurlin/fullcalendar

https://github.com/jarnokurlin/fullcalendar

It's now a fork of fullcalendar.

它现在是 fullcalendar 的一个分支。

回答by Richard L?wenstr?m

For those searching for a resource view based on v2.1.1.

对于那些搜索基于 v2.1.1 的资源视图的人。

Here is a forkimplementing it that will hopefully be merged into fullcalendar at some point.

这是一个实现它的分支,有望在某个时候合并到 fullcalendar 中。

回答by Tomás Escamez

I know it's a pretty old question, but I was looking for something like that a few weeks ago and I couldn't find anything here. So, what I'm using is Kendo Scheduler. It has a horizontal grouping, vertical grouping, timeline and some other interesting things like bind against SignalR.

我知道这是一个很老的问题,但几周前我一直在寻找类似的东西,但在这里找不到任何东西。所以,我使用的是Kendo Scheduler。它有一个水平分组、垂直分组、时间线和一些其他有趣的东西,比如绑定到 SignalR。

Moreover, FullCalendar announcementthat it will be a Resource/Timeline viewsoon. But probably it will be released under a commercial license.

此外,FullCalendar宣布它将很快成为资源/时间线视图。但它可能会在商业许可下发布。

回答by Nedudi

There is a https://dhtmlx.com/docs/products/dhtmlxGantt/which has a resource view as well. You can integrate it with full calendar. It's quite simple.

还有一个https://dhtmlx.com/docs/products/dhtmlxGantt/也有资源视图。您可以将其与完整日历集成。这很简单。

回答by Ari Maniatis

As far as what StackOverflow users can offer you as an answer, this is as close as you'll ever get:

就 StackOverflow 用户可以为您提供的答案而言,这是您所得到的最接近的:

http://code.google.com/p/fullcalendar/issues/detail?id=490

http://code.google.com/p/fullcalendar/issues/detail?id=490

There is an open task and at the bottom are some work-in-progress examples of extensions to fullcalendar to achieve what you want. Please offer to contribute or clean up the code there to get it merged into the mainstream fullcalendar project.

有一个开放的任务,底部是一些正在进行的扩展 fullcalendar 的示例,以实现您想要的。请提供贡献或清理那里的代码,以将其合并到主流的 fullcalendar 项目中。