Skip to content

A simple vue.js accordion component for Laravel Nova.

Notifications You must be signed in to change notification settings

rderks88/NovaAccordionField

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub release (latest by date) Packagist

NovaAccordionField

A simple vue.js accordion component for Laravel Nova.

image

Installation

composer require imumz/nova-accordion-field

Usage

use Imumz\NovaAccordionField\NovaAccordionField;
...
public function fields(Request $request)
    {
        $array = [
            0 => [
                'name' => 'John Doe',
                'text' => '[email protected]'
            ],
            1 => [
                'name' => 'Jane Doe',
                'text' => '[email protected]'
            ],
            2 => [
                'name' => 'Tom Doe',
                'text' => '[email protected]'
            ],
        ];

        return [
            NovaAccordionField::make('')
            ->data($array)
            ->title('name')
            ->description('text')
        ];
    }

About

A simple vue.js accordion component for Laravel Nova.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 57.4%
  • PHP 33.6%
  • JavaScript 8.7%
  • CSS 0.3%