livewire-datatables icon indicating copy to clipboard operation
livewire-datatables copied to clipboard

highlight search doesn't work on callback columns

Open andrecuellar opened this issue 3 years ago • 2 comments

Hello, I have this column

        Column::callback(['min_distance'], function ($min_distance) {
            return $min_distance . ' m.';
        })->label('Trade area)
            ->searchable(),

But if I do a search, the result is displayed without highlighting

image

Is there any solution for this?

andrecuellar avatar Feb 21 '22 19:02 andrecuellar

I am also facing a similar issue.

On the columns , where we have the callback the search is not working on those.

sample code:

Column::name('test') ->callback(['test'], function ($test) { return $test== 1 ? 'Test1' : 'Test2'; }) ->label('Test Type') ->searchable(), Now when searching for Test1 or Test2 the search doesn't work.

Any suggestions?

amardeepgp avatar Mar 03 '22 07:03 amardeepgp

Any updates guys, I am still stuck with this issue? Please suggest!

amardeepgp avatar Mar 15 '22 15:03 amardeepgp