Ublaboo\DataGrid\Column\ItemDetail::renderButton PHP Method

renderButton() public method

Render row item detail button
public renderButton ( Row $row ) : Nette\Utils\Html
$row Row
return Nette\Utils\Html
    public function renderButton($row)
    {
        $a = Html::el('a')->href($this->grid->link('getItemDetail!', ['id' => $row->getId()]))->data('toggle-detail', $row->getId())->data('toggle-detail-grid', $this->grid->getName());
        $this->tryAddIcon($a, $this->getIcon(), $this->getText());
        $a->addText($this->text);
        if ($this->title) {
            $a->title($this->grid->getTranslator()->translate($this->title));
        }
        if ($this->class) {
            $a->class($this->class);
        }
        return $a;
    }

Same methods

ItemDetail::renderButton ( Row $row ) : Nette\Utils\Html