src/Buttons/BetterButton.php
public function Field($properties = array ())
    {
        if ($this->isGrouped()) {
            $this->transformToInput();
        } else {
            $this->transformToButton();
        }

        return parent::Field($properties);
    }
public function Field($properties = array ())
    {
        if ($this->isGrouped()) {
            $this->transformToInput();
        } else {
            $this->transformToButton();
        }

        return parent::Field($properties);
    }
Render the field with the correct attributes
@param array $properties
@return  FormAction