public function allColumns() { $columns = $this->columns(); if ($this->controlActive()) { $columns[] = Column::control(); } return $columns; }
/** * @param $callback * @return $this */ public function columns($callback) { $old = static::$current; static::$current = $this; call_user_func($callback); Column::control(); Column::checkbox(); static::$current = $old; return $this; }