src/Helper/Modal.php
public function setButton($content, array $attr = [])
    {
        if (is_array($content)) {
            $attr = $content[1];
            $content = $content[0];
        }

        $this->button = [
            $content, $attr
        ];

        return $this;
    }
public function setButton($content, array $attr = [])
    {
        if (is_array($content)) {
            $attr = $content[1];
            $content = $content[0];
        }

        $this->button = [
            $content, $attr
        ];

        return $this;
    }
public function setButton ( $ content , array $ attr = [ ] ) { if ( is_array ( $ content ) ) { $ attr = $ content [ 1 ] ; $ content = $ content [ 0 ] ; } $ this -> button = [ $ content , $ attr ] ; return $ this ; }
set button properties

@param string $content content of button
@param array  $attr    button attributes

@return Modal

@access public
set button properties