AutofillGroup
Groups autofillable controls such as TextField
or CupertinoTextField
.
Examples
Basic example
- Python
import flet as ft
def main(page: ft.Page):
page.add(
ft.AutoFillGroup(
ft.Column(
controls=[
ft.TextField(
label="Name",
autofill_hints=ft.AutoFillHint.NAME,
),
ft.TextField(
label="Email",
autofill_hints=[ft.AutoFillHint.EMAIL],
),
ft.TextField(
label="Phone Number",
autofill_hints=[ft.AutoFillHint.TELEPHONE_NUMBER],
),
ft.TextField(
label="Street Address",
autofill_hints=ft.AutoFillHint.FULL_STREET_ADDRESS,
),
ft.TextField(
label="Postal Code",
autofill_hints=ft.AutoFillHint.POSTAL_CODE,
),
]
)
)
)
ft.app(main)
Properties
content
The content control of this group.
dispose_action
The action to be run when this AutofillGroup
is the topmost AutofillGroup
and it's being disposed, in order to clean
up the current autofill context.
Value is of type AutofillGroupDisposeAction
and defaults
to AutofillGroupDisposeAction.COMMIT
.