philperusse/nova-tooltip-field
最新稳定版本:0.1
Composer 安装命令:
composer require philperusse/nova-tooltip-field
包简介
A Laravel Nova field.
README 文档
README
A Laravel Nova Tooltip field for the index view.
When you want to show additional data but do not want to clutter the table, put it in a tooltip.
Demo
Installation
Run this command in your Laravel Nova project:
$ composer require philperusse/nova-tooltip-field
Usage
Use this field as any other fields. By design, this field will only be shown on index (lists) views.
use philperusse\NovaTooltipField\Tooltip; Tooltip::make('More', function(){ return 'This a tooltip. You can put lengthy content here or any additional info.'; }),
HTML
You can also pass HTML to the tooltip.
Tooltip::make('More', function(){ return '<h4>Additional User info</h4>' . ' <strong>Created at : </strong>' . Carbon::parse($this->created_at)->diffForHumans() . '<br>' .' <strong>Updated at : </strong>' . Carbon::parse($this->created_at)->diffForHumans(); }),
Contributions
All contributions are welcomed. Please send a PR.
Authors
- Philippe Pérusse philippe.perusse@outlook.com
The styles are based on Bootstrap's Tooltip component.
License
This package is open-sourced software licensed under the MIT Licence
统计信息
- 总下载量: 234.21k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-11-14