https://github.com/nrml-co/nova-big-filter
A nice looking filter menu that's always open.
https://github.com/nrml-co/nova-big-filter
cards filters laravel nova
Last synced: 6 months ago
JSON representation
A nice looking filter menu that's always open.
- Host: GitHub
- URL: https://github.com/nrml-co/nova-big-filter
- Owner: nrml-co
- License: mit
- Created: 2019-03-05T04:45:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-09T23:44:08.000Z (over 5 years ago)
- Last Synced: 2025-09-20T09:20:14.874Z (9 months ago)
- Topics: cards, filters, laravel, nova
- Language: Vue
- Homepage:
- Size: 356 KB
- Stars: 36
- Watchers: 2
- Forks: 12
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
## Laravel Nova Big Filter
[](https://packagist.org/packages/nrml-co/nova-big-filter)
[](https://packagist.org/packages/nrml-co/nova-big-filter)
A nice looking filter menu that's always open.

## Install
Install the package in to a [Laravel Nova](https://nova.laravel.com) project via composer:
```bash
composer require nrml-co/nova-big-filter
```
## Usage
Add the class to the card array of a resource with filters. The default 'Per Page' filter is not included. If you add the card but don't have any filters, you wont see anything. Add some filters and it will show up.
This package makes life easy by eliminating the tiresome click and scroll of the default filter. You may have to play with the order of your filters to get things looking great. For instance, Date Filters look best on the bottom.
```php
use NrmlCo\NovaBigFilter\NovaBigFilter;
use App\Nova\Filters\YourFilter;
use App\Nova\Filters\YourOtherFilter;
public function filters()
{
return [
new YourFilter,
new YourOtherFilter,
];
}
public function cards()
{
return [
new NovaBigFilter,
];
}
```
## Customization
Adding customization functions as needed, and by request. :)
### setTitle($title)
Use setTitle to change the card title. The default is 'Filter Menu'.
```php
public function cards()
{
return [
(new NovaBigFilter)->setTitle('Big Filter'),
];
}
```
### setMaxHeight($height)
Use setMaxHeight to change the max height of the filter block. The default is 350.
```php
public function cards()
{
return [
(new NovaBigFilter)->setMaxHeight(400),
];
}
```
### hideFilterTitle()
Use hideFilterTitle to hide a title of the filter block, if you don't need it.
```php
public function cards()
{
return [
(new NovaBigFilter)->hideFilterTitle(),
];
}
```