src/Screen/Builder.php
public function generateForm(): string
    {
        foreach ($this->fields as $field) {
            if (is_array($field)) {
                $this->renderGroup($field);
                continue;
            }

            $this->form .= $this->render($field);
        }

        return $this->form;
    }
public function generateForm(): string
    {
        foreach ($this->fields as $field) {
            if (is_array($field)) {
                $this->renderGroup($field);
                continue;
            }

            $this->form .= $this->render($field);
        }

        return $this->form;
    }
public function generateForm ( ) : string { foreach ( $ this -> fields as $ field ) { if ( is_array ( $ field ) ) { $ this -> renderGroup ( $ field ) ; continue ; } $ this -> form .= $ this -> render ( $ field ) ; } return $ this -> form ; }
Generate a ready-made html form for display to the user.

@throws \Throwable

@return string
Generate a ready - made html form for display to the user .