src/PeskyCMF/Scaffold/DataGrid/DataGridConfig.php
public function setAdditionalColumnsToSelect(...$columnNames) {
        parent::setAdditionalColumnsToSelect($columnNames);
        foreach ($this->getAdditionalColumnsToSelect() as $name) {
            $this->addValueViewer($name, DataGridColumn::create()->setIsVisible(false));
        }
        return $this;
    }
public function setAdditionalColumnsToSelect(...$columnNames) {
        parent::setAdditionalColumnsToSelect($columnNames);
        foreach ($this->getAdditionalColumnsToSelect() as $name) {
            $this->addValueViewer($name, DataGridColumn::create()->setIsVisible(false));
        }
        return $this;
    }
public function setAdditionalColumnsToSelect ( ... $ columnNames ) { parent :: setAdditionalColumnsToSelect ( $ columnNames ) ; foreach ( $ this -> getAdditionalColumnsToSelect ( ) as $ name ) { $ this -> addValueViewer ( $ name , DataGridColumn :: create ( ) -> setIsVisible ( false ) ) ; } return $ this ; }
Mimics setInvisibleColumns()
@param array $columnNames
@return $this
@throws \UnexpectedValueException
@throws \PeskyCMF\Scaffold\ScaffoldException
@throws \InvalidArgumentException
@throws \BadMethodCallException
Mimics setInvisibleColumns ()