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