lowerrocklabs / laravel-livewire-tables-advanced-filters
Additional/Advanced Filters for Rappasoft's Laravel Livewire Tables
Installs: 2 192
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 0
Forks: 0
Open Issues: 10
Language:HTML
Requires
- php: ^7.4|^8.0|^8.1
- illuminate/contracts: ^8.0|^9.0|^10.0
- livewire/livewire: ^2.6
- rappasoft/laravel-livewire-tables: ^2.12|dev-devlatest
Requires (Dev)
- ext-sqlite3: *
- brianium/paratest: ^5.0|^6.1|^7.0
- friendsofphp/php-cs-fixer: ^3.13
- laravel/dusk: ^6.0|^7.0|^7.7
- laravel/pint: ^1.2
- nunomaduro/larastan: ^1.0|^2.0
- orchestra/testbench: ^6.13|^7.0|^8.0|^9.0
- pcov/clobber: ^2.0
- phpstan/phpstan: ^1.8
- phpunit/phpunit: ^8.0|^9.3|^10.0
- spatie/laravel-ray: ^1.9
- vimeo/psalm: ^4.0
- dev-main
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11-beta
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0
- 0.51-beta
- 0.7.1
- 0.7
- 0.6.0-beta
- 0.5.3-beta
- 0.5.2-beta
- 0.5.1-beta
- 0.5-beta
- 0.4-beta
- v0.3-beta
- 0.2-alpha
- 0.1-alpha
- dev-develop
- dev-Rappasoftv2.12
- dev-image-data-L10
- dev-image-data-L8
- dev-image-data-L9
- dev-lrljoe-patch-1
- dev-traitEdition
- dev-filterDefaultFix
- dev-Laravel8
- dev-dev
This package is auto-updated.
Last update: 2024-10-13 20:04:13 UTC
README
LaravelLivewireTablesAdvancedFilters
Advanced filters for Rappasoft Laravel Livewire Tables v2.0 and above
- Numeric Range Filter
- Date Range Filter
- Date Picker Filter
- Smart Select (Select2 Style)
- Component Filter (Under Development)
Demo Available Here: https://tabledemo.lowerrocklabs.com/
Package is currently under active development & testing, please use caution when using in a production environment.
Configuration
Please see the Wiki for detailed configuration options and examples.
Current Status
Laravel Support
Installation
This package is available to be installed via Composer
composer require lowerrocklabs/laravel-livewire-tables-advanced-filters
The Filters
Filter classes should be in your table's head in the same way as existing filters.
Numeric Range Filter
Filter with a configurable Minimum/Maximum value, provides two values to the filter() function
Date Filters
There are two filters, one is a standard single-date picker (DatePickerFilter), and the other is a range filter (DateRangeFilter)
Date Range Filter
Flatpickr Filter with a configurable Minimum/Maximum value, provides two values to the filter() function () in the form of an array.
Date Picker Filter
Flatpickr Filter with a configurable Minimum/Maximum value, provides one values to the filter() function
SmartSelect Filter
A Select2 style Filter built in AlpineJS. This takes a list of potential options, and allows the end-user to filter them on-the-fly, and select appropriate values.
Other Notes
This package makes several on-the-fly adjustments to the default toolbar blade, including:
- Customisable width of the filter menu Set the following value in the configuration file. You may pass any valid width class/selectors to this field. 'customFilterMenuWidth' => 'md:w-80',
- Filter menu will lock open until you click to close the menu
Publishing Assets
CSS
You may publish these to your public path using:
php artisan vendor:publish livewiretablesadvancedfilters-css
Lang
php artisan vendor:publish livewiretablesadvancedfilters-lang
Views
Please exercise restraint when publishing the views, as this package is in active development!
php artisan vendor:publish livewiretablesadvancedfilters-views