Appsmith
Github
Discord
Appsmith Cloud
Community Forum
Search…
v1.3
Introduction
Setup Appsmith
Tutorials
Sample Apps
Templates
How To Guides
Debugging Errors
FAQs
Telemetry
Security
Core Concepts
Connecting to Data Sources
Displaying Data (Read)
Capturing Data (Write)
Writing Code
Designing an Application
Building Dynamic UI
Access Control
Version Control with Git
JSON Web Tokens (JWT)
Datasource Reference
Amazon / Generic S3
ArangoDB
DynamoDB
Elasticsearch
Firestore
Google Sheets
MongoDB
MS SQL
MySQL
PostgreSQL
Redis
Redshift
Snowflake
SMTP
Framework Reference
Appsmith Context Object
Query
Show Modal
Close Modal
Download
Intervals (Time events)
Show Alert
Navigate To
Store Value
Copy To Clipboard
Reset Widget
JavaScript Editor (Beta)
Widget Reference
Audio
Audio Recorder
Button
Button Group
Camera
Chart
Checkbox
Checkbox Group
Container
Currency Input
Datepicker
Divider
Document Viewer
Form
Filepicker
Icon Button
Iframe
Image
Input
JSON Form
List
Maps
Map Chart
Menu Button
Modal
Multi-select
Multi-tree-select
Phone Input
Progress
Radio Group
Rating
Rich Text Editor
Select
Stat Box
Switch
Switch Group
Tabs
Table
Text
Tree-select
Video
Powered By
GitBook
Copy To Clipboard
This function is used to copy text to the clipboard
Signature
1
copyToClipboard
(
data
:
string
,
options
:
object
)
:
Promise
Copied!
Arguments
Uses the
copy-to-clipboard
library
Argument Name
Description
data
Data that would be copied
options.debug
Boolean. Optional. Enable output to console
options.format
String. Optional. Set the mime type of the text being copied
Framework Reference - Previous
Store Value
Next - Framework Reference
Reset Widget
Last modified
1mo ago
Copy link
Edit on GitHub
Contents
Signature
Arguments