php-junior/nova-quick-view
Composer 安装命令:
composer require php-junior/nova-quick-view
包简介
Laravel Nova Quick View.
README 文档
README
Installation
You can install the package in to a Laravel app that uses Nova via composer:
composer require php-junior/nova-quick-view
Usage
Add the following code :
public function fields(Request $request) { return [ ... NovaQuickView::make('Hello', function () { return '<p>Hi, there!</p>'; }) ->icon('el-icon-search') ->title('I am the title') ->direction('rtl') rtl / ltr / ttb / btt ... ]; }
If you need to render HTML content :
public function fields(Request $request) { return [ ... NovaQuickView::make('Hello', function () { return view('partials.hello', [ 'text' => 'Hi, there!' ])->render(); }) ->icon('el-icon-search') ->title('I am the title') ->direction('rtl') // rtl / ltr / ttb / btt ... ]; }
Please check icon list from element.
If you want to use fontawesome or others, import CSS file in layout.blade.php
Credits
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 3.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-12-09


