diff --git a/CHANGELOG.md b/CHANGELOG.md index c77c0ca18..2cc50591d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,10 @@ All notable changes to `laravel-livewire-tables` will be documented in this file -## [3.0.0-beta.2] - Removing superfluous item from blade +## [UNRELEASED] - Removes superfluous @endphp from the DateRangeFilter blade - Removes reference to remote/published 3rd party assets +- Add setFilterLabelAttributes Capability Per-Filter ## [3.0.0-beta.1] - 3.x Amends - Amending Documentation for Reordering 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' => []) + + +