input.clipboard
The clipboard module allows to manipulate the client's clipboard.
Functions
input.clipboard.addText | Adds text to the clipboard. |
input.clipboard.clear | Clears the clipboard. |
input.clipboard.getText | Returns the contents of the clipboard. |
input.clipboard.setText | Sets the contents of the clipboard. |
#input.clipboard.addText
function input.clipboard.addText(text: string)
Adds text to the clipboard.
Parameters
| Name | Type | Description |
|---|---|---|
text | string |
#input.clipboard.clear
function input.clipboard.clear()
Clears the clipboard.
#input.clipboard.getText
function input.clipboard.getText(): string
Returns the contents of the clipboard.
Returns
| Type | Name | Description |
|---|---|---|
string |
#input.clipboard.setText
function input.clipboard.setText(text: string)
Sets the contents of the clipboard.
Parameters
| Name | Type | Description |
|---|---|---|
text | string |