/** * Render column cell * * @param $instance * @param int $totalCount * @param string $content * @return string */ public function render($instance, $totalCount, $content = null) { if (is_null($content)) { $content = $this->valueFromInstance($instance, $this->name); } $content = $this->renderAppends($instance, $totalCount, $content); return $this->htmlBuilder->tag('td', $this->getAttributesForCell($instance), $content); }
/** * Render column header * * @return string */ public function renderHeader() { return $this->htmlBuilder->tag('th', $this->getAttributesForHeader(), $this->label); }
/** * @return string */ protected function renderSingleItem() { $content = $this->htmlBuilder->tag('i', ['class' => ['fa', 'fa-fw', $this->getIcon()]]); $content .= ' ' . $this->getLabel(); return $this->htmlBuilder->tag('a', ['href' => $this->getUrl()], $content); }