Form
It represents a form container that can group input fields and controls. A form can handle submission via an action callback, be styled with a frame, and optionally support autocomplete behavior.
Constructors
Form
Form creates a new form containing the given child views.
Methods
| Method | Description |
|---|---|
Action(action func()) | Action sets the callback function to be executed when the form is submitted. |
Autocomplete(b bool) | Autocomplete enables or disables browser autocomplete for the form. |
Frame(frame Frame) | Frame sets the layout frame of the form, including size and positioning. |
ID(id string) | ID assigns a unique identifier to the form. |