# Javascript: TableRow.setMinimumHeight Method

> Sets the minimum height, in twips, of the table row. The table row is formatted with this height if the text is smaller. Otherwise the row grows as necessary. If the property value is zero, the table row's height is always determined through the containing text.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TableRow.setMinimumHeight Method
- **443 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tablerow/setminimumheight-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tablerow/setminimumheight-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tablerow/setminimumheight-method/llms-full.txt

---

### Description

Sets the minimum height, in twips, of the table row. The table row is formatted with this height if the text is smaller. Otherwise the row grows as necessary. If the property value is zero, the table row's height is always determined through the containing text.

### Syntax

```javascript
<void> TableRow.setMinimumHeight(<number> minimumHeight, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| minimumHeight | The row's minimum height in twips. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `TableRow.setMinimumHeight` in a practical document-editing workflow. It sets the minimum height, in twips, of the table row. The table row is formatted with this height if the text is smaller. Otherwise the row grows as necessary. If the property value is zero, the table row's height is always determined through the containing text.

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

function configureMinimumHeight(tableRow) {
    tableRow.setMinimumHeight(
        720,
        function() {
            console.log("set minimum height completed.");
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: TableRow.setIsHeader Method](https://docs.textcontrol.com/ds-server/reference/javascript/tablerow/setisheader-method/llms-full.txt)
- **Next:** [TableRowCollection Object](https://docs.textcontrol.com/ds-server/reference/javascript/tablerowcollection/llms-full.txt)
