table-copy-vanilla
v1.0.4
Published
Allows users to select a portion of html tables and copy the content. The contents can be pasted in excel or excel compatible softwares.
Readme
table-copy-vanilla
Allows users to select a portion of html tables and copy the content. The contents can be pasted in excel or excel compatible softwares.
Demo Link: https://table-copy-vanilla.netlify.app/
Installation
npm
npm i table-copy-vanillayarn
yarn add table-copy-vanillaUser Usage
- Ctrl+Click on a table cell to begin
- Move with Arrow keys to select cells
- CTRL+C to copy data
Escto remove selection- Mouse click without
CTRLkey inside the table also removes selection
Tips
- Press
CTRL+ArrowKeysto select 100 row/columns at a time - Press
Shift+ArrowKeysto select 10 rows/columns at a time - Press
CTRL+Shift+ArrowKeysto select 1000 row/columns at a time
Focused Element Behavior
If a input element was focused before starting the table selection, the focus will be removed from the element. The focus is restored with the user cancels the selection. Either via ESC or by mouse press without CTRL pressed
