panels/clipboard
Functions
pickClipboardImage()
function pickClipboardImage(onPicked): void;Defined in: panels/clipboard.tsx:41
Opens the browser's file dialog for an image and hands the pick to
onPicked, whether or not the view that asked is still mounted.
Parameters
| Parameter | Type | Description |
|---|---|---|
onPicked | (file) => void | Receives the chosen file. |
Returns
void
Clipboard()
function Clipboard(): Element;Defined in: panels/clipboard.tsx:76
Returns
Element
startingBool()
function startingBool(key): boolean;Defined in: panels/clipboard.tsx:93
A switch's starting state: a locked server value, else the stored preference, else the server's value. The panel mounts when it opens, after the server settings arrived.
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
boolean
toggleClientSetting()
function toggleClientSetting(
key,
value,
setValue
): void;Defined in: panels/clipboard.tsx:104
One clipboard switch: optimistic, stored, then posted like any setting.
Parameters
| Parameter | Type |
|---|---|
key | string |
value | boolean |
setValue | (v) => void |
Returns
void
handleCopySecret()
function handleCopySecret(): void;Defined in: panels/clipboard.tsx:156
Has the core write the masked secret to this device's clipboard, inside this click.
Returns
void
handleImagePicked()
function handleImagePicked(file): void;Defined in: panels/clipboard.tsx:161
Sends a picked image to the session clipboard, or reports a non-image.
Parameters
| Parameter | Type |
|---|---|
file | File |
Returns
void