I am trying to remove search panel from the grid. I have found the function withoutSearchForm() in RendersGrid.php. This function seems to be used in one of the tests so I suppose it should actually work. Here is how I create and render the grid:
public function index(KeysGridInterface $keysGrid, Request $request)
{
return $keysGrid
->create(['query' => Key::latest(), 'request' => $request])
->withoutSearchForm()
->renderOn('home.manage-keys.index');
}
But the search form is still there. The function withoutSearchForm() doesn't seem to change anything.
Could you please help me understand how I need to call it?
Hi,
I am trying to remove search panel from the grid. I have found the function withoutSearchForm() in RendersGrid.php. This function seems to be used in one of the tests so I suppose it should actually work. Here is how I create and render the grid:
But the search form is still there. The function withoutSearchForm() doesn't seem to change anything.
Could you please help me understand how I need to call it?
Thanks in advance