Javascript: TXTextControl.getStatusBarColor Method
Description
Returns the background color of the status bar by calling a provided callback function.
Syntax
<void> TXTextControl.getStatusBarColor(<RequestStringCallback> callback)Parameters
| Parameter | Description |
|---|---|
| callback | Is called with the status bar color as a hexadecimal CSS color string (e. g. "#FFABC3") as soon as the information has been retrieved from the server. |
Examples
The following example demonstrates TXTextControl.getStatusBarColor in a practical document-editing workflow. It returns the background color of the status bar by calling a provided callback function.
TXTextControl.getStatusBarColor(
function(result) {
console.log("get status bar color result:", result);
}
);