almende / vis

⚠️ This project is not maintained anymore! Please go to https://github.com/visjs
7.85k stars 1.48k forks source link

Implement recurring events (similarly to the way the hidden dates are implemented?) #398

Closed ghost closed 7 years ago

ghost commented 9 years ago

How can I set the dates for a recurring event? I have an event which ran from September to July, every day Mon - Fri. Do I have add every single item manually in json or is there a better way?

josdejong commented 9 years ago

The timeline does not support recurring events, so you should generate your recurring evenst beforehand. You can use a library like moment-recur for this.

AlexDM0 commented 9 years ago

Hi,

Over the last year a lot of feature requests have been made. We have just introduced our new website which has a list of the requested features. We have placed this request on that list.

The list can be found here: http://visjs.org/featureRequests.html

An explaination of the new system can be found here: http://visjs.org/blog.html#New\ website\ for\ vis.js!

I would like to stress that this does not mean we abandon this request. Discussion here will continue if needed on this feature but we will close it to keep our Github issue page more of a bug-todo list.

Future feature requests will still be made here and then added to the website by us.

Regards,

Alex

mojoaxel commented 7 years ago

Reopening as Feature-Request issue (see #2114). Everybody: Please feel free to implement this!

yotamberk commented 7 years ago

Reoccurring items should be implemented by the user. I advise to do it using a loop with @josdejong suggestion and add a property for the item to indicate it's a reoccurring event (add an icon to the event using this property).

Closing this issue unless we are convinced this should be implemented on vis side

Jogai commented 7 years ago

Other existing libs that could help are @jakubroztocil's rrule @bunkat's later.

In my case I'm looking to port a solution that is currently using SyncFusion's scheduler which has the recurring part built in.

Jogai commented 6 years ago

There is a whole class made to support hiddenDates feature. It seems more logical to me to let this be handled by a dependency and expose it at some more points to support recurrence. Even the hiddenDates would be more flexible that way.