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
Wave v1.0.0, MacOS 13.5.1, Chrome Version 119.0.6045.159 (Official Build) (arm64)
Unable to update components using by-name component access inside the items which were previously updated.
items
Form text content is updated when clicking on the Clear button.
Repro code:
from h2o_wave import main, app, Q, ui def get_form_items(clicked: str): return [ ui.text(content='The quick brown [fox](?fox) jumps over the lazy [dog](?dog)'), ui.text(name='text_clicked', content=f'Clicked: {clicked}'), ui.button(name='clear', label='Clear'), ] @app('/demo') async def serve(q: Q): if not q.client.initialized: q.page['example'] = ui.form_card(box='1 1 3 2', items=get_form_items('Nothing')) q.client.initialized = True if q.args.fox: q.page['example'].items = get_form_items('fox') if q.args.dog: q.page['example'].items = get_form_items('dog') if q.args.clear: # Working # q.page['example'].items[1].text.content = 'Clicked:' # Not working q.page['example'].text_clicked.content = 'Clicked:' await q.page.save()
The text was updated successfully, but these errors were encountered:
mturoci
No branches or pull requests
Wave SDK Version, OS
Wave v1.0.0, MacOS 13.5.1, Chrome Version 119.0.6045.159 (Official Build) (arm64)
Actual behavior
Unable to update components using by-name component access inside the
items
which were previously updated.Screen.Recording.2023-11-27.at.17.13.18.mov
Expected behavior
Form text content is updated when clicking on the Clear button.
Steps To Reproduce
Repro code:
items
.The text was updated successfully, but these errors were encountered: