niftygrid use select box to pass variables

Upozornění: Tohle vlákno je hodně staré a informace nemusí být platné pro současné Nette.
kevchal
Člen | 10
+
0
-

Hi every one,
I am using NiftyGrid I want to have a selectable box in front of each line of the grid like in this example
http://www.grid.jakubholub.cz/actions
I want that when you tick those boxes it passes the variables of the row which were selected this way to my presenter.
If it is possible should I redirect those variables to a render method or an action method ?
I saw this piece of code :

<?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 don't quite understand how does it work.