Yajra\Datatables\Html\Builder::addCheckbox PHP 메소드

addCheckbox() 공개 메소드

Add a checkbox column.
public addCheckbox ( array $attributes = [] )
$attributes array
    public function addCheckbox(array $attributes = [])
    {
        $attributes = array_merge(['defaultContent' => '<input type="checkbox" ' . $this->html->attributes($attributes) . '/>', 'title' => $this->form->checkbox('', '', false, ['id' => 'dataTablesCheckbox']), 'data' => 'checkbox', 'name' => 'checkbox', 'orderable' => false, 'searchable' => false, 'exportable' => false, 'printable' => true, 'width' => '10px'], $attributes);
        $this->collection->push(new Column($attributes));
        return $this;
    }