#author("2017-08-22T16:00:39+09:00","default:wikiwriter","wikiwriter")
&tag(clipboard.js);
*目次 [#mfd6bcf6]
#contents
*関連ページ [#f7b0894c]
*参考情報 [#w8a8d846]
-[[clipboard.js — Copy to clipboard without Flash:https://clipboardjs.com/]]…公式サイト
-[[sadiqmmm/clipboard-rails: clipboard.js javascript library integration for your Rails 4 and Rails 5 applications:https://github.com/sadiqmmm/clipboard-rails]]…clipboard.jsのRuby Gems版。

*概容 [#ed730932]
-Flash廃止の方向につきその代替手段が必要となる。
-だいたいzeroclipboard的な雰囲気で使える。

*使用方法 [#z25b8e88]
-基本的な使用法は以下。
#pre{{
<script src="dist/clipboard.min.js"></script>
<script>
  new Clipboard('.btn');
</script>

<!-- Target -->
<input id="foo" value="https://github.com/zenorocha/clipboard.js.git">

<!-- Trigger -->
<button class="btn" data-clipboard-target="#foo">
    <img src="assets/clippy.svg" alt="Copy to clipboard">
</button>

}}



トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS