# UpdateTableHeadingsOptions

typedef

Options for the [`setHeadingRowsCount`](module_table_tableutils-TableUtils.md#function-setHeadingRowsCount) and [`setHeadingColumnsCount`](module_table_tableutils-TableUtils.md#function-setHeadingColumnsCount) methods.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tableutils.ts#L1475)

<a id="properties">

## Properties

<a id="member-autoExpand">

### `autoExpand?: boolean`

If set to `true`, it will check if the following rows/columns look like a header and expand the heading section.

This option has no effect if [`TableCellPropertiesEditing`](module_table_tablecellproperties_tablecellpropertiesediting-TableCellPropertiesEditing.md) is not loaded.

<a id="member-resetFormerHeadingCells">

### `resetFormerHeadingCells?: boolean`

If set to `true`, it will check if the rows/columns that are no longer in the heading section should be updated to body cells.

This option has no effect if [`TableCellPropertiesEditing`](module_table_tablecellproperties_tablecellpropertiesediting-TableCellPropertiesEditing.md) is not loaded.

<a id="member-updateCellType">

### `updateCellType?: boolean`

If set to `false` it will only update the `headingRows`/`headingColumns` attribute without updating the cell types in the table.

This option has no effect if [`TableCellPropertiesEditing`](module_table_tablecellproperties_tablecellpropertiesediting-TableCellPropertiesEditing.md) is not loaded.

#### Value

`object`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
