File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,22 +17,22 @@ description: "adds a new dependency link"
1717- ` link ` - (required) * object* - the link object
1818
1919### Returns
20- - ` id` - (string | number) - the link's id
20+ - ` id ` - (string | number) - the link's ID
2121
2222### Example
2323
2424~~~ jsx
25- var linkId = gantt .addLink ({
26- id: 1 ,
27- source: 1 ,
28- target: 2 ,
29- type: gantt .config .links .finish_to_start
25+ const linkId = gantt .addLink ({
26+ id: 1 ,
27+ source: 1 ,
28+ target: 2 ,
29+ type: gantt .config .links .finish_to_start
3030});
3131~~~
3232
3333### Details
3434
35- The method invokes the [ onBeforeLinkAdd] ( api/event/onbeforelinkadd.md ) and [ onAfterLinkAdd] ( api/event/onafterlinkadd.md ) events.
35+ The method invokes the [ ` onBeforeLinkAdd ` ] ( api/event/onbeforelinkadd.md ) and [ ` onAfterLinkAdd ` ] ( api/event/onafterlinkadd.md ) events.
3636
3737### Related API
3838- [ updateLink] ( api/method/updatelink.md )
@@ -41,4 +41,3 @@ The method invokes the [onBeforeLinkAdd](api/event/onbeforelinkadd.md) and [onAf
4141
4242### Related Guides
4343- [ Adding/Updating/Deleting Links] ( guides/crud-dependency.md )
44-
You can’t perform that action at this time.
0 commit comments