v7.3.0

Clipboardable
Mixin

Mixin that provides clipboard read/write capabilities to widgets. It manages a shared clipboard instance that can optionally use the native Clipboard API with a local fallback, enabling copy/paste workflows across widgets.

// Write to clipboard
await widget.clipboard.writeText('Hello world', true); // true = try native API

// Read from clipboard const text = await widget.clipboard.readText(true);

See also

  • Events - Event handling mixin
No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class
  • Configure which sources $name this class allows pasting model data from. Accepts string or array. Unspecified accepts all. If source is not accepted, it will try to use the string value instead.

  • useNativeClipboard : Booleanfalse
    private

    Set this to true to use native Clipboard API if it is available

Properties

Properties are getters/setters or publicly accessible variables on this class

Functions

Functions are methods available for calling on the class
    • Clears the clipboard data

    Source path

    Core/mixin/Clipboardable.js

    Contents