RequestTextCharCallback Function
Description
Callback function for requests expecting a character object.
Syntax
function(<TextChar> textChar)Examples
The following example demonstrates RequestTextCharCallback in a practical document-editing workflow. Callback function for requests expecting a character object.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function requestTextCharCallback(textChar) {
console.log("text char:", textChar);
}
function useRequestTextCharCallback(textChars) {
textChars.getItem({ x: 1440, y: 720 }, true, requestTextCharCallback, onTxError);
}