定制 supplyhog/yii2-clipboardjs 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

supplyhog/yii2-clipboardjs

Composer 安装命令:

composer require supplyhog/yii2-clipboardjs

包简介

无描述信息

README 文档

README

An easy way to use Clipboardjs in your project. Clipboardjs is a javascript only way to copy text to the clipboard.

Installation

Install this extension via composer. Add this line to your project’s composer.json

"supplyhog/yii2-clipboardjs" : "dev-master"

Usage

//Button to copy text <?= \supplyhog\ClipboardJs\ClipboardJsWidget::widget([ 'text' => "Hello World", // 'label' => 'Copy to clipboard', // 'htmlOptions' => ['class' => 'btn'], // 'tag' => 'button', ]) ?> //Button to copy text from input id <?= \supplyhog\ClipboardJs\ClipboardJsWidget::widget([ 'inputId' => "#input-url", // 'cut' => false, // Cut the text out of the input instead of copy?  // 'label' => 'Copy to clipboard', // 'htmlOptions' => ['class' => 'btn'], // 'tag' => 'button', ]) ?>

Just the Asset?

Yes, you can use just the asset. php \supplyhog\ClipboardJs\ClipboardJsAsset::register($view) It will auto init anything with the "clipboard-js-init" class.

统计信息

  • 总下载量: 125.21k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 3
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 2
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固