🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

colresizable

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colresizable - npm Package Compare versions

Comparing version

to
1.6.0

colResizable-1.6.min.js

12

package.json
{
"name" : "colresizable",
"version" : "1.5.2",
"description" : "resizable table columns",
"version" : "1.6.0",
"description" : "jQuery plugin to resize table columns",
"title" : "colResizable",

@@ -30,10 +30,12 @@ "author" : {

"table",
"range slider"
"range slider",
"colresizable",
"resize table columns",
"jquery"
],
"homepage" : "http://bacubacu.com/colresizable/",
"files" : [
"colResizable-1.5.min.js",
"./source",
"colResizable-1.6.min.js",
"./samples"
]
}

@@ -34,14 +34,27 @@ ![alt text](http://bacubacu.com/colresizable/githubLogo.png "colResizable jQuery plugin")

* **liveDrag**: [type: boolean] [default: false] [version: 1.0]
* **resizeMode**: [type: string] [default: 'fit'] [version: 1.6] [values: 'fit', 'flex', 'overflow']
When set to true the table layout is updated while dragging column anchors. liveDrag enabled is more CPU consuming so it is not recommended for slow computers, specially when dealing with huge or extremely complicated tables.
It is used to set how the resize method works. Those are the possible values:
* `'fit'`: this is default resizing model, in which resizing a column does not alter table width, which means that when a column is expanded the next one shrinks.
* `'flex'`: in this mode the table can change its width and each column can shrink or expand independently if there is enough space in the parent container. If there is not enough space, columns will share its width as they are resized. Table will never get bigger than its parent.
* `'overflow'`: allows to resize columns with overflow of parent container.
___
* **disable**: [type: boolean] [default: false] [version: 1.0]
* **fixed**: [type: boolean] [default: true] [version: 1.5]
When set to true it aims to remove all previously added enhancements such as events and additional DOM elements assigned by this plugin to a single or collection of tables. It is required to disable a previously *colResized* table prior its removal from the document object tree using JavaScript, and also before any DOM manipulations to an already *colResized* table such as adding columns, rows, etc.
It is used to set how the resize method works. In fixed mode resizing a column does not alter total table width, which means that when a column is expanded the next one shrinks. If fixed is set to false then table can change its width and each column can shrink or expand independently.
___
* **disabledColumns**: [type: array of int] [default: []] [version: 1.6]
An array of column indexes to be excluded, so it will not be possible to drag them manually.
___
* **liveDrag**: [type: boolean] [default: false] [version: 1.0]
When set to true the table layout is updated while dragging column anchors. liveDrag enabled is more CPU consuming so it is not recommended for slow computers, specially when dealing with huge or extremely complicated tables.
___
* **postbackSafe**: [type: boolean] [default: false] [version: 1.3]

@@ -66,9 +79,4 @@

This attribute is used as the css class assigned to column anchors while being dragged. It can be used for visual feedback purposes.
___
* **disable**: [type: boolean] [default: false] [version: 1.0]
When set to true it aims to remove all previously added enhancements such as events and additional DOM elements assigned by this plugin to a single or collection of tables. It is required to disable a previously colResized table prior its removal from the document object tree.
___
* **minWidth**: [type: number] [default: 15] [version: 1.1]

@@ -107,3 +115,11 @@

It behaves in exactly the same way than the previous attribute but applied to the right margin.
___
* **fixed**: [deprecated: use "mode" instead] [type: boolean] [default: true] [version: 1.5 only]
It is used to set how the resize method works. In fixed mode resizing a column does not alter total table width, which means that when a column is expanded the next one shrinks. If fixed is set to false then table can change its width and each column can shrink or expand independently.
_Note: There is a known issue where the CSS property `table-layout: fixed;` causes a minor conflict with resizing table widths. It is important to note that the `fixed` setting is different from the CSS property and it is encouraged not to apply that style to your tables._
## Events

@@ -110,0 +126,0 @@