src/SweetAlert.php
public function button($text='OK', $color='#3085d6', $style=true, $class=null)
    {
        $this->params['confirmButtonText'] = $text;
        $this->params['confirmButtonColor'] = $color;
        $this->params['buttonsStyling'] = (bool)$style;
        if (!is_null($class)) {
            $this->params['confirmButtonClass'] = $class;
        }

        return $this;
    }
public function button($text='OK', $color='#3085d6', $style=true, $class=null)
    {
        $this->params['confirmButtonText'] = $text;
        $this->params['confirmButtonColor'] = $color;
        $this->params['buttonsStyling'] = (bool)$style;
        if (!is_null($class)) {
            $this->params['confirmButtonClass'] = $class;
        }

        return $this;
    }
public function button ( $ text = 'OK' , $ color = '#3085d6' , $ style = true , $ class = null ) { $ this -> params [ 'confirmButtonText' ] = $ text ; $ this -> params [ 'confirmButtonColor' ] = $ color ; $ this -> params [ 'buttonsStyling' ] = ( bool ) $ style ; if ( ! is_null ( $ class ) ) { $ this -> params [ 'confirmButtonClass' ] = $ class ; } return $ this ; }
Change Button Properties in the Modal. Like Text , Colour and Style
@param  string
@param  string
@param  boolean
@param  [type]
@return [type]
Change Button Properties in the Modal . Like Text Colour and Style