Hi all,
I’m fairly new to Dash but have been thoroughly enjoying it. I’ve seen that dash recently enabled markdown to display clickable hyperlinks in a dash data table, but after implementing it on my dashboard, my links still are not clickable. I’ve already reviewed git issue 606 and the recent markdown update. Can anyone who’s successfully used markdown to display links in their table tell where I’m going wrong? Or can anyone post a successful example of using markdown to display a hyperlink until the documentation is more thorough? Thanks so much in advance.
def gen_table(df):
df = df.to_dict('records')
tbl = dash_table.DataTable(id = 'hashtags',
style_data={'whiteSpace': 'normal',
'height':'auto'},
style_table={'overflowX': 'scroll',
'textOverflow':'ellipsis',
},
data=df,
#link is column of links that show up as normal text instead of hyperlinks
columns=[{'name': 'Comment', 'id':'msg_cleaned'}, {name': 'link', id':'link','type':'text','presentation':'markdown'}],
style_cell_conditional=[ if': {'column_id': 'msg_cleaned'},
'width': '400px'},
{'if': {'column_id': 'link'},
'width': '100px'}
],
filter_action = 'native',
sort_action = 'native',
sort_mode = 'multi',
fixed_rows = {'headers':True}
)
return tbl