Javascript: TXTextControl.getTextBackColor Method
Description
Gets the background color for the text.
Syntax
<void> TXTextControl.getTextBackColor(<RequestColorStringCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives whether the background color for the text. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates TXTextControl.getTextBackColor in a practical document-editing workflow. It gets the background color for the text.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.getTextBackColor(
function(color) {
console.log("get text back color result:", color);
},
onTxError
);