Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2022-08-31 (8 months ago) | | Not yet rated by the users | | Total: 33 | | All time: 10,727 This week: 200 |
|
Description | | Author |
This package can generate the output for Laravel Nova fields.
It provides a sub-class of the Laravel Nova field class that can configure specific details about how fields appear in a Laravel Nova implementation.
Currently, it allows configuring the field icon, title, and direction. Innovation Award
September 2022
Winner |
Laravel Nova is an administration panel built using Laravel.
Developers can extend it with additional components that provide better features and new panel elements.
This package can simplify the generation of the output of a Laravel Nova panel element.
It can help reduce the code that Laravel Nova panel elements need to write to generate the output that defines how each panel element appears to the users.
Manuel Lemos |
| |
|
|
Innovation award
Nominee: 6x
Winner: 3x |
|
Details
Nova Quick View
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
License
The MIT License (MIT). Please see License File for more information.
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.