ideatocode/nova-tooltip-field 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ideatocode/nova-tooltip-field

最新稳定版本:v1.0.2

Composer 安装命令:

composer require ideatocode/nova-tooltip-field

包简介

A Laravel Nova field to show additional data but not clutter the table.

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.

Inspired by: https://github.com/philperusse/nova-tooltip-field

Demo

Demo #1

Installation

Run this command in your Laravel Nova project:

$ composer require helios-live/nova-tooltip-field

Usage

Use this field as any other fields. By design, this field will only be shown on index (lists) views.

use Ideatocode\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(); })->asHtml(),

Demo #2

Trigger element

You can also pass change the trigger element of 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(); })->asHtml()->trigger('oh <b>Ya!</b>'),

Contributions

All contributions are welcomed. Please send a PR.

Authors

The styles are based on Bootstrap's Tooltip component.

License

This package is open-sourced software licensed under the MIT Licence

统计信息

  • 总下载量: 23.98k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 3
  • 开发语言: SCSS

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固