# Column_Core

# Interface: Column\_Core\<TFeatures, TData, TValue\>

Defined in: [types/Column.ts:26](https://github.com/TanStack/table/blob/main/packages/table-core/src/types/Column.ts#L26)

## Extends

- [`Column_Column`](Column_Column.md)\<`TFeatures`, `TData`, `TValue`\>

## Type Parameters

### TFeatures

`TFeatures` *extends* [`TableFeatures`](TableFeatures.md)

### TData

`TData` *extends* [`RowData`](../type-aliases/RowData.md)

### TValue

`TValue` = `unknown`

## Properties

### accessorFn?

```ts
optional accessorFn: AccessorFn<TData, TValue>;
```

Defined in: [core/columns/coreColumnsFeature.types.ts:15](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/columns/coreColumnsFeature.types.ts#L15)

The resolved accessor function to use when extracting the value for the column from each row. Will only be defined if the column def has a valid accessor key or function defined.

#### Inherited from

[`Column_Column`](Column_Column.md).[`accessorFn`](Column_Column.md#accessorfn)

***

### columnDef

```ts
columnDef: ColumnDef<TFeatures, TData, TValue>;
```

Defined in: [core/columns/coreColumnsFeature.types.ts:19](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/columns/coreColumnsFeature.types.ts#L19)

The original column def used to create the column.

#### Inherited from

[`Column_Column`](Column_Column.md).[`columnDef`](Column_Column.md#columndef)

***

### columns

```ts
columns: Column<TFeatures, TData, TValue>[];
```

Defined in: [core/columns/coreColumnsFeature.types.ts:23](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/columns/coreColumnsFeature.types.ts#L23)

The child column (if the column is a group column). Will be an empty array if the column is not a group column.

#### Inherited from

[`Column_Column`](Column_Column.md).[`columns`](Column_Column.md#columns)

***

### depth

```ts
depth: number;
```

Defined in: [core/columns/coreColumnsFeature.types.ts:27](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/columns/coreColumnsFeature.types.ts#L27)

The depth of the column (if grouped) relative to the root column def array.

#### Inherited from

[`Column_Column`](Column_Column.md).[`depth`](Column_Column.md#depth)

***

### getFlatColumns()

```ts
getFlatColumns: () => Column<TFeatures, TData, TValue>[];
```

Defined in: [core/columns/coreColumnsFeature.types.ts:53](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/columns/coreColumnsFeature.types.ts#L53)

Returns the flattened array of this column and all child/grand-child columns for this column.

#### Returns

[`Column`](../type-aliases/Column.md)\<`TFeatures`, `TData`, `TValue`\>[]

#### Inherited from

[`Column_Column`](Column_Column.md).[`getFlatColumns`](Column_Column.md#getflatcolumns)

***

### getLeafColumns()

```ts
getLeafColumns: () => Column<TFeatures, TData, TValue>[];
```

Defined in: [core/columns/coreColumnsFeature.types.ts:57](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/columns/coreColumnsFeature.types.ts#L57)

Returns an array of all leaf-node columns for this column. If a column has no children, it is considered the only leaf-node column.

#### Returns

[`Column`](../type-aliases/Column.md)\<`TFeatures`, `TData`, `TValue`\>[]

#### Inherited from

[`Column_Column`](Column_Column.md).[`getLeafColumns`](Column_Column.md#getleafcolumns)

***

### id

```ts
id: string;
```

Defined in: [core/columns/coreColumnsFeature.types.ts:34](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/columns/coreColumnsFeature.types.ts#L34)

The resolved unique identifier for the column resolved in this priority:
   - A manual `id` property from the column def
   - The accessor key from the column def
   - The header string from the column def

#### Inherited from

[`Column_Column`](Column_Column.md).[`id`](Column_Column.md#id)

***

### parent?

```ts
optional parent: Column<TFeatures, TData, TValue>;
```

Defined in: [core/columns/coreColumnsFeature.types.ts:38](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/columns/coreColumnsFeature.types.ts#L38)

The parent column for this column. Will be undefined if this is a root column.

#### Inherited from

[`Column_Column`](Column_Column.md).[`parent`](Column_Column.md#parent)

***

### table

```ts
table: Table_Internal<TFeatures, TData>;
```

Defined in: [core/columns/coreColumnsFeature.types.ts:42](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/columns/coreColumnsFeature.types.ts#L42)

Reference to the parent table instance.

#### Inherited from

[`Column_Column`](Column_Column.md).[`table`](Column_Column.md#table)
