public function groupBy(string $componentId)
    {
        /** @var IColumn $column */
        list($column, $component) = $this->structure->getColumnAndComponent($componentId);
        $this->groupings[] = new ColumnGrouping($column, $component);

        $this->load($column->getName());

        return $this;
    }
public function groupBy(string $componentId)
    {
        /** @var IColumn $column */
        list($column, $component) = $this->structure->getColumnAndComponent($componentId);
        $this->groupings[] = new ColumnGrouping($column, $component);

        $this->load($column->getName());

        return $this;
    }
public function groupBy ( string $ componentId ) { /** @var IColumn $column */ list ( $ column , $ component ) = $ this -> structure -> getColumnAndComponent ( $ componentId ) ; $ this -> groupings [ ] = new ColumnGrouping ( $ column , $ component ) ; $ this -> load ( $ column -> getName ( ) ) ; return $ this ; }
Adds a column component to section the rows into groups.

@param string $componentId

@return static
Adds a column component to section the rows into groups .