# Javascript: TableRow.getIsHeader Method

> Gets a value specifying whether the table row is part of the table's header.

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

---

### Description

Gets a value specifying whether the table row is part of the table's header.

### Syntax

```javascript
<void> TableRow.getIsHeader(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives whether the table row is part of the table's header. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `TableRow.getIsHeader` in a practical document-editing workflow. It gets a value specifying whether the table row is part of the table's header.

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

function inspectIsHeader(tableRow) {
    tableRow.getIsHeader(
        function(result) {
            if (result) {
                console.log("get is header is available.");
            } else {
                console.warn("get is header is not available in the current document state.");
            }
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: TableRow.getCellFormat Method](https://docs.textcontrol.com/ds-server/reference/javascript/tablerow/getcellformat-method/llms-full.txt)
- **Next:** [Javascript: TableRow.getMinimumHeight Method](https://docs.textcontrol.com/ds-server/reference/javascript/tablerow/getminimumheight-method/llms-full.txt)
