Hello!
I’m making a table that should contain clickable links. I make links in this format [Link](link.com)
and clickability is added through 'presentation': 'markdown'
.
Code:
style_for_link = [{'id': x, 'name': x, 'presentation': 'markdown'} if (x == 'Link')
else {'id': x, 'name': x} for x in ['№', 'Date Requested', 'Operation', 'Link', 'Status', 'Time From Request']]
style_for_names = {'color':'#0b5aff'}
def check_df(dataframe):
if dataframe.empty:
return "No tasks"
else:
return dash_table.DataTable(dataframe.to_dict('records'),
style_cell={'text-align': 'center', 'margin-bottom':'0'},
columns=style_for_link
)
But as a result, I get a link in the upper left corner of the cell, although I set the alignment of the cells.
Can you please tell me how to make a link in the center in the height and width of the cell?