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.
documentTarget The link target.
callback Optional. Receives the added document link or null if no link could be added.
errorCallback Optional. Is called when the operation failed with an error.