LoginSignup
1
0

テキストコピー機能の配置

Posted at

ブラウザ上のテキストを範囲選択してコピーするという手間を省く、テキストコピー機能を配置してみましたので紹介します。

まずは、Forgeで「copy clip」と検索し、下記のCopy String to Clipboardをインストールしてください。

Developmentのアイコンの中に
image.png
image.png
このアイコンがあればインストール成功です。
image.png
適当なアプリケーションを作成します。

image.png
image.png
メニュー中のコンセントのアイコンをクリックします。
image.png
「clip」で検索し、CopyStringtoClipboard_Libを選択、チェックを入れ、Applyを押します。
image.png
LogicタブのClient Actionsに追加されます。
image.png
EmptyでScreenを作成し、Inputを配置、New Local Variableしておきます。
image.png
Inputの右端を1カラム短くして、Iconを配置します。
image.png
copyで検索し、clipboradのアイコンにしておきましょう。
image.png
Iconを右クリックし、Link Toから(New Client Action)を選択します。
image.png
LinkOnClickが作成されました。
image.png
LinkOnClickを開いて、LogicタブのClient ActionsからCopyStringToClipboardをドラッグ、
Input ParameterのTextはTextVarとします。
image.png
Messageを配置し、”コピーしました”と表示するのもよいでしょう。

PublishしてOpen in browserします。
image.png
Inputに値を入力して、Iconをクリック。
image.png
メモ帳に張り付けると値が入っています。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0