selecto
selecto copied to clipboard
Copy a selected area?
Environments
- Framework name: raw JS
- Component name:
Selecto
- Component version: "selecto": "^1.13.2"
Description
Is there a way to copy the selected area? For context, I have a grid of div
s similar to the demo (https://daybrush.com/selecto/storybook/?path=/story/selecto--welcome), but each of those divs contains some information (let's say text for right now). I'd like to be able to drag to select some of those divs and then copy and paste them to other divs.
What's the best way to do this?
@nlarusstone
selectStart, select, and selectEnd events have a rect
property. rect
contains the position and size of the select area.