Download the PHP package codicastudio/mega-filter without Composer
On this page you can find all versions of the php package codicastudio/mega-filter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codicastudio/mega-filter
More information about codicastudio/mega-filter
Files in codicastudio/mega-filter
Package mega-filter
Short Description A random Codica Studio package.
License MIT
Homepage https://github.com/codicastudio/mega-filter
Informations about the package mega-filter
Nova Mega Filter
This package allows you to control the columns and filters shown on your nova resources.
Installation
You can install the package via composer:
Basic Usage
Basic demo showing the power of this field:
Columns
Columns reflects every column that is normally shown on your table resource, however you are free to give your user the ability to toggle it on/off:
You can add additional filters that only appears when the desired column is enabled:
If you want to have filters that are always shown, use the 'filters' option bellow
You can also define columns that can not be toggled by the user and will be always present on the table resource:
When using ->permanent()
every filter that the column may define will be also present
Other column methods include the ability to have a column default checked
Filters
The filters
key accepts an array of any instance of the default Nova filter class or third party.
Actions
Actions will use the same Nova action mechanism
If you have multiple actions defined, a dropdown will be shown:
The columns selected will also be given to your action, you can access them directly from the request:
Settings
The settings key is optional as it comes with some good defaults, but feel free to override it to suit your needs.
License
The MIT License (MIT). Please see License File for more information.