maxime-rainville/silverstripe-copy-field
Composer 安装命令:
composer require maxime-rainville/silverstripe-copy-field
包简介
A field with a simple copy button
关键字:
README 文档
README
This module provides a CopyField for Silverstripe CMS. The CopyField includes a copy button to make it easy to copy the value of the field to the clipboard.
Installation
composer require maxime-rainville/silverstripe-copy-field
Usage
The CopyField defaults to being read only. If you want to hide the value, you can use the setObfuscate method on the CopyField to get it to render as a password.
use MaximeRainville\CopyField\CopyField; ... $fields->addFieldsToTab( 'Root.Main', [ CopyField::create('APIKey', 'API Key', $this->Key), CopyField::create('APISecret', 'API Secret', $this->Secret)->setObfuscate(true) ] );
统计信息
- 总下载量: 43
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2021-10-06
