src/CRUD.php
public function initDelete()
    {
        $this->addAction(['icon' => 'red trash'], function ($jschain, $id) {
            $this->model->load($id)->delete();

            return $jschain->closest('tr')->transition('fade left');
        }, 'Are you sure?');
    }
public function initDelete()
    {
        $this->addAction(['icon' => 'red trash'], function ($jschain, $id) {
            $this->model->load($id)->delete();

            return $jschain->closest('tr')->transition('fade left');
        }, 'Are you sure?');
    }
public function initDelete ( ) { $ this -> addAction ( [ 'icon' => 'red trash' ] , function ( $ jschain , $ id ) { $ this -> model -> load ( $ id ) -> delete ( ) ; return $ jschain -> closest ( 'tr' ) -> transition ( 'fade left' ) ; } , 'Are you sure?' ) ; }
Initialize UI for deleting records.
Initialize UI for deleting records .