1
0
Fork 0
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:
Gaurang Tandon 2023-07-25 10:55:12 +00:00 committed by Nigel Gott
parent b4bb3516ca
commit f5a0a2e44e
4 changed files with 34 additions and 0 deletions
web-frontend/modules/database/utils

View file

@ -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)