You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/config/start_date.md
+18-22Lines changed: 18 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,40 +15,37 @@ description: "sets the start value of the time scale"
15
15
### Example
16
16
17
17
~~~jsx
18
-
gantt.config.start_date=newDate(2018, 08, 10);
19
-
gantt.config.end_date=newDate(2018, 08, 20);
20
-
18
+
gantt.config.start_date=newDate(2027, 8, 10);
19
+
gantt.config.end_date=newDate(2027, 8, 20);
20
+
21
21
gantt.init("gantt_here");
22
22
~~~
23
23
24
24
### Details
25
25
26
26
:::note
27
-
To apply the **start_date** option, you must use it in pair with the [end_date](api/config/end_date.md) one.
27
+
To apply the `start_date` option, you must use it together with [end_date](api/config/end_date.md).
28
28
:::
29
29
30
-
- If both the **start_date** and **end_date** options are specified and you create a task that is outside the range, the task will disappear from the chart.
31
-
- Optional parameters of the [init](api/method/init.md) method can be used as initial values of [start_date](api/config/start_date.md) and [end_date](api/config/end_date.md).
30
+
- If both the [start_date](api/config/start_date.md) and [end_date](api/config/end_date.md) options are specified and you create a task outside that range, the task will disappear from the chart.
31
+
- Optional parameters of [`init()`](api/method/init.md) can be used as initial values of [start_date](api/config/start_date.md) and [end_date](api/config/end_date.md).
32
32
-[start_date](api/config/start_date.md) and [end_date](api/config/end_date.md) overwrite [fit_tasks](api/config/fit_tasks.md). If you want to use these settings together, you'll need to [manage the time scale from code](guides/configuring-time-scale.md#range).
0 commit comments