# table/tablecolumnresize/constants

module

<a id="constants">

## Constants

<a id="constant-COLUMN_MIN_WIDTH_AS_PERCENTAGE">

### `COLUMN_MIN_WIDTH_AS_PERCENTAGE: 5`

The minimum column width given as a percentage value. Used in situations when the table is not yet rendered, so it is impossible to calculate how many percentage of the table width would be [minimum column width in pixels](#constant-COLUMN_MIN_WIDTH_IN_PIXELS).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablecolumnresize/constants.ts#L16)

<a id="constant-COLUMN_MIN_WIDTH_IN_PIXELS">

### `COLUMN_MIN_WIDTH_IN_PIXELS: 40`

The minimum column width in pixels when the maximum table width is known. This value is an equivalent of `10%` of the default editor width (600px).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablecolumnresize/constants.ts#L24)

<a id="constant-COLUMN_RESIZE_DISTANCE_THRESHOLD">

### `COLUMN_RESIZE_DISTANCE_THRESHOLD: 3`

The distance in pixels that the mouse has to move to start resizing the column.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablecolumnresize/constants.ts#L38)

<a id="constant-COLUMN_WIDTH_PRECISION">

### `COLUMN_WIDTH_PRECISION: 2`

Determines how many digits after the decimal point are used to store the column width as a percentage value.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablecolumnresize/constants.ts#L31)

<a id="constant-TABLE_WIDTH_GROWTH_RESISTANCE_IN_PIXELS">

### `TABLE_WIDTH_GROWTH_RESISTANCE_IN_PIXELS: 10`

How much further (in pixels, on top of the snap threshold above) a table edge has to be dragged past the container's width before it actually starts growing past 100% again. This is what makes 100% "sticky" - while still letting the table grow past it with a deliberate, longer drag.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablecolumnresize/constants.ts#L55)

<a id="constant-TABLE_WIDTH_SNAP_THRESHOLD_IN_PIXELS">

### `TABLE_WIDTH_SNAP_THRESHOLD_IN_PIXELS: 5`

The distance (in pixels) around the container's width within which a dragged table edge snaps to exactly 100% of the container width, in either direction - making it easy to precisely land on that value.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablecolumnresize/constants.ts#L46)

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
