# RequestVerticalAlignmentCallback Function

> Callback function for requests expecting a vertical alignment value.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Function
- **Path:** DS Server > Reference > JavaScript API > RequestVerticalAlignmentCallback Function
- **273 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/requestverticalalignmentcallback/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/requestverticalalignmentcallback/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/requestverticalalignmentcallback/llms-full.txt

---

### Description

Callback function for requests expecting a vertical alignment value.

### Syntax

```javascript
function(<VerticalAlignment> alignment)
```

### Examples

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

```javascript
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);
}
```

---

## Nearby

- **Previous:** [RequestTrackedChangeCallback Function](https://docs.textcontrol.com/ds-server/reference/javascript/requesttrackedchangecallback/llms-full.txt)
- **Next:** [RequestViewModeCallback Function](https://docs.textcontrol.com/ds-server/reference/javascript/requestviewmodecallback/llms-full.txt)
