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

Problem on custom grid tools #29

Open
enaeim opened this issue May 24, 2018 · 0 comments
Open

Problem on custom grid tools #29

enaeim opened this issue May 24, 2018 · 0 comments

Comments

@enaeim
Copy link

enaeim commented May 24, 2018

Hi.

I use two grid on one page. and use custom grid tools on each gird. I use the code of below on the first grid tools:
$grid->tools(function (Grid\Tools $tools) { $tools->batch(function (Grid\Tools\BatchActions $batch) { $batch->disableDelete(); foreach (Driver::active()->get() as $d) { $batch->add("$d->name", new SetDriver($d->id)); } }); });

and second gird:
$grid->tools(function (Grid\Tools $tools) { $tools->batch(function (Grid\Tools\BatchActions $batch) { $batch->disableDelete(); $batch->add("Unset driver", new UnsetDriver(0)); $batch->add("done", new OrdersSetDone(0)); }); });

When I click on first grid tools all of things is OK. But I click on second grid tools (for example Unset driver) Both of the UnsetDriver() and SetDriver() are executed.

Please Help Me !!

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

1 participant