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.
-
Set this to
trueto use native Clipboard API if it is available
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of Clipboardable class, or subclass thereof.
-
Gets the current shared Clipboard instance
-
Identifies an object as an instance of Clipboardable class, or subclass thereof.
Functions
Functions are methods available for calling on the class-
Clears the clipboard data