-
-
Notifications
You must be signed in to change notification settings - Fork 73
Allow HyperLinks in cells via either dash_html_components.A, plain HTML string, or a markdown string #222
Comments
@chriddyp if you can point me to where to look at, I should be able to work out the code myself I think. Thanks! |
I second this! |
+1 |
Thanks for offering to jump in! Before we start coding, we need to be very thoughful about our API design, as I see this type of feature as just one of the features that first-class data type support will offer. That is, we need an API that allows for different "cell-renderers" that correspond to different "data-types". In some cases, data types will have only a single cell-renderer (e.g. What we decide above will also impact other things like filtering and editing
So, first we need to nail down data types and how the impact all of these other things (rendering, filtering, editing). That discussion will include things like support for hyperlinks. Then, once that API is nailed down, hopefully adding hyperlink support will fit in naturally. I'm working on a design document for data types this week and I'll link this issue that discussion when I post it. I hope that makes sense! |
Linking #236 for dcc.Link support. |
This comment has been minimized.
This comment has been minimized.
I'm also looking for this feature. Love the ability to have embedded links in a Dash table like shown in |
Any updates on this issue? |
Hi. |
1 similar comment
Hi. |
@chriddyp I wish to have this feature in my app. is it ready? |
Hi, I just did this for my Excel spreadsheet cell using =HYPERLINK ... now I want to do the same for DataTable ... I don't want to lose DataTable functionality by rendering a regular HTML table. |
@chriddyp any updates on this issue? |
Hi, can we do it some other way now? |
Any ETA on this feature? Would be really handy! |
+1 It would be a good user-friendly feature |
+1 waiting for this feature |
+1 for this feature |
|
+1 for this feature |
+1 for this feature |
Is something profoundly different between the dash table and the old It's a real shame to have to still use |
Please follow #596 - our plan for this feature, at least in the short term, is to use markdown. We anticipate being able to get this into one of the next several releases. At some point we may consider other options to increase flexibility, but for a first implementation:
|
Thanks for the update, really much appreciated. IMO Markdown seems like a very reasonable approach, great since it'd easy allow text with only part being a link and so on. And I guess hooking up markdown rendering support is going to open up other possibilities too, so it's a good thing to at least explore. However, since markdown support is a broader issue than just allowing hrefs in the table, I get a feeling like attaching this one to it will slow down the path to implementation of what I think is a pretty critical feature. This is a pity. My user story:
I understand the issue of API consistency issues and security risks. However, I don't see how security could be any worse than one of the dozens of other implementations out there, such as bootstrap-table. If there really is a vulnerability (I can't imagine it), why not make a note of it in the docs, allow and move on? 😁 Also, any comment on what is wrong with the Thanks for your hard work, sorry for hasslin' |
Markdown support actually won't be a very big lift. We already have it in
I'm not sure what you mean by this, can you elaborate? Using |
I just meant, what stops the But great to hear that there is already some markdown support. Making that more complete does seem like the best way to go. |
A year has passed since this feature request was raised. Can we at least have a temporary solution just for links? A workaround of some sort? As it stands we have to implement custom html tables, with the pain of implementing manual sorting and pagination because links are not supported. Sometimes productivity is more important than API purity. |
+1 waiting for this feature |
We are working on this feature as we speak in #606. It will likely be out by the end of the year. Thank you for your patience! For future reference - If features like these are mission critical for your project, two sure-fire ways that you can get them shipped faster are: 1) Submit a pull request, 2) Fund or sponsor our open source development: https://plot.ly/products/consulting-and-oem/. |
Thank you @chriddyp . For now I'm using the workaround described by brad here : https://community.plot.ly/t/links-in-datatable-multipage-app/26081/5 But if I could avoid any javascript in my app that will be better for me :) |
+1 for this feature |
+1 for this (Python API) |
1 similar comment
+1 for this (Python API) |
Closed in #606, this will be available via markdown strings in the next release (this week). Stay tuned to the community forum for the release announcement. |
dash_table 4.6.0 has this working now. Thanks! I'm using Markdown. |
@wvwhome How you achieved the hyperlink for all the values of column without reference of js. It will be good if shared the steps to achieve it? |
Here's some code excerpts below for this datatable column:
|
@wvwhome Thanks for sharing. I was expecting to achieve this using using datatable properties(e,g style_header, style_cell). I tried using |
Slightly related, but "presentation": "markdown" appears to break style_data = {"textAlign": "right"}. After setting presentation to markdown the alignment of my cells went haywire, and as far as I can see there's no way to restore this. As per the CommonMark specs, alignment should work like this: bla However, formatting your cell data to include this will result in your table literally printing <p etc |
@chriddyp Yes I tried using markdown and I am successfully able to create link in cell. Now the problem is link is opening in the same tab, and I am loosing the my previous data. Could you provide me the suggestions to how do I open the link in new tab using markdown? Or tell me the what workaround should be required for that, so I can do it at my end. Thanks |
Wondering the same thing. Hope someone can help out and also provide how to link the dash_table.DataTable to the dataframe just like what @wvwhome did. |
i consider feature broken until links without protocol prefix eg `http...' run out of the box. mvp
|
Right now, the cells can only be plain text. It will be great to support either HTML String or dash_html_components.A
The text was updated successfully, but these errors were encountered: