RequestHorizontalAlignmentCallback Function
Description
Callback function for requests expecting a horizontal alignment value.
Syntax
function(<HorizontalAlignment> alignment)Examples
The following example demonstrates RequestHorizontalAlignmentCallback in a practical document-editing workflow. Callback function for requests expecting a horizontal alignment value.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function requestHorizontalAlignmentCallback(alignment) {
console.log("alignment:", alignment);
}
function useRequestHorizontalAlignmentCallback(frameBase) {
frameBase.getAlignment(requestHorizontalAlignmentCallback, onTxError);
}