naif / text-with-icon
一个具有自定义图标的 Laravel Nova 文本字段。
dev-master
2018-10-01 13:07 UTC
Requires
- php: >=7.1.0
This package is not auto-updated.
Last update: 2024-09-26 01:25:27 UTC
README
一个具有自定义图标的 Laravel Nova 文本字段
安装
您可以通过 composer 将此包安装到使用 Nova 的 Laravel 应用中
composer require naif/text-with-icon
用法
将以下内容添加到 nova/resources/views/layout.blade.php 中
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" crossorigin="anonymous">
将以下内容添加到 Nova/User.php 资源中
TextWithIcon::make('test') ->icon('fab fa-twitter-square') //set icon full name. Browse icon gallery at https://fontawesome.com/icons?d=gallery&m=free ->position('in') //here you can set icon position to be inside or outside the text field. ->color('#1997EF'),//also you can set icon color
支持
https://www.linkedin.com/in/naif
许可证
MIT 许可证(MIT)。请参阅 许可证文件 以获取更多信息。