Javascript: StatusBarViewGeneratorColors.resetForeColor Method
Description
Resets the status bar's foreColor to its system dependent default value.
Syntax
<void> StatusBarViewGeneratorColors.resetForeColor([<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 StatusBarViewGeneratorColors.resetForeColor in a practical document-editing workflow. Resets the status bar's foreColor to its system dependent default value.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function resetForeColor(statusBarViewGeneratorColors) {
statusBarViewGeneratorColors.resetForeColor(
function() {
console.log("reset fore color completed.");
},
onTxError
);
}