TableSelection
Adds rectangular selection to HTML tables to allow copy of specific columns and rows without copying contents of other cells in range., (*1)
- Supports horizontal, vertical and rectangular selections.
- Includes clipboard support with table formatting for Excel or other spreadsheet software!
- It even works on mobile!
- Tested and working in Chrome, Firefox, Edge, Mobile Chrome and Samsung Browser
Requirements
jQuery, (*2)
Installation
Run npm i table-selection
, (*3)
Usage
- Include
table-selection.js
or table-selection.min.js
in your project.
- Include
table-selection.css
or table-selection.min.css
in your project (or use the provided LESS or SCSS file to include it in your compiled stylesheet).
- Add
.table-selection
class to a table and include the code from the Javascript and CSS panels in your project.
Examples
View example on Codepen, (*4)
License
MIT License, (*5)
Copyright (c) 2018 Wouter Smit
Copyright (c) 2018 Widgets B.V., (*6)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:, (*7)
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software., (*8)
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE., (*9)