# SelectableCallback

> _Since v1.3.0_

Callback that determines whether a specific row or cell can be selected.

Return `true` if the row/cell should be selectable, `false` otherwise.

```ts
type SelectableCallback = (row: T, rowIndex: number, column: ColumnConfig, colIndex: number) => boolean
```

#### Example

```ts
// Prevent selection of locked rows
isSelectable: (row) => row.status !== 'locked'

// Prevent selection of specific columns
isSelectable: (row, rowIndex, col) => col?.field !== 'id'

// Permission-based selection
isSelectable: (row) => userPermissions.canSelect(row)
```
