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
Note, that date paremeters of the `gantt.init` method are shortcuts for [start_date](api/config/start_date.md) and [end_date](api/config/end_date.md) configs.
37
+
Note that the date parameters of `init()`are shortcuts for the[start_date](api/config/start_date.md) and [end_date](api/config/end_date.md) configs.
38
38
The two code snippets below are equivalent to each other:
What these configs do is define and limit the displayed date range. Tasks that fall outside that specified range won't be displayed.
53
53
54
-
Using the date parameters of the `gantt.init` method, as well as [start_date](api/config/start_date.md) and [end_date](api/config/end_date.md) configs will cancel the
54
+
Using the date parameters of `init()`, as well as the [start_date](api/config/start_date.md) and [end_date](api/config/end_date.md) configs, will cancel the
55
55
[fit_tasks](api/config/fit_tasks.md) setting.
56
56
57
57
If you want the time scale to be dynamically adjusted according to the date range, you can either skip these parameters or [manage the time range dynamically](guides/configuring-time-scale.md#range).
58
58
59
59
:::note
60
-
This method resets custom layers added to the timeline area via the [addTaskLayer](api/method/addtasklayer.md) and [addLinkLayer](api/method/addlinklayer.md) methods. Therefore, you need to redefine these ones after calling the **gantt.init** method in order for custom layers to be displayed on a page.
60
+
This method resets custom layers added to the timeline area via the [`addTaskLayer()`](api/method/addtasklayer.md) and [`addLinkLayer()`](api/method/addlinklayer.md) methods. Therefore, you need to redefine them after calling `init()`for custom layers to be displayed on a page.
61
61
:::
62
62
63
63
### Related API
@@ -67,4 +67,3 @@ This method resets custom layers added to the timeline area via the [addTaskLaye
67
67
68
68
### Related Guides
69
69
-[dhtmlxGantt in Plain JS/HTML](guides/initializing-gantt-chart.md)
0 commit comments