Htmlable Filter
Does anyone know if a SelectFilter can allow
html
? I got a filter with getOptionLabelFromRecordUsing
that returns a blade file but html
is not available.Solution:Jump to solution
```php
->modifyFormFieldUsing(function (Select $select) {
return $select->allowHtml();
->getOptionLabelFromRecordUsing(function (YourModel $record) {
return view('')->render();...
5 Replies
SelectFilter
![No description](https://cdn.answeroverflow.com/1284075983757901864/Schermafbeelding_2024-09-13_om_10.59.18.png)
FYI: Works on a normal select field.
![No description](https://cdn.answeroverflow.com/1284076191871008768/Schermafbeelding_2024-09-13_om_11.00.13.png)
GitHub
Htmlable Select Filter by CodeWithDennis · Pull Request #14228 · fi...
Description
The SelectFilter didn't support the ->allowHtml() method, even though the Select:: form component did. This PR fixes that issue.
Visual changes
Functional changes
Cod...
Solution