x4js - v2.3.33
    Preparing search index...

    Function setClipboard

    • Set the clipboard, from a menu or a button.

      Parameters

      Returns Promise<boolean>

      true when the system took it. When it did not, getClipboard still gives it back: it can be pasted in the application.

      setClipboard( { text: "hello" } );
      setClipboard( { image: blob, text: "the same, for what cannot paste an image" } );