Example #1
0
 /**
  * Renders tab items as specified on [[items]].
  * @return string the rendering result.
  */
 protected function renderItems()
 {
     $html = '';
     foreach ($this->items as $n => $item) {
         if ($item['selected']) {
             $this->options['selected'] = $n;
             unset($item['selected']);
         }
         $html .= Item::widget($item);
     }
     return $html;
 }