protected function buildRows(array $data)
    {
        $this->rows = collect($data)->map(function ($model, $number) {
            return new Row($number, $model);
        });

        if ($this->rowsCallback) {
            $this->rows->map($this->rowsCallback);
        }
    }
protected function buildRows(array $data)
    {
        $this->rows = collect($data)->map(function ($model, $number) {
            return new Row($number, $model);
        });

        if ($this->rowsCallback) {
            $this->rows->map($this->rowsCallback);
        }
    }
protected function buildRows ( array $ data ) { $ this -> rows = collect ( $ data ) -> map ( function ( $ model , $ number ) { return new Row ( $ number , $ model ) ; } ) ; if ( $ this -> rowsCallback ) { $ this -> rows -> map ( $ this -> rowsCallback ) ; } }
Build the grid rows.

@param array $data

@return void
Build the grid rows .