Clipboard
my.setClipboard
Copy content to the clipboard.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Copy content to the clipboard.
| Property | Type | Required | Description |
|---|---|---|---|
| text | String | Yes | Text to copy |
| success | Function | No | Callback on success |
| fail | Function | No | Callback on failure |
| complete | Function | No | Callback that always executes |
my.setClipboard({
text: 'Hello, world!',
success: () => {
my.showToast({ content: 'Copied!' });
}
});