Forms and Widgets

Viewflow provides an alternative approach to rendering forms in Django, keeping strong separation between Python and HTML code. This allows developers to keep their code DRY and free from the underlying HTML/CSS rendering details.Viewflow also offers layouts that allow developers to set the relative location and size of fields.

../_images/Form.png

To render forms, Viewflow uses Google Material Web Components, which provide a modern and flexible way of creating forms. Additionally, Viewflow provides a web component called <vf-form/> that allows for submitting forms with Hotwire/Turbo, offering a single-page application (SPA) look and feel for the standard Django interface. This feature makes it easy for developers to create highly interactive and responsive forms without having to write custom JavaScript code.

Viewflow offers the alternative approach to rendering forms in django. Strong Python/HTML code separation keeps you code DRY and free from underline HTML/CSS rendering details. Field rendering customization happens in a template, not in code. Layouts allow setting relative location and size of fields.