Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages

Readme

Nova Gridder

This package allows customize your resource details using grid and class systems.

Example

Example

Requirements

This package requires:

  • PHP ^7.3.
  • Laravel Nova ^2.0 or ^3.0.

Installation

You can install this package in a Laravel app that uses Nova via composer:

composer require demency/nova-gridder

Usage

Add the following code in your own resource implementation:

<?php

...

class YourResource extends Resource {

    ...

    public function fields(Request $request)
    {
        return [
            ...

            // Are you ready?
            // --------------
            // 1. Use gridder method
            // 2. Set options for rendering
            // 3. See the results
            Field::make(__('Column'), 'column') // Use whatever Field
                ->gridder([
                    'labelSize' => 'w-full',
                    'contentSize' => 'w-full',
                    'panelSize' => 'w-1/5', // Use field as box in a Panel
                    'additionalLabelClasses' => 'text-center',
                    'additionalContentClasses' => 'text-center py-2',
                    'additionalPanelClasses' => '', // This remove the border-bottom per field
                ])
        ];
    }

Changelog

1.0.1

  • Now support nova 3.0.
  • Some wrong type fixed.

1.0.0

  • Recently published.

Disclaimer

This package isn't tested. Feel free to make PR with improvements.

Screenshots

Reviews

By Mike on April 2, 2020

@demency is a very competant developer, his packages are awesome, and his support is above an beyond! Thank you!

Back to Top
Added 6 years ago
Last updated 4 Years Ago
Version 1.0.2
Nova Version ^2.0|^3.0
Composer
demency/nova-gridder
GitHub stars 16
Packagist downloads 15,142

Favorites

9 users favorited

Rating

4.50
(out of 5)
★★★★★
★★★★
★★★
★★
2 ratings

Contributors

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas