form Widget

A form arranges its child widgets in a vertical column, separated by horizontal lines.

Attributes:

  • widgets: [Widget]
    • Required
    • Widgets to display, in order starting with the top
    • May be empty

Example

screenshot screenshot

# Ruby nav_page(title: "Form") { scroll { form(widgets: [ text("text"), checkbox(var_name: "box1", text: "Box 1"), form_button(text: "Next", actions: [rpc("/next"), push("/page2")]), ]) } }
#![allow(unused)] fn main() { // Rust nav_page( "Form", scroll(form(( text("text"), checkbox("box1").with_text("Box 1"), form_button("Next", [rpc("/next"), push("/page2")]), ))), ) }