src/Charcoal/Ui/Layout/LayoutTrait.php
public function rowNumCells($position = null)
    {
        if ($position === null) {
            $position = $this->position();
        }

        // Get the data ta position
        $row = $this->rowData($position);
        $numCells = isset($row['columns']) ? count($row['columns']) : null;
        return $numCells;
    }
public function rowNumCells($position = null)
    {
        if ($position === null) {
            $position = $this->position();
        }

        // Get the data ta position
        $row = $this->rowData($position);
        $numCells = isset($row['columns']) ? count($row['columns']) : null;
        return $numCells;
    }
public function rowNumCells ( $ position = null ) { if ( $ position === null ) { $ position = $ this -> position ( ) ; } // Get the data ta position $ row = $ this -> rowData ( $ position ) ; $ numCells = isset ( $ row [ 'columns' ] ) ? count ( $ row [ 'columns' ] ) : null ; return $ numCells ; }
Get the number of cells at current position

This can be different than the number of columns, in case

@param integer $position Optional. Forced position.
@return integer
Get the number of cells at current position