niftygrid use select box to pass variables to presenter

kevchal
Member | 10
+
0
-

Hi every one,
I am using NiftyGrid (https://addons.nette.org/…y/nifty-grid)
and I have some problem to get the variables which correspond to the line ticked.
I am using this piece of code for that.

<?php

$this->addAction("delete","Smazat")
    ->setCallback(function($id) use ($self){return $self->handleDelete($id);})
    ->setConfirmationDialog("Určitě chcete smazat všechny vybrané članky?");

?>

But I do not understand how to redirect the variable $id which contain my variables to a method handle inside my presenter.

Thanks in advance for your help