You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is similar to #1687 but the fix (#1724) is provided on the table level. It would be great if there is also fix on the level of rendering and creating of meta cards.
Wave SDK Version, OS
Wave 0.24.0
Actual behavior
When ui.dialog is re-assigned to q.page['meta'].dialog it is is re-rendered, but not re-created.
Expected behavior
The ui.dialog should be re-created including all its children similar to form card.
Steps To Reproduce
Run the app:
fromh2o_waveimportmain, app, Q, uicolumns= [ui.table_column(name='text', label='Column 1', sortable=True)]
rows= [
ui.table_row(name='row1', cells=['Row 1']),
ui.table_row(name='row2', cells=['Row 2'])
]
@app('/demo')asyncdefserve(q: Q):
ifnotq.client.initialized:
q.app.rows=rowsq.page['meta'] =ui.meta_card(box='')
q.page['meta'].dialog=ui.dialog(title='Table', width='800px', items=[
ui.table(
name='issues',
columns=columns,
rows=q.app.rows,
groupable=True,
height='600px',
multiple=True,
),
ui.button(name='remove', label='Remove selected', primary=True)
])
q.client.initialized=Trueelifq.args.remove:
q.app.rows= [rowforrowinq.app.rowsifrow.namenotinq.args.issues]
# This should recreate the whole dialog including all its children so the table should be rendered as reset, with initial state (no-group by).q.page['meta'].dialog=ui.dialog(title='Table', width='800px', items=[
ui.table(
name='issues',
columns=columns,
rows=q.app.rows,
groupable=True,
height='600px',
multiple=True,
),
ui.button(name='remove', label='Remove selected', primary=True)
])
awaitq.page.save()
Group by column
Select any row(s)
Click on the Remove selected button
Table should be reset to initial state but it is not.
It is worth to note that other metas (e.g. side panel) could be impacted by the same issue. Also note that example provided won't reproduce the issue in newer Wave versions (after merging #1724) .
The text was updated successfully, but these errors were encountered:
This issue is similar to #1687 but the fix (#1724) is provided on the table level. It would be great if there is also fix on the level of rendering and creating of meta cards.
Wave SDK Version, OS
Wave 0.24.0
Actual behavior
When
ui.dialog
is re-assigned toq.page['meta'].dialog
it is is re-rendered, but not re-created.Expected behavior
The
ui.dialog
should be re-created including all its children similar toform
card.Steps To Reproduce
Table should be reset to initial state but it is not.
It is worth to note that other metas (e.g. side panel) could be impacted by the same issue. Also note that example provided won't reproduce the issue in newer Wave versions (after merging #1724) .
The text was updated successfully, but these errors were encountered: