Abhoryo/APYDataGridBundle — pull request #275 by stanislavprokopov (2012-10-16 11:55:34+00:00)
Title: RowAction rendering manipulation

Added a callback to **RowAction**, to manipulate rendering of action for every row.

This allows to hide actions for some rows and show for others, and change any other **RowAction** params, depending on the row data.

**Example:**
You have a grid of users and you want an action to block users, but dont want to have this action if the user is already blocked.
```php
$rowAction = new RowAction('Block', 'user_block', false, '_self', array(), null);
$rowAction->setRouteParameters(array('id'));
$rowAction->manipulateRender(function($action, $row) {
if($row->getField('is_blocked')) {
return false;
} else {
return $action;
}
});
$grid->addRowAction($rowAction);
```
**Result:** users that have is_blocked flag set, dont have the Block row action