This page is part of a static HTML representation of the TiddlyWiki at

WidgetMessage: tm-copy-to-clipboard

15th December 2017 at 3:06pm

The "copy to clipboard" message attempts to copy the specified text to the clipboard. If it succeeds, the tiddler $:/language/Notifications/CopiedToClipboard/Succeeded is displayed as a notification. If the browser doesn't permit the operation, the tiddler $:/language/Notifications/CopiedToClipboard/Failed is displayed instead.

It requires the following properties on the event object:

paramText to be copied to the clipboard

This message is usually generated with the ButtonWidget. It is handled by the TiddlyWiki core.


This example copies the current time to the clipboard:

<$button message="tm-copy-to-clipboard" param=<<now>>>
Copy date to clipboard

That renders as: