First column set to markdown, will not be hyperlinked #2087
-
Wave SDK Version, OSWave SDK: 0.24.2 , OS: MacOs Actual behaviourWhen the Expected behaviorWhen the Steps To Reproduce
Screen.Recording.2023-07-20.at.19.31.58.movcc: @ShehanIshanka |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is expected. Wave cannot know if you wish to use default links along with markdown cell type or not. However if you want to use both markdown and the default link behavior, you can go for something like this: from h2o_wave import main, app, Q, ui
@app('/demo')
async def serve(q: Q):
if not q.args.table:
q.page['meta'] = ui.meta_card(box='')
q.page['example'] = ui.form_card(box='1 1 3 3', items=[
ui.table(
name='table',
columns=[
ui.table_column(name='name', label='Name',cell_type=ui.markdown_table_cell_type()),
ui.table_column(name='surname', label='Surname'),
],
rows=[
ui.table_row(name='row1', cells=['[John](?table)', 'Doe']),
ui.table_row(name='row2', cells=['[Alice](?table)', 'Smith']),
ui.table_row(name='row3', cells=['[Bob](?table)', 'Adams']),
]
)
])
else:
q.page["meta"].side_panel = ui.side_panel(
name="overview_panel",
title="Overview",
width="650px",
items=[],
events=["dismissed"],
closable=True,
blocking=True,
)
await q.page.save() |
Beta Was this translation helpful? Give feedback.
This is expected. Wave cannot know if you wish to use default links along with markdown cell type or not. However if you want to use both markdown and the default link behavior, you can go for something like this: