RequestFrameCallback Function
Description
Callback function for requests expecting a Frame value.
Syntax
function(<Frame> frame)Examples
The following example demonstrates RequestFrameCallback in a practical document-editing workflow. Callback function for requests expecting a Frame value.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function requestFrameCallback(frame) {
console.log("frame:", frame);
}
TXTextControl.paragraphFormat.getFrame(requestFrameCallback, onTxError);