Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
Neon
WorkOS
Clerk
Convex
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
Neon
WorkOS
Clerk
Convex
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Table API Reference
Column API Reference
Row API Reference
Cell API Reference
Header API Reference
Features API Reference
Legacy API Reference
Enterprise
Features API Reference

TableOptions_RowExpanding

Interface: TableOptions_RowExpanding<TFeatures, TData>

Defined in: features/row-expanding/rowExpandingFeature.types.ts:37

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Properties

autoResetExpanded?

ts
optional autoResetExpanded: boolean;

Defined in: features/row-expanding/rowExpandingFeature.types.ts:44

Enable this setting to automatically reset the expanded state of the table when expanding state changes.


enableExpanding?

ts
optional enableExpanding: boolean;

Defined in: features/row-expanding/rowExpandingFeature.types.ts:48

Enable/disable expanding for all rows.


getIsRowExpanded()?

ts
optional getIsRowExpanded: (row) => boolean;

Defined in: features/row-expanding/rowExpandingFeature.types.ts:52

If provided, allows you to override the default behavior of determining whether a row is currently expanded.

Parameters

row

Row<TFeatures, TData>

Returns

boolean


getRowCanExpand()?

ts
optional getRowCanExpand: (row) => boolean;

Defined in: features/row-expanding/rowExpandingFeature.types.ts:56

If provided, allows you to override the default behavior of determining whether a row can be expanded.

Parameters

row

Row<TFeatures, TData>

Returns

boolean


manualExpanding?

ts
optional manualExpanding: boolean;

Defined in: features/row-expanding/rowExpandingFeature.types.ts:60

Enables manual row expansion. If this is set to true, getExpandedRowModel will not be used to expand rows and you would be expected to perform the expansion in your own data model. This is useful if you are doing server-side expansion.


onExpandedChange?

ts
optional onExpandedChange: OnChangeFn<ExpandedState>;

Defined in: features/row-expanding/rowExpandingFeature.types.ts:64

This function is called when the expanded table state changes. If a function is provided, you will be responsible for managing this state on your own. To pass the managed state back to the table, use the tableOptions.state.expanded option.


paginateExpandedRows?

ts
optional paginateExpandedRows: boolean;

Defined in: features/row-expanding/rowExpandingFeature.types.ts:68

If true expanded rows will be paginated along with the rest of the table (which means expanded rows may span multiple pages). If false expanded rows will not be considered for pagination (which means expanded rows will always render on their parents page. This also means more rows will be rendered than the set page size)