Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Search in translate value of VirtualColumn #985

Open
sansxd opened this issue Apr 21, 2022 · 1 comment
Open

Search in translate value of VirtualColumn #985

sansxd opened this issue Apr 21, 2022 · 1 comment

Comments

@sansxd
Copy link

sansxd commented Apr 21, 2022

hi , is posible search with translate value in a virtualcolumn? i try to search but return nothing.

inside getLineFormatter method i have this

match ($rowClass) { 'WORKFLOW' => $rowClass = 'Espacio de Trabajo', 'PERSONAL' => $rowClass = 'Personal', default => $rowClass = 'Sin clasificar' }; $row['sp_classification'] = $rowClass;

and in my buildDatatable i have this

->add('state', VirtualColumn::class, [ 'title' => 'Estado', 'searchable' => true, 'searchable' => true, 'search_column' => 'state' ])

@sansxd
Copy link
Author

sansxd commented Apr 21, 2022

Captura de pantalla de 2022-04-21 15-26-36

i try search certifica... but show nothing

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant