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

bug: lov within table rebuild #1278

Merged
merged 1 commit into from May 13, 2024
Merged

Conversation

FredLL-Avaiga
Copy link
Member

resolves #1201

from taipy.gui import Gui, Markdown

vehicle_type_options = ["car", "motorcycle"]
vehicle_list = ['Toyota Camry', 'Honda Civic', 'Ford Mustang', 'Honda CG1600X', 'Yamaha YBR135', 'Suzuki GSX-R1000']
vehicle_type = ['car', 'car', 'car', 'motorcycle', 'motorcycle', 'motorcycle']
vehicle_dict = {'vehicle_name': vehicle_list, 'vehicle_type': vehicle_type}

md = Markdown(
"""
<|{vehicle_dict}|table|rebuild|editable|editable[vehicle_name]=False|lov[vehicle_type]={vehicle_type_options}|on_edit=edit_vehicle_type|width=fit-content|>
""")

def edit_vehicle_type(state, var_name, payload):
    state.vehicle_dict[payload["col"]][payload["index"]] = payload["value"]
    state.refresh(var_name)

Gui(md).run()

@FredLL-Avaiga FredLL-Avaiga added 🟥 Priority: Critical Must be addressed as soon as possible 💥Malfunction Addresses an identified problem. 📝Release Notes Impacts the Release Notes Gui: Back-End labels May 10, 2024
@FredLL-Avaiga FredLL-Avaiga self-assigned this May 10, 2024
Copy link
Contributor

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
18219 15956 88% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
taipy/gui/_renderers/builder.py 82% 🟢
TOTAL 82% 🟢

updated for commit: 1832e17 by action🐍

@FredLL-Avaiga FredLL-Avaiga merged commit e4265a2 into develop May 13, 2024
151 checks passed
@FredLL-Avaiga FredLL-Avaiga deleted the bug/#1201-table-rebuild-lov branch May 13, 2024 08:34
toan-quach pushed a commit that referenced this pull request May 14, 2024
resolves #1201

Co-authored-by: Fred Lefévère-Laoide <Fred.Lefevere-Laoide@Taipy.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gui: Back-End 💥Malfunction Addresses an identified problem. 🟥 Priority: Critical Must be addressed as soon as possible 📝Release Notes Impacts the Release Notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG-Table "enumerated" validation absent when rebuild=True
2 participants