Adds a new document target to the collection.

<void> DocumentTargetCollection.add(<string> targetName, [<RequestDocumentTargetCallback> callback], [<ErrorCallback> errorCallback])

Parameters

Parameter Description
targetName The target's name.
callback Optional. Receives the added document target or null if no target could be added.
errorCallback Optional. Is called when the operation failed with an error.