DS Server

RequestVerticalAlignmentCallback Function

Function

Description

Callback function for requests expecting a vertical alignment value.

Syntax

function(<VerticalAlignment> alignment)

Examples

The following example demonstrates RequestVerticalAlignmentCallback in a practical document-editing workflow. Callback function for requests expecting a vertical alignment value.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function requestVerticalAlignmentCallback(alignment) {
    console.log("alignment:", alignment);
}

function useRequestVerticalAlignmentCallback(tableCellFormat) {
    tableCellFormat.getVerticalAlignment(requestVerticalAlignmentCallback, onTxError);
}