We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Previous demonstrated this in #2290.
Code example:
from taipy.gui import Gui, Icon import taipy.gui.builder as tgb aggregation_list = [("minute", "Minute"), ("hour", "Hour"), ("day", "Day"), ("week", "Week")] selected_aggregation = aggregation_list[0] with tgb.Page() as page: tgb.text("# Single selection for list[tuple[str, str | Icon]] lov", mode="md") tgb.slider("{selected_aggregation}", lov="{aggregation_list}", value_by_id=False) tgb.text("{selected_aggregation}") def on_change(state, var_name, var_value): print(var_name, type(var_value), var_value) if __name__ == "__main__": gui = Gui(page=page) gui.run(run_browser=False, use_reloader=True)
Video:
Slider should be single-select.
For multi-selection, selected_aggregation should have been initialized to a list (e.g. [] or aggregation_list[:2]).
selected_aggregation
[]
aggregation_list[:2]
Chrome
Windows, Linux
develop
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What went wrong? 🤔
Previous demonstrated this in #2290.
Code example:
Video:
slider.tuple.lov.multi.selection.mp4
Expected Behavior
Slider should be single-select.
For multi-selection,
selected_aggregation
should have been initialized to a list (e.g.[]
oraggregation_list[:2]
).Browsers
Chrome
OS
Windows, Linux
Version of Taipy
develop
Acceptance Criteria
Code of Conduct
The text was updated successfully, but these errors were encountered: