diff --git a/CHANGELOG.md b/CHANGELOG.md index 87d92ccc4..a46625b60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,13 @@ All notable changes to `laravel-livewire-tables` will be documented in this file -## [Unreleased] - 3.x Amends +## [3.0.0-beta.1] - 2023-10-08 +- Removes superfluous @endphp from the DateRangeFilter blade +- Removes reference to remote/published 3rd party assets +- Add setFilterLabelAttributes Capability Per-Filter +- Fix for reorder sort not applying automatically + +## [3.0.0-beta.0] - 3.x Initial Release - Amending Documentation for Reordering - Adding capabilities & tests for setTrAttributes - Force calculation of even/odd only once in reorder mode @@ -27,7 +33,6 @@ All notable changes to `laravel-livewire-tables` will be documented in this file - Add setExcludeDeselectedColumnsFromQueryEnabled and setExcludeDeselectedColumnsFromQueryDisabled methods to configure() -## [Unreleased] - 3.x (beta-0) - Requirements Change - Requires LiveWire 3.x - Requires PHP 8.1+ diff --git a/docs/filters/available-methods.md b/docs/filters/available-methods.md index 413181f37..1e3ede084 100644 --- a/docs/filters/available-methods.md +++ b/docs/filters/available-methods.md @@ -332,26 +332,52 @@ SelectFilter::make('Active') ->setCustomFilterLabel('path.to.blade') ``` -You will receive two properties to your blade, filter (the filter instance), and theme (your chosen theme). You may access the filter layout as shown below - -Example blade: +You will receive several properties to your blade, explained here: +- $filter (the filter instance) +- $filterLayout ('slide-down' or 'popover') +- $tableName (the table name) +- $isTailwind (bool - is theme Tailwind) +- $isBootstrap (bool - is theme Bootstrap 4 or Bootstrap 5) +- $isBootstrap4 (bool - is theme Bootstrap 4) +- $isBootstrap5 (bool - is theme Bootstrap 5) +- $customLabelAttributes (array -> any customLabel attributes set using setFilterLabelAttributes()) + +Example label blade: ```php -@aware(['component']) -@props(['filter']) +@props(['filter', 'filterLayout' => 'popover', 'tableName' => 'table', 'isTailwind' => false, 'isBootstrap' => false, 'isBootstrap4' => false, 'isBootstrap5' => false, 'customLabelAttributes' => []) + + +