이 문서는 https://tiddlywiki.com/languages/ko-KR/에서 티들리위키의 정적 HTML 표현의 일부입니다

WidgetMessage: tm-copy-to-clipboard

2024년 5월 23일 오후 5:40

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:

NameDescription
paramText to be copied to the clipboard
successNotificationNew in v5.3.4 Optional title of tiddler containing notification to be used if the operation succeeds
failureNotificationNew in v5.3.4 Optional title of tiddler containing notification to be used if the operation fails

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

Example

This example copies the current time to the clipboard:

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

That renders as: