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
FYI: Works on a normal select field.
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