public function setColumns(array $columns)
    {
        // add columns
        foreach($columns['add'] as $key => $value) {
            $this->dataTables->addColumn($key, $value);
        }

        // edit columns
        foreach($columns['edit'] as $key => $value) {
            $this->dataTables->editColumn($key, $value);
        }

        // remove columns
        foreach($columns['remove'] as $value) {
            $this->dataTables->removeColumn($value);
        }
    }
public function setColumns(array $columns)
    {
        // add columns
        foreach($columns['add'] as $key => $value) {
            $this->dataTables->addColumn($key, $value);
        }

        // edit columns
        foreach($columns['edit'] as $key => $value) {
            $this->dataTables->editColumn($key, $value);
        }

        // remove columns
        foreach($columns['remove'] as $value) {
            $this->dataTables->removeColumn($value);
        }
    }
public function setColumns ( array $ columns ) { // add columns foreach ( $ columns [ 'add' ] as $ key => $ value ) { $ this -> dataTables -> addColumn ( $ key , $ value ) ; } // edit columns foreach ( $ columns [ 'edit' ] as $ key => $ value ) { $ this -> dataTables -> editColumn ( $ key , $ value ) ; } // remove columns foreach ( $ columns [ 'remove' ] as $ value ) { $ this -> dataTables -> removeColumn ( $ value ) ; } }
set data table columns

@param array $columns [array('add' => ..., 'edit' => ...,'remove' => ...)]
@return void
set data table columns