src/DataTable.php
public function setColumns($columns)
    {
        foreach ($columns as $c) {
            $this->setColumn($c, isset($c['show']) ? $c['show'] : true);
        }

        return $this;
    }
public function setColumns($columns)
    {
        foreach ($columns as $c) {
            $this->setColumn($c, isset($c['show']) ? $c['show'] : true);
        }

        return $this;
    }
public function setColumns ( $ columns ) { foreach ( $ columns as $ c ) { $ this -> setColumn ( $ c , isset ( $ c [ 'show' ] ) ? $ c [ 'show' ] : true ) ; } return $ this ; }
Add columns to the table

@param array $columns

@return self
Add columns to the table