Javascript: InputPosition.getInactiveMarker Method
Description
Gets whether the current text input position when the TextControl is inactive and the blinking caret is not visible.
Syntax
<void> InputPosition.getInactiveMarker(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives whether the current text input position when the TextControl is inactive and the blinking caret is not visible. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates InputPosition.getInactiveMarker in a practical document-editing workflow. It gets whether the current text input position when the TextControl is inactive and the blinking caret is not visible.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.inputPosition.getInactiveMarker(
function(result) {
if (result) {
console.log("get inactive marker is available.");
} else {
console.warn("get inactive marker is not available in the current document state.");
}
},
onTxError
);