# resizable-columns

> javascript plugin to resize table columns

Latest version **1.0.4** (published 2019-03-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install resizable-columns
pnpm add resizable-columns
yarn add resizable-columns
bun add resizable-columns
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2019-03-09 |
| First published | 2018-10-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 415.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 38 |
| Author | chenjianbin |
| Maintainers | edmund_chen |
| Keywords | javascirpt, resizable-columns-table, resizable-columns, html, table resize, resizable columns, resizable |

## Links

- npm: https://www.npmjs.com/package/resizable-columns
- Repository: https://github.com/uso51984/resizable-columns-table
- Homepage: https://github.com/uso51984/resizable-columns-table#readme
- Issues: https://github.com/uso51984/resizable-columns-table/issues
- npm.io page: https://npm.io/package/resizable-columns

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2019-03-09
- 1.0.3 — 2018-10-15
- 1.0.2 — 2018-10-15
- 1.0.1 — 2018-10-15
- 1.0.0 — 2018-10-14

## README

### 在线demo
http://uso.oschina.io/resizable-colmuns-table/

### 安装
```
npm i resizable-columns
```

### 使用
```
import createColResizable from colResizeable

createColResizable(domElemTable, otions)
```

### api

| 成员 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| domElemTable | 设置可拖动的table | element | - |
| otions | 拖动的参数 | Object | 'https://uso.oschina.io/react-ueditor-demo/ueditor.all.js' |

options 可选

```
options = {
    liveDrag: true, // 是否实时拖动
    defaultMinWidth: 30, //默认没列最小宽度
    headerOnly: true, // 拖动竖线是否只有thead
    disabledColumns: [], //不能拖动的th
    onResizing: null, // 正在拖动callback
    onResized: null // 拖动结束callback
}
```
> 每列单独宽度需要在对应th加入 自定义属性 data-min-width="number", eg:  data-min-width="300"

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