Skip to content

Commit c66a336

Browse files
Merge pull request #76 from mlakatkou/GS-3316
[update] layout article
2 parents 05aa515 + 8987a3b commit c66a336

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

docs/api/config/layout.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ description: "specifies the layout object"
1616

1717
~~~jsx
1818
gantt.config.layout = {
19-
css: "gantt_container",
20-
rows:[
19+
css: "gantt_container",
20+
rows: [
2121
{
22-
cols: [
23-
{view: "grid", id: "grid", scrollX:"scrollHor", scrollY:"scrollVer"},
24-
{resizer: true, width: 1},
25-
{view: "timeline", id: "timeline", scrollX:"scrollHor", scrollY:"scrollVer"},
26-
{view: "scrollbar", scroll: "y", id:"scrollVer"}
27-
]
28-
},
29-
{view: "scrollbar", scroll: "x", id:"scrollHor", height:20}
30-
]
22+
cols: [
23+
{ view: "grid", id: "grid", scrollX: "scrollHor", scrollY: "scrollVer" },
24+
{ resizer: true, width: 1 },
25+
{ view: "timeline", id: "timeline", scrollX: "scrollHor", scrollY: "scrollVer" },
26+
{ view: "scrollbar", scroll: "y", id: "scrollVer" }
27+
]
28+
},
29+
{ view: "scrollbar", scroll: "x", id: "scrollHor", height: 20 }
30+
]
3131
};
3232

3333
gantt.init("gantt_here");
@@ -36,7 +36,7 @@ gantt.init("gantt_here");
3636
### Details
3737

3838
:::note
39-
Note that you should specify the configuration of layout before Gantt initialization. If you make changes in the layout, you need to refresh it using [resetLayout](api/method/resetlayout.md).
39+
Note that you should specify the layout configuration before Gantt initialization. If you make changes to the layout, you need to refresh it using [`resetLayout()`](api/method/resetlayout.md).
4040
:::
4141

4242
### Related API
@@ -46,4 +46,3 @@ Note that you should specify the configuration of layout before Gantt initializa
4646
- [Gantt Layout](guides/layout-config.md)
4747
- [How-tos](guides/how-to.md#how-to-toggle-gridchart) (read how to toggle grid/chart)
4848
- [How-tos](guides/how-to.md#how-to-toggle-the-resource-view) (read how to toggle the resource view)
49-

0 commit comments

Comments
 (0)