Skip to content
Discussion options

You must be logged in to vote

You have initialized your selection to be all the selector values in your code. You can initialize it to None to solve your issue:

from taipy.gui import Gui 

mooring_ids = [f"Choice {i}" for i in range(100)]
mooring_id = None

md = "<|{mooring_id}|selector|lov={mooring_ids}|multiple|label=Select the Mooring ID|dropdown|on_change=on_filter|class_name=fullwidth|>"

def on_filter(state):
    print(state.mooring_id)

Gui(md).run()

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by shaunwbell
Comment options

You must be logged in to vote
3 replies
@FlorianJacta
Comment options

@DeveloperVaibhav1
Comment options

@DeveloperVaibhav1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants