--- id: getExpandedRowModel title: getExpandedRowModel --- # ~~Function: getExpandedRowModel()~~ ```ts function getExpandedRowModel(): RowModelFactory; ``` Defined in: [react-table/src/useLegacyTable.ts:91](https://github.com/TanStack/table/blob/main/packages/react-table/src/useLegacyTable.ts#L91) ## Type Parameters ### TData `TData` *extends* `RowData` ## Returns [`RowModelFactory`](../type-aliases/RowModelFactory.md)\<`TData`\> ## Deprecated Use `createExpandedRowModel()` with the new `useTable` hook instead. This is a stub function for v8 API compatibility with `useLegacyTable`. It acts as a marker to enable the expanded row model.