Download the PHP package webbingbrasil/filament-advancedfilter without Composer
On this page you can find all versions of the php package webbingbrasil/filament-advancedfilter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webbingbrasil/filament-advancedfilter
More information about webbingbrasil/filament-advancedfilter
Files in webbingbrasil/filament-advancedfilter
Package filament-advancedfilter
Short Description Advanced filter component for filament admin.
License MIT
Homepage https://github.com/webbingbrasil/filament-advancedfilter
Informations about the package filament-advancedfilter
Filament Advanced Filter
A collection of easy-to-use filters with clause conditions to Filament
Note For Filament 2.x use 2.x branch
Installation
Install the package via composer (requires filament >= 3.x)
Optionally you can publish the translation files
Available Filters
BooleanFilter
Filter records by boolean column:
In some cases you can have a nullable
column, the BooleanFilter can handle nulls in different ways:
- Treats nulls as Unknown
- Treats nulls as True
- Treats nulls as False
by default nulls
are treated as unknown and hidden
DateFilter
Filter records by date/timestamp column:
This filter allows users to search records in the following conditions:
- Is equal/not equal to user's input
- Is on or after/before user's input
-
Is more/less than user's input
the user has the option to choose a time interval (day, week, month, year) in the future/past, for example:
- more than 3 days from now
- more than 4 months ago
- less than 5 weeks from now
- less than 6 days ago
- more than 1 year ago
- Is between user's input
- Is set/not set
NumberFilter
Filter records by numeric column:
This filter allows users to search records in the following conditions:
- Is equal/not equal to user's input
- Is on or after/before user's input
- Is more than/less than user's input
- Is between user's input
- Is set/not set
TextFilter
Filter records by text column:
This filter allows users to search records in the following conditions:
- Is equal/not equal to user's input
- Starts/not starts with user's input
- Ends/not ends with user's input
- Contains/not contains user's input
- Is set/not set
Set Default Clause
You can set a default clause condition for any filter, for example:
Enable Clause Label
By default the clause label is disabled, you can enable it by calling the enableClauseLabel
method:
Fields Wrapper
You can change the wrapper for the filter fields, for example to use a Group component instead of Fieldset:
Field Debounce
You can set a custom debounce time for the filter fields, for example to wait 700ms before applying the filter:
By default the debounce time is 500ms.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-advancedfilter with dependencies
spatie/laravel-package-tools Version ^1.9.2
filament/filament Version ^3.0.0