Hello All,
when I click the Next button, the next 21 days are displayed. How can I, when I click the Next button, go only one day further, instead of the 21 days. The overview should continue to show 21 days - from 01.11.22 to 21.11.22 → click Next button → display from 02.11.22 to 22.11.22.
And the Back button should go back only one day.
Does anyone have an idea?
THANKS
Hi,
If I understand you correctly, you are using the “timeline” view. If so, you can set the x_length
parameter so that when you click on the “Next” button, the step is 1 day. It might look something like this:
scheduler.createTimelineView({
name: "timeline",
x_unit: "hour",
x_date: "%H:%i",
x_step: 12,
x_size: 42,
x_length: 2,
event_dy: 60,
resize_events:false,
y_unit: sections,
y_property: "section_id",
render: "bar",
second_scale:{
x_unit: "day",
x_date: "%M%d"
}
});
Please see an example: https://snippet.dhtmlx.com/ftythcwi