protected function renderBody()
    {
        $rows = [];

        if ($this->data) {
            $j = 0;
            foreach ($this->data as $index => $item) {
                if ($j++ <= $this->max) {
                    $rows[] = $this->renderRowContent($index, $item);
                } else {
                    break;
                }
            }
            for ($i = $j; $i < $this->min; $i++) {
                $rows[] = $this->renderRowContent($i);
            }
        } elseif ($this->min > 0) {
            for ($i = 0; $i < $this->min; $i++) {
                $rows[] = $this->renderRowContent($i);
            }
        }

        return Html::tag('tbody', implode("\n", $rows));
    }
protected function renderBody()
    {
        $rows = [];

        if ($this->data) {
            $j = 0;
            foreach ($this->data as $index => $item) {
                if ($j++ <= $this->max) {
                    $rows[] = $this->renderRowContent($index, $item);
                } else {
                    break;
                }
            }
            for ($i = $j; $i < $this->min; $i++) {
                $rows[] = $this->renderRowContent($i);
            }
        } elseif ($this->min > 0) {
            for ($i = 0; $i < $this->min; $i++) {
                $rows[] = $this->renderRowContent($i);
            }
        }

        return Html::tag('tbody', implode("\n", $rows));
    }
protected function renderBody ( ) { $ rows = [ ] ; if ( $ this -> data ) { $ j = 0 ; foreach ( $ this -> data as $ index => $ item ) { if ( $ j ++ <= $ this -> max ) { $ rows [ ] = $ this -> renderRowContent ( $ index , $ item ) ; } else { break ; } } for ( $ i = $ j ; $ i < $ this -> min ; $ i ++ ) { $ rows [ ] = $ this -> renderRowContent ( $ i ) ; } } elseif ( $ this -> min > 0 ) { for ( $ i = 0 ; $ i < $ this -> min ; $ i ++ ) { $ rows [ ] = $ this -> renderRowContent ( $ i ) ; } } return Html :: tag ( 'tbody' , implode ( "\n" , $ rows ) ) ; }
Renders the body.

@return string
@throws \yii\base\InvalidConfigException
@throws \yii\base\InvalidParamException
Renders the body .