mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-05-07 10:10:56 +00:00
Resolve "Add a button to row context menu to copy link to row"
This commit is contained in:
parent
b4bb3516ca
commit
f5a0a2e44e
4 changed files with 34 additions and 0 deletions
web-frontend/modules/database/utils
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copies the given text to the clipboard by temporarily creating a textarea and
|
||||
* using the documents `copy` command.
|
||||
* @param {string} text
|
||||
*/
|
||||
export const copyToClipboard = (text) => {
|
||||
navigator.clipboard.writeText(text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue