Skip to content

First column set to markdown, will not be hyperlinked #2087

Answered by mturoci
Sivakajan-tech asked this question in Q&A
Discussion options

You must be logged in to vote

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'),
                ],
 …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Sivakajan-tech
Comment options

Answer selected by Sivakajan-tech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Question
2 participants
Converted from issue

This discussion was converted from issue #2086 on July 21, 2023 08:46.