public function _button(Column\Button $column, array $row) { if ($column->hasOption()) { $column->addClass(constant('static::' . $column->getOption())); } if ($column->hasSize()) { $column->addClass(constant('static::' . $column->getSize())); } $column->addClass(static::BUTTON_CLASS); $column->addAttribute('href', $column->getBindedLink($row)); $label = ''; if ($column->hasIcon()) { $label .= html('i', ['class' => $column->getIcon()]); } $name = $column->getLabel(); if ($column->isIconOnly()) { $column->addAttribute('data-toggle', 'tooltip'); } else { $label .= $name; } $column->addAttribute('title', $name); $html = html('a', $column->getAttributes(), $label); return $html; }