orchidsoftware / platform

Orchid is a @laravel package that allows for rapid application development of back-office applications, admin/user panels, and dashboards.
https://orchid.software
MIT License
4.26k stars 631 forks source link

Make accordion items stay open when another item is opened. #2677

Closed armandohg closed 11 months ago

armandohg commented 11 months ago

Proposed Changes

Usage

Layout::accordion([
    'Personal Information' => [
        Layout::rows([
            Input::make('user.name')
                ->type('text')
                ->required()
                ->title('Name')
                ->placeholder('Name'),

            Input::make('user.email')
                ->type('email')
                ->required()
                ->title('Email')
                ->placeholder('Email'),
        ]),
    ],
    'Billing Address'      => [
        Layout::rows([
            Input::make('address')
                ->type('text')
                ->required(),
        ]),
    ],
])->stayOpen()