RequestObjectCallback Function
Description
Callback function for requests expecting arbitrary objects.
Syntax
function(<object> obj)Examples
The following example demonstrates RequestObjectCallback in a practical document-editing workflow. Callback function for requests expecting arbitrary objects.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function requestObjectCallback(obj) {
console.log("obj:", obj);
}
TXTextControl.documentSettings.getUserDefinedDocumentProperties(requestObjectCallback, onTxError);