How to search in column that was added using addColumn #2758
Unanswered
cooperinho
asked this question in
Q&A
Replies: 1 comment
-
If you want it to be searchable when using a Note that the snippet below is not tested and just an idea. ->addSelect(DB::raw("CASE WHEN status = 0 THEN 'Not Confirmed' ELSE 'Confirmed' as status")
->filterColumn('status', function($q, $k) {
// do counter part sql for search
}) See docs |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a few columns where I need to combine data of some columns into one and style them and add some text.
This is an added row for example:
How to search in that row by the text? ("Confirmed" or "Not confirmed")?
Beta Was this translation helpful? Give feedback.
All reactions