Download the PHP package marshmallow/nova-date-range-filter without Composer
On this page you can find all versions of the php package marshmallow/nova-date-range-filter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download marshmallow/nova-date-range-filter
More information about marshmallow/nova-date-range-filter
Files in marshmallow/nova-date-range-filter
Package nova-date-range-filter
Short Description A Laravel Nova date range filter.
License MIT
Informations about the package nova-date-range-filter
Date Range Filter for Laravel Nova
Nova filter that displays a Date Range Picker instead of a select. This field also supports dark-mode, Nova 4 and Nova 5.
Install
Run this command in your nova project:
How to use
Add the DateRangeFilter to your resource filters array.
Methods
addRange
With this method, you can set default date ranges that you use frequently. For instance ranges like today, yesterday, this month etc. Please check the example below.
showMonths
With this method, it will be possible to show more then just the current month.
enableTime (beta)
Enable the time selector when you select your date.
minTime (beta)
Set a min time that can be selected.
maxTime (beta)
Set a max time that can be selected.
Localization
The package supports localization for all text elements. The following translations are available out of the box:
- English (en)
- Dutch (nl)
- Ukrainian (uk)
If your language doesn't work in the calendar interface (using Flatpickr localization) itself, please let us know and we will add your language.
Customizing Translations
You can publish the translation files to customize them for your application:
This will copy the translation files to your application's resources/lang/vendor/nova-date-range-filter
directory, where you can modify them or add new languages.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- All Contributors
License
The MIT License (MIT). Please see License File for more information.