in the timeline is shown a red line the day Today. How can I, when I click on Today, show two days back?
Current → click Today button
left 08.11.2022 (current today red line), 09.11.2022, 10.11.2022 etc.
New: → click Today button
left 06.11.2022, 07.11.2022, 08.11.2022 (current today red line), 09.11.2022, 10.11.2022 etc.
If it’s not you case, could you please provide more details on your config, or reproduce the issue in the demo above:
open the demo => reproduce the issue => click the “Save” button => send me the new link.
thanks for your message. I used your code and it works only partially correct.
x_start: -2, is -2 days for me, because additionally two days before today must be displayed. If I click on the “Next” button one day further is displayed.
If I click on the “Back” button, it jumps three days back. But it should only jump back one day.
Another problem - when I create “x_start: -2”:
I click on “Today” today’s date is displayed two days from the left - all correct.
If I click on “Next” the days do not move into the future. I cannot reach a date e.g. in the next year with this setting. Why not?
I can suggest the following solution. Please try when you click on the “Today” button to change the display date of the view (using the onBeforeTodayDisplayed handler), this can be done using the setCurrentView method: