omines / datatables-bundle

DataTables bundle for Symfony
https://omines.github.io/datatables-bundle/
MIT License
258 stars 115 forks source link

ArrayAdapter searchable #82

Closed mschrading closed 5 years ago

mschrading commented 5 years ago

I build a datatable complete with an arrayAdapter

with datas => [ 0 => ['registration'=>'string'], 1 => ['registration'=>'string'] ... ]

$this->dataTableFactory->create() ->add('registration', TextColumn::class, [ 'label' => 'Registration', 'data' => function($value){ return $value['registration']; }, 'field'=>'registration', 'searchable' => true, 'globalSearchable' => true, 'orderable' => true, ] )->createAdapter(ArrayAdapter::class, $datas);

Can I search with $table->isCallBack and $table->getResponse() and how? Please for a hint.

Thank you