form_section Widget

A form_section widget shows a labeled grouping of widgets.

Attributes:

  • widgets: [Widget]
    • Required
    • A list of widgets to display
  • title: "Section 1"
    • A text label

Example

screenshot screenshot

# Ruby
nav_page(title: "Form Section") {
  scroll {
    column(widgets: [
      form_section(title: "Section 1", widgets: [text("text"), text("text")]),
      form_section(title: "Section 2", widgets: [text("text"), text("text")]),
    ])
  }
}
#![allow(unused)]
fn main() {
// Rust
nav_page(
    "Form Section",
    scroll(column((
        form_section("Section 1", (text("text"), text("text"))),
        form_section("Section 2", (text("text"), text("text"))),
    ))),
)
}