Need private packages and team management tools?Check out npm Teams »

table-selection

0.9.3 • Public • Published

THIS PACKAGE WAS MOVED

This package was moved to @pxlwidgets/table-selection

If you are currently using the 'old' package, upgrade by running:

  • npm un table-selection
  • npm i @pxlwidgets/table-selection
  • Initialize using TableSelection.initialize();



TableSelection

Adds rectangular selection to HTML tables to allow copy of specific columns and rows without copying contents of other cells in range.

  • 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

Installation

Run npm i table-selection

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

License

MIT License

Copyright (c) 2018 Wouter Smit Copyright (c) 2018 Widgets B.V.

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:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

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.

Install

npm i table-selection

DownloadsWeekly Downloads

10

Version

0.9.3

License

MIT

Unpacked Size

35 kB

Total Files

12

Last publish

Collaborators

  • avatar