PHP Classes

Laravel Nova Quick View: Generate the output for Laravel Nova fields

Recommend this page to a friend!
  Info   Documentation   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 37 All time: 10,957 This week: 104Up
Version License PHP version Categories
nova-quick-view 1.0The PHP License5PHP 5, Libraries, Content management
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
PHP Programming Innovation award winner
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
Picture of Nyi Nyi Lwin
  Performance   Level  
Name: Nyi Nyi Lwin <contact>
Classes: 12 packages by
Country: Myanmar Myanmar
Age: 32
All time rank: 26565 in Myanmar Myanmar
Week rank: 46 Up1 in Myanmar Myanmar Up
Innovation award
Innovation award
Nominee: 7x

Winner: 4x

Documentation

Nova Quick View

Latest Stable Version Total Downloads

screenshot 1 screenshot 2 screenshot 3

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.


Screenshots (3)  
  • screenshots/1.png
  • screenshots/2.png
  • screenshots/3.gif
  Files folder image Files (18)  
File Role Description
Files folder image.github (1 file)
Files folder imagedist (1 file, 2 directories)
Files folder imageresources (2 directories)
Files folder imagesrc (2 files)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file package.json Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file webpack.mix.js Data Auxiliary data

  Files folder image Files (18)  /  .github  
File Role Description
  Accessible without login Plain text file FUNDING.yml Data Auxiliary data

  Files folder image Files (18)  /  dist  
File Role Description
Files folder imagecss (1 file)
Files folder imagejs (1 file)
  Accessible without login Plain text file mix-manifest.json Data Auxiliary data

  Files folder image Files (18)  /  dist  /  css  
File Role Description
  Accessible without login Plain text file field.css Data Auxiliary data

  Files folder image Files (18)  /  dist  /  js  
File Role Description
  Accessible without login Plain text file field.js Data Auxiliary data

  Files folder image Files (18)  /  resources  
File Role Description
Files folder imagejs (1 file, 1 directory)
Files folder imagesass (1 file)

  Files folder image Files (18)  /  resources  /  js  
File Role Description
Files folder imagecomponents (1 file, 1 directory)
  Accessible without login Plain text file field.js Data Auxiliary data

  Files folder image Files (18)  /  resources  /  js  /  components  
File Role Description
Files folder image_partials (1 file)
  Accessible without login Plain text file IndexField.vue Data Auxiliary data

  Files folder image Files (18)  /  resources  /  js  /  components  /  _partials  
File Role Description
  Accessible without login Plain text file Button.vue Data Auxiliary data

  Files folder image Files (18)  /  resources  /  sass  
File Role Description
  Accessible without login Plain text file field.scss Data Auxiliary data

  Files folder image Files (18)  /  src  
File Role Description
  Plain text file FieldServiceProvider.php Class Class source
  Plain text file NovaQuickView.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:37
This week:0
All time:10,957
This week:104Up