# datatables.net-fixedcolumns

> FixedColumns for DataTables

Latest version **6.1.2** (published 2026-10-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install datatables.net-fixedcolumns
pnpm add datatables.net-fixedcolumns
yarn add datatables.net-fixedcolumns
bun add datatables.net-fixedcolumns
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 6.1.2 |
| Published | 2026-10-30 |
| First published | 2015-10-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 84.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 61 |
| Author | SpryMedia Ltd |
| Maintainers | datatables |
| Keywords | FixedColumns, Datatables, table, filter, sort |

## Links

- npm: https://www.npmjs.com/package/datatables.net-fixedcolumns
- Repository: https://github.com/DataTables/FixedColumns
- Homepage: https://datatables.net
- Issues: https://datatables.net/forums
- npm.io page: https://npm.io/package/datatables.net-fixedcolumns

## Dependencies (1)

- [datatables.net](https://npm.io/package/datatables.net.md) ^3.1

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 6.1.2 (latest) — 2026-10-30
- 6.0.0-beta.1 (beta) — 2026-04-07
- 4.3.1 (dt1-compat) — 2024-02-16
- 6.1.1 — 2026-09-25
- 6.1.0 — 2026-09-22
- 6.0.0 — 2026-07-24
- 5.0.5 — 2025-09-09
- 5.0.4 — 2024-10-23
- 5.0.3 — 2024-10-04
- 5.0.2 — 2024-09-25
- 5.0.0 — 2024-02-16
- 4.3.0 — 2023-07-04
- 4.2.2 — 2023-03-10
- 4.2.1 — 2022-11-07
- 4.2.0 — 2022-11-07
- … 16 more at https://npm.io/package/datatables.net-fixedcolumns/versions

## README

# FixedColumns

When making use of DataTables' horizontal scrolling feature (`scrollX`), you may wish to fix the left or right most columns in place. This extension for DataTables provides exactly this option (for non-scrolling tables, please use the FixedHeader extension, which can fix the header and footer).


# Installation

To use FixedColumns the primary way to obtain the software is to use the [DataTables downloader](//datatables.net/download). You can also include the individual files from the [DataTables CDN](//cdn.datatables.net). See the [documentation](http://datatables.net/extensions/fixedcolumns/) for full details.

## NPM and Bower

If you prefer to use a package manager such as NPM or Bower, distribution repositories are available with software built from this repository under the name `datatables.net-fixedcolumns`. Styling packages for Bootstrap, Foundation and other styling libraries are also available by adding a suffix to the package name.

Please see the DataTables [NPM](//datatables.net/download/npm) and [Bower](//datatables.net/download/bower) installation pages for further information. The [DataTables installation manual](//datatables.net/manual/installation) also has details on how to use package managers with DataTables.


# Basic usage

FixedColumns is initialised using the `fixedColumns` option in the DataTables constructor - a simple boolean `true` will enable the feature. Further options can be specified using this option as an object - see the documentation for details. DataTables' scrolling options should also be enabled to use this feature.

Example:

```js
$(document).ready(function() {
	var table = $('#example').DataTable( {
		scrollY:        "300px",
		scrollX:        true,
		scrollCollapse: true,
		paging:         false,
		fixedColumns:   true
	} );
} );
```


# Documentation / support

* [Documentation](https://datatables.net/extensions/fixedcolumns/)
* [DataTables support forums](http://datatables.net/forums)


# GitHub

If you fancy getting involved with the development of FixedColumns and help make it better, please refer to its [GitHub repo](https://github.com/DataTables/FixedColumns).

---
_Source: https://npm.io/package/datatables.net-fixedcolumns · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
