public function addColumns(array $cols) {
        foreach ($cols as $col) {
            $this->cols[] = DataColumn::fromArray($col);
        }
    }
public function addColumns(array $cols) {
        foreach ($cols as $col) {
            $this->cols[] = DataColumn::fromArray($col);
        }
    }
public function addColumns ( array $ cols ) { foreach ( $ cols as $ col ) { $ this -> cols [ ] = DataColumn :: fromArray ( $ col ) ; } }
Adds multiple columns at the end of the array
the column should be an associative array, that can have 'label', 'id' and 'type'
@param array $cols
Adds multiple columns at the end of the array the column should be an associative array that can have label id and type