Yajra\Datatables\Html\Builder::addAction PHP Method

addAction() public method

Add a action column.
public addAction ( array $attributes = [] )
$attributes array
    public function addAction(array $attributes = [])
    {
        $attributes = array_merge(['defaultContent' => '', 'data' => 'action', 'name' => 'action', 'title' => 'Action', 'render' => null, 'orderable' => false, 'searchable' => false, 'exportable' => false, 'printable' => true, 'footer' => ''], $attributes);
        $this->collection->push(new Column($attributes));
        return $this;
    }