Skip to main content

clipboard_write

Function clipboard_write 

Source
pub fn clipboard_write(text: &str) -> Result<(), JsValue>
Expand description

Put text on the system clipboard. The write is asynchronous and its promise is dropped: a clipboard the user denied is not an editing error.

ยงErrors

If there is no window to read the navigator from.