Developer ReferenceDashboard (Wish)ComponentsDashboard
components/dashboard/clipboard
Functions
Clipboard()
function Clipboard(): Element;Defined in: components/dashboard/clipboard.tsx:40
Returns
Element
startingBool()
function startingBool(key): boolean;Defined in: components/dashboard/clipboard.tsx:56
A switch's starting state: a locked server value, else the stored preference, else the server's value. The panel mounts when its menu opens, after the server settings arrived.
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
boolean
toggleClientSetting()
function toggleClientSetting(
key,
value,
setValue
): void;Defined in: components/dashboard/clipboard.tsx:67
One clipboard switch: optimistic, stored, then posted like any setting.
Parameters
| Parameter | Type |
|---|---|
key | string |
value | boolean |
setValue | (v) => void |
Returns
void