Encore\Admin\Grid\Column::button PHP Method

button() public method

Wrap value as a button.
public button ( string $style = 'default' )
$style string
    public function button($style = 'default')
    {
        if (is_array($style)) {
            $style = array_map(function ($style) {
                return 'btn-' . $style;
            }, $style);
            $style = implode(' ', $style);
        } elseif (is_string($style)) {
            $style = 'btn-' . $style;
        }
        $wrapper = "<span class='btn {$style}'>{value}</span>";
        $this->htmlWrapper($wrapper);
        return $this;
    }