Adds a new document link to the collection.
<void> DocumentLinkCollection.add(<string> text, <DocumentTarget> documentTarget, [<RequestDocumentLinkCallback> callback], [<ErrorCallback> errorCallback])
Parameter | Description |
---|---|
text | Visible text of the link. |
document |
The link target. |
callback | Optional. Receives the added document link or null if no link could be added. |
error |
Optional. Is called when the operation failed with an error. |