williamtroup / Calendar.js

📅 A javascript drag & drop event calendar, that is fully responsive and compatible with all modern browsers.
https://calendar-js.com
MIT License
409 stars 30 forks source link

Timeline View navigation #241

Open thapachaki opened 2 weeks ago

thapachaki commented 2 weeks ago

Hello! The library is great, a lot of features! I have a question: is it posible to use functions like "moveToPreviousMonth()", "moveToNextMonth()", or a function to move to certain date in the Timeline View? I have tried but with no luck. Thanks in advance, William!

williamtroup commented 2 weeks ago

Hello!

This is planned for a future upgrade. I'm currently working on moving the project over to TypeScript, so I can have a more manageable code base, and allow greater integration into other frameworks. Once this is done, the next phase is features like this. For example, being able to specify your default view, all views updating when public functions are called.

For the moment though, the Month view is the source of truth for the project. All views open using the Month date as the core date to display.

Thanks for using the project and stay tuned! Don't forget to like and share the project as well :)

Thanks

Will

thapachaki commented 2 weeks ago

Thank you, Will! However, I found a solution using JQuery for anyone who need it: $('.jump-to-date').find('input[type="date"]').val('2024-10-03'); // date in SQL format $('.go').trigger('click');

Greetings!