{"_id":"datatables.net-colresize-unofficial","_rev":"6-9122e2980f70aa311f289710deef46b2","name":"datatables.net-colresize-unofficial","dist-tags":{"latest":"2.0.0"},"versions":{"1.6.1":{"name":"datatables.net-colresize-unofficial","version":"1.6.1","keywords":[],"author":{"name":"Daniel Hobi"},"license":"MIT","_id":"datatables.net-colresize-unofficial@1.6.1","maintainers":[{"name":"dhobi","email":"info@danielhobi.ch"}],"homepage":"https://github.com/dhobi/datatables.colResize#readme","bugs":{"url":"https://github.com/dhobi/datatables.colResize/issues"},"dist":{"shasum":"623c815fd78f2bfe489898257bc3abc869f0028a","tarball":"https://registry.npmjs.org/datatables.net-colresize-unofficial/-/datatables.net-colresize-unofficial-1.6.1.tgz","fileCount":6,"integrity":"sha512-yoAetMN3J8iBkjh2JLfKsPwrX2eThiPbIf5VrnCdKBsunXA0M7rSQgXpCv3dYNI2KpdYORiH74weFX+lhkdBuQ==","signatures":[{"sig":"MEUCIENQgGeRkUykAUqkX/kL1N/Fj1kc7Ey9tDLz8U17ePnFAiEAjuJSZ7OwQidP6IYbw+XvLEPfZfaDwLMYlxc38Yv0F+o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29440,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBS9mCRA9TVsSAnZWagAAY2cP/3gw4fU4WQ6wFoGdffh0\nZ2zNIXC4u/wzFsPyDs5zO17AnBEEX/C/tRZvHnHkV5g80BIlrqeEShldKcbU\nmEjiUUKkhW5dwgAZ9ltgwuZy3yBrCvmM03SmkXjKkKVxi/75SUNCe8TYcwKn\nsBDs8XHN96C5Z1OxhXZOisLnDwQn5HbgSiQOuBHIfXLN9wDsAtlVfk4N2cmb\nss3Fd+z6MR+/iWkfitPeuBLCYRwNKhIdmWFnHelPS8ho/ePeRgzxhihdXm6A\nwGpSpJ6yZDlmZ3MzBu/aLl7LQCEs6NJcDCoEtB/+dNOoJiaBvRjRlFfd+dBL\ngHtvetAZ2Bmo85zJCiP6c/g8ZQ+9QGWXcv88x8wOVA1AfmVzzttnPxhTedCW\nu9HRpt2TmQNM+p9hBotxFg+fG4ctSVZ6e6Bh6/rLVjaW3Tpp8j33SGTb5txd\n4B/kn1/BiAdCvUrokkD5IaXB6MSdWXAO8NMpUsm4f41hMkHwBxEFQkUsEfi6\niGsJt6FXcMa3sBX58S9AssTB8RjJZ8qF5IAxzUabx0NmIzU7tfHqWKdojUUF\ngARRGsfYx193SoQFRERlBnk3Xc7Jb8cSUARI792T5ZZfJ+zVPohqV8AT4lmq\nO6s2ILttUHyxz5lHYKc67Z0NeEm3yAguvs9pMWZiRNBIQWfq1la6qJjQv+0v\nAWg3\r\n=G8R5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./jquery.dataTables.colResize.js","types":"./types.d.ts","gitHead":"ca44a1482be0909b22028250c8771676d3701d3f","_npmUser":{"name":"dhobi","email":"info@danielhobi.ch"},"moduleType":["globals","amd","node"],"repository":{"url":"git+https://github.com/dhobi/datatables.colResize.git","type":"git"},"_npmVersion":"8.3.1","description":"Plugin to resize columns by mouse drag or touch.","directories":{},"_nodeVersion":"16.14.0","dependencies":{"jquery":">=1.7","datatables.net":">=1.10.9"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/datatables.net-colresize-unofficial_1.6.1_1644506982365_0.7219594832281704","host":"s3://npm-registry-packages"}},"1.7.0":{"name":"datatables.net-colresize-unofficial","version":"1.7.0","keywords":[],"author":{"name":"Daniel Hobi"},"license":"MIT","_id":"datatables.net-colresize-unofficial@1.7.0","maintainers":[{"name":"dhobi","email":"info@danielhobi.ch"}],"homepage":"https://github.com/dhobi/datatables.colResize#readme","bugs":{"url":"https://github.com/dhobi/datatables.colResize/issues"},"dist":{"shasum":"e20f641272351ff98140c6f86d8f5d3367364366","tarball":"https://registry.npmjs.org/datatables.net-colresize-unofficial/-/datatables.net-colresize-unofficial-1.7.0.tgz","fileCount":6,"integrity":"sha512-6J2HQbqA9h9NBKwnqHtyOeBvKtWGNY194DAY6lP7AjONwK5QNXrGaemKyM4CtfrTp59NHuNipe97UDMVuXIyng==","signatures":[{"sig":"MEQCICXOtatbyk4R9K9hDedNQkBljs+4H5A73iLq5/lf7yaGAiAGc6SSW/hyaHMbe8Yzh6Gb6zZp4Pfup+yYFJsXCveP8Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiC+oeCRA9TVsSAnZWagAAaTsQAIFficrxmd9lCe1KFycT\nuC/I6bQDGLiUzIpEORcX35U+Vux4lh34Uj5WP08vhFDLG0BY8YNqQ5Lrqb1F\ngJhBfNwuZQPd94odhzAwy8TUrUPg7lXM2P4A3cIFUU4ylqRLj2QKiW97BwlR\ncsMUcMCAjBAykQ0ZAF/MSWZlAAs6/NZt96eAIBeWohX7exBOv1AndBLKRFjc\n+QDECIq/vGceSPKIn1e3fafaYGeLyxKvc8i6sj5ZrODcnpon2DD4s+shWbu3\nypmhGUsmQ8W009Qah/xx/52zb/AJO39zFLm5Fsh3/3zLcYQ1rSz7wsumajjO\ndSQOvuiVf09yi9wfnqrcyntzFmyVx2koaT7EPfJoUymRO//4pyY/EbAZjEU+\nQhT2ebXfjeeNrSX+P7ynRAYdJ1IdDUrl+Od4Y5HDKxL5VVgH7y1/5ExzwQ2p\nCKTwjBto8JbYrWfNjHfDLheRM9O126z2lm+CIZL4us5oRDm888EyPpGbnML6\n4vpNerQLIW+K6AkeOTT4Amnc/iKb5K3AaL1c+62aZrhgog+DVMB8GIDniKsj\nUnhngL1bjHhe6Dv8fba9rFWQzbrEWvWsbU+eMmeisVCa0c2hJpBw4Z2b/APy\nvYW5yRG4DCk11AVERPS3zydp+QBeILrIgQtd2cP+tT7lM8elhdEyOPNnhEtw\nxw2n\r\n=lill\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./jquery.dataTables.colResize.js","types":"./types.d.ts","gitHead":"92500dd26e0760fb3f04f37ff7add94f9dcf4fbb","_npmUser":{"name":"dhobi","email":"info@danielhobi.ch"},"moduleType":["globals","amd","node"],"repository":{"url":"git+https://github.com/dhobi/datatables.colResize.git","type":"git"},"_npmVersion":"8.3.1","description":"Plugin to resize columns by mouse drag or touch.","directories":{},"_nodeVersion":"16.14.0","dependencies":{"jquery":">=1.7","datatables.net":">=1.10.9"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/datatables.net-colresize-unofficial_1.7.0_1644947998618_0.17950823189632326","host":"s3://npm-registry-packages"}},"1.7.1":{"name":"datatables.net-colresize-unofficial","version":"1.7.1","keywords":[],"author":{"name":"Daniel Hobi"},"license":"MIT","_id":"datatables.net-colresize-unofficial@1.7.1","maintainers":[{"name":"dhobi","email":"info@danielhobi.ch"}],"homepage":"https://github.com/dhobi/datatables.colResize#readme","bugs":{"url":"https://github.com/dhobi/datatables.colResize/issues"},"dist":{"shasum":"71f5588aa49033cf6274094f76d787529a61b8c9","tarball":"https://registry.npmjs.org/datatables.net-colresize-unofficial/-/datatables.net-colresize-unofficial-1.7.1.tgz","fileCount":6,"integrity":"sha512-d06uq9cN0bAdQLyk6HD7jHGItL9g7WPrLT8g1Jz4eLZhRwfVxieekPy44yzUvnkODP71+GV6RTq3vNYa421dtQ==","signatures":[{"sig":"MEUCID3YQEP21Xnm8PCjPwt50FoynsVhf5M/5hIWCbZKe0qyAiEAkpMP+ylUegQGy0NRKg1UxSpoggA5t4O1B8eWJrE/dEE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34621,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtagDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpXTw//ZKKB/XhA9/LADeBAVWgh3fP5v+ALBS2EYjvsSqKDNbPyr7kf\r\nY4pvFGYNzomuPUncSDxrklLB04ItcMQcRp+6WcjD6og4gppTvQjvBGLUA+IE\r\n1xT6RwyfavSO0eygwA84W9TMZuUAVIcGaowFbMzwkNix/YEiyL7iDa3KeIwB\r\n+07mjZCIeHzMZtPVCsb0OUbt2glEVdTrshLIA8WAKwNJbU9yzoDM/56yAKCg\r\nK5GAvxZj2vSJHQ4Ql7QQDxBR1Lar39jR9JWzDFzQ8QSBlpqcqo4JEC1pyhj9\r\nwJb3SWRaS5pevkJQtDT0+LWFF7ufFtu1rEblyWyRSdRbS3vu3EGp3BTpbarh\r\nO+oCZtnPYKuxPj7Z3591o9WwZmcbiEWvu4pQPuQy2Otou54oShcshmumOy45\r\naX9nA0GhYGZXruJfo2/gKQghA903yIocQ0WGIlEt1qD119k6yXTNT0iluakM\r\nzMeQPMUC+EtsE3JfhibTZmUcP70MFwNpa6fhAJBhhXFYPQOHiAmvyU8ZGcSf\r\n7yM4XCWmejClAhmE/yCQv+Wco9PoYQpDETtIKffbvoHAs1Vw9Kw0w6qrPjOt\r\nM4wrf2tqvafLiixxA3GVD+icql9vzwGjUJfmMEzMK4z6fCaLG6VmmSjRtyDF\r\ny1ye706JJ/dvB1a1zNHssF/8lSgreJIATp0=\r\n=Wed7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./jquery.dataTables.colResize.js","types":"./types.d.ts","gitHead":"48303a3f5e1e0cc442bf92d5f33787c7866983ce","_npmUser":{"name":"dhobi","email":"info@danielhobi.ch"},"moduleType":["globals","amd","node"],"repository":{"url":"git+https://github.com/dhobi/datatables.colResize.git","type":"git"},"_npmVersion":"8.19.2","description":"Plugin to resize columns by mouse drag or touch.","directories":{},"_nodeVersion":"18.12.1","dependencies":{"jquery":">=1.7","datatables.net":">=1.10.9"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/datatables.net-colresize-unofficial_1.7.1_1672849411485_0.012986737965864137","host":"s3://npm-registry-packages"}},"1.7.2":{"name":"datatables.net-colresize-unofficial","version":"1.7.2","keywords":[],"author":{"name":"Daniel Hobi"},"license":"MIT","_id":"datatables.net-colresize-unofficial@1.7.2","maintainers":[{"name":"dhobi","email":"info@danielhobi.ch"}],"homepage":"https://github.com/dhobi/datatables.colResize#readme","bugs":{"url":"https://github.com/dhobi/datatables.colResize/issues"},"dist":{"shasum":"04e59c03c75d295d6c0dc4765b620a6031fc7752","tarball":"https://registry.npmjs.org/datatables.net-colresize-unofficial/-/datatables.net-colresize-unofficial-1.7.2.tgz","fileCount":6,"integrity":"sha512-DfX0y4QToYhq+G/Df5DKNC+1aEzZeprVVoVOrzivqpP9wMDwh18G++1zGOpVs+ogaPV+tDHpavIeM5wpkMHlQw==","signatures":[{"sig":"MEUCIQCt33rk0kt1stpAp8xx+lr3VtwZTzfQGn4PMmua7NwMxAIgEWY73m5QxUvBx/nh/w6ghdwPPMcm893YcwjHH3EH6nA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34077},"main":"./jquery.dataTables.colResize.js","types":"./types.d.ts","gitHead":"858b7a3c53636d8cded687e5992597dc3107bdb8","_npmUser":{"name":"dhobi","email":"info@danielhobi.ch"},"moduleType":["globals","amd","node"],"repository":{"url":"git+https://github.com/dhobi/datatables.colResize.git","type":"git"},"_npmVersion":"10.1.0","description":"Plugin to resize columns by mouse drag or touch.","directories":{},"_nodeVersion":"20.9.0","dependencies":{"jquery":">=1.7","datatables.net":">=1.10.9"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/datatables.net-colresize-unofficial_1.7.2_1699443201002_0.879872240623339","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"datatables.net-colresize-unofficial","version":"2.0.0","description":"Plugin to resize columns by mouse drag or touch.","main":"./jquery.dataTables.colResize.js","types":"./types.d.ts","repository":{"type":"git","url":"git+https://github.com/dhobi/datatables.colResize.git"},"keywords":[],"dependencies":{"datatables.net":">=2.0.0","jquery":">=1.7"},"moduleType":["globals","amd","node"],"author":{"name":"Daniel Hobi"},"license":"MIT","bugs":{"url":"https://github.com/dhobi/datatables.colResize/issues"},"homepage":"https://github.com/dhobi/datatables.colResize#readme","_id":"datatables.net-colresize-unofficial@2.0.0","gitHead":"d550781b59c490e110b6ae02733312694190f5dd","_nodeVersion":"20.19.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-fF7zXLthi34eSGxZLSAe834Tla1/EGZHesq3i0OGnB09iwiB0cEmrKRJ/SExL14wApByrc8phH+Z6s/syjQ5vQ==","shasum":"1e08c6ed10d9311e733fada5c003c355b6e54f59","tarball":"https://registry.npmjs.org/datatables.net-colresize-unofficial/-/datatables.net-colresize-unofficial-2.0.0.tgz","fileCount":6,"unpackedSize":35037,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGpvnh/b0UKMoDSfeij2LvUHX4XSHoeGQds2F2SnNqakAiEA0wuWWbkiclyLscZihxS48tQBCoJz+QVRMXxKfFuf1Ig="}]},"_npmUser":{"name":"dhobi","email":"info@danielhobi.ch"},"directories":{},"maintainers":[{"name":"dhobi","email":"info@danielhobi.ch"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/datatables.net-colresize-unofficial_2.0.0_1758267883670_0.4373991675053761"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-10T15:29:42.364Z","modified":"2025-09-19T07:44:44.002Z","1.6.1":"2022-02-10T15:29:42.514Z","1.7.0":"2022-02-15T17:59:58.787Z","1.7.1":"2023-01-04T16:23:31.655Z","1.7.2":"2023-11-08T11:33:21.246Z","2.0.0":"2025-09-19T07:44:43.840Z"},"bugs":{"url":"https://github.com/dhobi/datatables.colResize/issues"},"author":{"name":"Daniel Hobi"},"license":"MIT","homepage":"https://github.com/dhobi/datatables.colResize#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/dhobi/datatables.colResize.git"},"description":"Plugin to resize columns by mouse drag or touch.","maintainers":[{"name":"dhobi","email":"info@danielhobi.ch"}],"readme":"**This branch is compatible with DataTables 2.x only. For the current version use [this branch](https://github.com/dhobi/datatables.colResize/tree/v1).**\n\n# jQuery dataTables ColResize\n\nPlugin to resize columns by mouse drag or touch.\n\n## Demo:\nhttps://dhobi.github.io/datatables.colResize/\n\n## Installation:\n\n**As npm package:**\n\n```\nnpm i datatables.net-colresize-unofficial\n```\n\n**Manually**:\n\nJavascript file to include: \n[jquery.dataTables.colResize.js](jquery.dataTables.colResize.js)\n\nStylesheet to include: \n[jquery.dataTables.colResize.css](jquery.dataTables.colResize.css)\n\n**With CDN links:**\n\n```\nhttps://cdn.jsdelivr.net/npm/datatables.net-colresize-unofficial@latest/jquery.dataTables.colResize.css\n```\n```\nhttps://cdn.jsdelivr.net/npm/datatables.net-colresize-unofficial@latest/jquery.dataTables.colResize.js\n```\n\n## Usage:\n\nThe plugin will try to initialize itself on preInit.dt event.\n\n```javascript\nvar options = { ...see below... };\n// Either:\nvar table = $('#example').DataTable({\n    colResize: options\n});\n\n// Or:\nvar table = $('#example').DataTable();\nnew $.fn.dataTable.ColResize(table, options);\n\n// Available methods:\ntable.colResize.enable();  // enable plugin (i.e. when options was isEnabled: false)\ntable.colResize.disable(); // remove all events\ntable.colResize.reset();   // reset column.sWidth values\ntable.colResize.save();    // save the current state (defaults to localstorage)\ntable.colResize.restore(); // restore the state from storage (defaults to localstorage)\n```\n\n\n\n## Options:\n```javascript\ncolResize = {\n    isEnabled: true,\n    saveState: false,\n    hoverClass: 'dt-colresizable-hover',\n    hasBoundCheck: true,\n    minBoundClass: 'dt-colresizable-bound-min',\n    maxBoundClass: 'dt-colresizable-bound-max',\n    isResizable: function (column) {\n        return true;\n    },\n    onResizeStart: function (column, columns) {\n    },\n    onResize: function (column) {\n    },\n    onResizeEnd: function (column, columns) {\n    },\n    getMinWidthOf: function ($thNode) {\n    },\n    stateSaveCallback: function (settings, data) {\n    },\n    stateLoadCallback: function (settings) {\n    }\n}\n```\n\n### isEnabled\n\ndefault: true\n\nSpecify whether resize functionality is enabled on dataTable init\n\n### saveState\n\ndefault false\n\nSpecify whether state should automatically save when changed and restore on page load\n\n### hoverClass\n\ndefault: 'dt-colresizable-hover'\n\nClass which will be toggled on resizable & hovered \\<th\\> element (right border +/- 10px)\n\n### hasBoundCheck\n\ndefault: true\n\nSpecify whether min-width / max-width styles are checked to keep resizing of column in bounds\n\n### minBoundClass\ndefault: 'dt-colresizable-bound-min'\n\nClass which will be toggled for 500ms once the min-width of the column has been reached\n\n### maxBoundClass\ndefault: 'dt-colresizable-bound-max'\n\nClass which will be toggled for 500ms once the max-width of the column has been reached\n\n### isResizable\ndefault: column.isResizable / true\n\nCalled once during plugin/datatable init. Return false will not attach the drag events to the column.\n\n### onResizeStart\nCallback on drag start / touchstart event. Parameter is the dataTable column which has been resized and all other columns in the table.\n\n### onResize\nCallback on dragging / touchmove event. Parameter is the dataTable column which is currently being resized.\n\n### onResizeEnd\nCallback on drag end / touchend event. Parameter is the dataTable column which has been resized and all other columns in the table.\n\n### getMinWidthOf\n\ndefault: null\n\nIf defined (not null) will be used to calculate the minimal width of the given jQuery th - node.\n\nIf null (default) the plugin tries to detect the minimal width by\n\n1. Looking at the CSS min-width property\n2. Guessing the width by checking the space the text label uses\n3. Minimum 30px width\n\n### stateSaveCallback\n\ndefault: uses localStorage\n\nCallback when state needs to save. Parameter is an array of column sizes.\n\nexample: [437,412,416,258,397,357]\n\n### stateLoadCallback\n\ndefault: uses localStorage\n\nCallback when state needs to be restored. You will need to return an array of column sizes.\n\nexample: [437,412,416,258,397,357]\n","readmeFilename":"readme.md"}