Javascript: TextViewGeneratorColors.resetDesktopColor Method
Description
Resets the text control's DesktopColor to its system dependent default value.
Syntax
<void> TextViewGeneratorColors.resetDesktopColor([<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates TextViewGeneratorColors.resetDesktopColor in a practical document-editing workflow. Resets the text control's DesktopColor to its system dependent default value.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.displayColors.resetDesktopColor(
function() {
console.log("reset desktop color completed.");
},
onTxError
);