src/Helpers/UI/Button.php
public function setType($type)
    {
        $this->type = in_array($type = strtolower($type), ['button', 'submit', 'reset']) ? $type : 'button';

        return $this;
    }
public function setType($type)
    {
        $this->type = in_array($type = strtolower($type), ['button', 'submit', 'reset']) ? $type : 'button';

        return $this;
    }
public function setType ( $ type ) { $ this -> type = in_array ( $ type = strtolower ( $ type ) , [ 'button' , 'submit' , 'reset' ] ) ? $ type : 'button' ; return $ this ; }
Set the button type.

@param  string  $type

@return self
Set the button type .