Javascript: StatusBarViewGeneratorColors.resetSeparatorColorDark Method
Description
Obsolete. This method will be removed in one of the next versions. Since version 33.0 the status bar doesn't support gradients in separators anymore. Resets the status bar's separatorColorDark to its system dependent default value.
Syntax
<void> StatusBarViewGeneratorColors.resetSeparatorColorDark([<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.resetSeparatorColorDark in a practical document-editing workflow. Obsolete. This method will be removed in one of the next versions. Since version 33.0 the status bar doesn't support gradients in separators anymore. Resets the status bar's separatorColorDark to its system dependent default value.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function resetSeparatorColorDark(statusBarViewGeneratorColors) {
statusBarViewGeneratorColors.resetSeparatorColorDark(
function() {
console.log("reset separator color dark completed.");
},
onTxError
);
}