# Model grid row actions `model-grid` By default, there are two actions `edit` and `delete`, which can be turned off in the following way: ```php $grid->actions(function ($actions) { $actions->disableDelete(); $actions->disableEdit(); }); ``` You can get the data for the current row by `$actions` parameter passed in: ```php $grid->actions(function ($actions) { // the array of data for the current row $actions->row; // gets the current row primary key value $actions->getKey(); }); ``` If you have a custom action button, you can add the following: ```php $grid->actions(function ($actions) { // append an action. $actions->append(''); // prepend an action. $actions->prepend(''); } ``` If you have more complex actions, you can refer to the following ways: First define the action class: ```php id = $id; } protected function script() { return <<