wiperawa/yii2-copy-to-clipboard-widget
Composer 安装命令:
composer require wiperawa/yii2-copy-to-clipboard-widget
包简介
Simple widget with copy to clipboard button
README 文档
README
Simple widget that display text with 'copy to clipboard' button.
Installation
The preferred way to install this extension is through composer.
Either run
$ php composer.phar require wiperawa/yii2-copy-to-clipboard-widget "dev-master"
or add
"wiperawa/yii2-copy-to-clipboard-widget": "dev-master"
to the require section of your composer.json file.
Usage
<?= \wiperawa\copytoclipboard\CopyToClipboardWidget::widget([ 'content' => 'Some text to be copied to clipboard', //'containerOptions' => ['class' => 'd-flex'], // optional //'copyBtnOptions' => [], //optional //'copyBtnIcon' => '<span class="fa fa-clipboard-list"></span>' //'copiedIcon' => '<span class="fa fa-check-double"></span>', ]) ?>
统计信息
- 总下载量: 185
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-20