Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoComplete control #3003

Merged
merged 3 commits into from
Apr 30, 2024
Merged

AutoComplete control #3003

merged 3 commits into from
Apr 30, 2024

Conversation

ndonkoHenri
Copy link
Contributor

@ndonkoHenri ndonkoHenri commented Apr 8, 2024

Closes #791

Test Code:

import flet as ft


def main(page: ft.Page):
    page.add(
        ft.AutoComplete(
            suggestions=[
                ft.AutoCompleteSuggestion(key="one 1", value="One"),
                ft.AutoCompleteSuggestion(key="two 2", value="Two"),
                ft.AutoCompleteSuggestion(key="three 3", value="Three"),
            ],
            on_select=lambda e: print(e.selection),
        )
    )


ft.app(target=main)

@ndonkoHenri ndonkoHenri marked this pull request as ready for review April 10, 2024 22:54
@FeodorFitsner FeodorFitsner merged commit 8d09b8b into main Apr 30, 2024
2 checks passed
@FeodorFitsner FeodorFitsner deleted the auto-complete-control branch April 30, 2024 17:25
50Bytes-dev pushed a commit to 50Bytes-dev/flet that referenced this pull request May 18, 2024
* initial commit

* Fix on_selection event handler

* CupertinoSegmentedButton: fix selected_index
@fasilwdr
Copy link

fasilwdr commented Jun 5, 2024

@ndonkoHenri Hi Bro,
Is it possible to create a variable (selected or value) for the search input or the selected option from AutoCompleteSuggestion inside AutoComplete control?

@ndonkoHenri
Copy link
Contributor Author

@fasilwdr, I got you covered: #3298 😌

zrr1999 pushed a commit to zrr1999/flet that referenced this pull request Jul 17, 2024
* initial commit

* Fix on_selection event handler

* CupertinoSegmentedButton: fix selected_index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AutoComplete control
3 participants