Skip to content
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

How do I clear Selection #15

Open
slouma2000 opened this issue Mar 1, 2023 · 2 comments
Open

How do I clear Selection #15

slouma2000 opened this issue Mar 1, 2023 · 2 comments

Comments

@slouma2000
Copy link

Hello

I need to cancel or clear selection in case of singleSelection

Thanks

@Tarpsvo
Copy link
Contributor

Tarpsvo commented Mar 1, 2023

Try ->nullable()

@slouma2000
Copy link
Author

Where exactly please?

I have a workaround by adding an option with specific value
$options->prepend('All', 'all');
Then in the apply method of my filter
if(is_array($value) && 'all' === $value[0]){
return Model::query();
}

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

No branches or pull requests

2 participants