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;
}