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