norman-huth/nova-secret-field
最新稳定版本:1.0.2
Composer 安装命令:
composer require norman-huth/nova-secret-field
包简介
This package provides a custom secret field that can be toggled to see its value.
README 文档
README
This package provides a custom secret field that can be toggled to see its value.
Install
composer require norman-huth/nova-secret-field
Usage
use NormanHuth\SecretField\SecretField; class Client extends Resource { // ... public function fields(NovaRequest $request): array { return [ SecretField::make(__('Token'), 'token'), ]; }
Options
Same as a text field and disable „copy to clipboard“ method:
SecretField::make(__('Token'), 'token')->disableClipboard(),
Translate/Message text
Default:
{
"Copied": "Kopiert",
"Copying failed": "Kopieren fehlgeschlagen"
}
Change messages
SecretField::make(__('Token'), 'token') ->copiedMsg(__('Copied')) ->failedMsg(__('Copying failed')),
Misc
For Nova 3:
nalingia/nova-secret-field
统计信息
- 总下载量: 51.26k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-04-21


