src/Table/Table/Columns.php
public function addButtonDelete($link = '#', $binds = [], $is_remote = true, $method = 'delete')
    {
        $c = new Column\Button(configurator()->get('button.delete.name'), configurator()->get('button.delete.label'), $link, $binds);
        $c->setOptionAsDanger();
        $c->icon(configurator()->get('button.delete.icon'));
        if ($is_remote) {
            $c->enableRemote($method);
        }
        $this->addColumn($c);
        return $c;
    }
public function addButtonDelete($link = '#', $binds = [], $is_remote = true, $method = 'delete')
    {
        $c = new Column\Button(configurator()->get('button.delete.name'), configurator()->get('button.delete.label'), $link, $binds);
        $c->setOptionAsDanger();
        $c->icon(configurator()->get('button.delete.icon'));
        if ($is_remote) {
            $c->enableRemote($method);
        }
        $this->addColumn($c);
        return $c;
    }
public function addButtonDelete ( $ link = '#' , $ binds = [ ] , $ is_remote = true , $ method = 'delete' ) { $ c = new Column \ Button ( configurator ( ) -> get ( 'button.delete.name' ) , configurator ( ) -> get ( 'button.delete.label' ) , $ link , $ binds ) ; $ c -> setOptionAsDanger ( ) ; $ c -> icon ( configurator ( ) -> get ( 'button.delete.icon' ) ) ; if ( $ is_remote ) { $ c -> enableRemote ( $ method ) ; } $ this -> addColumn ( $ c ) ; return $ c ; }
Add default delete button

@param string $link
@param array $binds
@param array $attr
@return \FrenchFrogs\Table\Column\Button
Add default delete button