src/DataGrid/DataGrid.php
public function column($identifier, $options = []):self
    {
        if (is_callable($options)) {
            $column = new TextColumn($identifier, $options);
        } else {
            $column = new TextColumn($identifier, $options);
        }

        $this->columns->put($identifier, $column);

        return $this;
    }
public function column($identifier, $options = []):self
    {
        if (is_callable($options)) {
            $column = new TextColumn($identifier, $options);
        } else {
            $column = new TextColumn($identifier, $options);
        }

        $this->columns->put($identifier, $column);

        return $this;
    }
public function column ( $ identifier , $ options = [ ] ) : self { if ( is_callable ( $ options ) ) { $ column = new TextColumn ( $ identifier , $ options ) ; } else { $ column = new TextColumn ( $ identifier , $ options ) ; } $ this -> columns -> put ( $ identifier , $ column ) ; return $ this ; }
Add Text Columns to the DataGrid Columns.

@param string $identifier
@param array $options
@return \AvoRed\Framework\DataGrid\DataGrid $this;
Add Text Columns to the DataGrid Columns .