Exemple #1
0
 /**
  * Renders the header cell.
  */
 public function renderHeaderCell()
 {
     if ($this->grid->enableSorting && $this->sortable && $this->name !== null) {
         $direction = $this->grid->dataProvider->sort->getDirection($this->name);
         if ($direction !== null) {
             $sortCssClass = $direction ? 'headerSortDown' : 'headerSortUp';
             $this->headerHtmlOptions['class'] .= ' ' . $sortCssClass;
         }
     }
     parent::renderHeaderCell();
 }
 public function renderHeaderCell()
 {
     $this->headerHtmlOptions['width'] = '30px';
     parent::renderHeaderCell();
 }