public function initialize()
    {
        parent::initialize();

        $this->setHtmlAttributes($this->getHtmlAttributes() + [
            'name'          => 'next_action',
            'class'         => 'btn btn-danger btn-delete',
            'data-url'      => $this->getModelConfiguration()->getDeleteUrl($this->getModel()->getKey()),
            'data-redirect' => $this->getModelConfiguration()->getDisplayUrl(),
        ]);
    }
public function initialize()
    {
        parent::initialize();

        $this->setHtmlAttributes($this->getHtmlAttributes() + [
            'name'          => 'next_action',
            'class'         => 'btn btn-danger btn-delete',
            'data-url'      => $this->getModelConfiguration()->getDeleteUrl($this->getModel()->getKey()),
            'data-redirect' => $this->getModelConfiguration()->getDisplayUrl(),
        ]);
    }
public function initialize ( ) { parent :: initialize ( ) ; $ this -> setHtmlAttributes ( $ this -> getHtmlAttributes ( ) + [ 'name' => 'next_action' , 'class' => 'btn btn-danger btn-delete' , 'data-url' => $ this -> getModelConfiguration ( ) -> getDeleteUrl ( $ this -> getModel ( ) -> getKey ( ) ) , 'data-redirect' => $ this -> getModelConfiguration ( ) -> getDisplayUrl ( ) , ] ) ; }
Init Delete Button.
Init Delete Button .