-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request : Optionnal global searchForm #58
Labels
enhancement
An enhancement to an existing feature
Comments
Noted. Looking into this |
I've added a fix; class UsersController extends Controller
{
/**
* Display a listing of the resource.
*
* @param UsersGridInterface $usersGrid
* @param Request $request
* @return \Illuminate\Http\Response
*/
public function index(UsersGridInterface $usersGrid, Request $request)
{
return $usersGrid
->create(['query' => User::query(), 'request' => $request])
->withoutSearchForm() // this disables the search form for that grid without you setting/unsetting any variables
->renderOn('users.index');
}
} Or simply just override the property |
If youre using |
I tried |
Aah, forgot to merge that fix to master. Try again in a few minutes... |
Works fine ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
{!! $grid->renderSearchForm() !!}
is not always wanted, but ATM, we cannot enable/disable it per grid.
The text was updated successfully, but these errors were encountered: