-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for clickable links #712
Add support for clickable links #712
Comments
I'm not sure we want a new column "type" - do we have a way to attach metadata to a column? @nbauernfeind @rcaudy? Is this feature specifically targeted at supporting click-able links? Or, do we image a cell could contain a whole markdown document that could be opened and rendered? |
The original intent of this PR is to support clickable links to the web. However, if possible, the second option would be pretty awesome too. That should likely be covered in a separate ticket. |
Some sort of metadata that allows client to know "this content is a URL" seems more appropriate than "markdown". Unless the intent is to make it "pretty" and support a "markdown" link syntax: |
|
@dsmmcken What should be highlighted if a link is cut off? For example, 'github.co...' |
highlighted? Do you mean underlined? Following browser behaviour for underlining when there are ellipsis, the underline doesn't extend under the dots but does take the link color. |
@dsmmcken For input tables, if a cell contains a link, should double click still edit the cell? Should the tooltip show the full link or the truncated link? |
Good question. The first click would open a link in a new tab and would switch to that tab, blurring the original cell and exiting edit mode right? So that wouldn't work would it? Can you still detect the double click and cancel navigating to the link in that case? Excel opens tabs into the background and also enters edit mode on a double click on a cell with a link, which we can really do because following the link browser steals focus into a new tab. |
Full |
Yes, the first click opens the link. It might be possible if we add a tiny delay before processing the first mousedown event?
Right, I looked it up and there isn't an elegant way to keep the focus on the current tab. |
I am not a fan of the delay approach. Maybe we make the click hold behaviour enter select + enter edit mode if it's an input table? |
Alright, I'll try that. |
Closes #712 Installed LinkifyJs for link detection. Refer to original issue for details. ```from deephaven import input_table from deephaven import dtypes as dht, input_table my_col_defs = { "Integers": dht.int32, "Doubles": dht.double, "Strings": dht.string, "Strings2": dht.string, } result = input_table(col_defs=my_col_defs) ``` Run this snippet to create an empty input table and enter links into the cells. Bundle size is 314.21 KB on the `main` branch and 322.4 KB on this branch. --------- Co-authored-by: Mike Bender <mofojed@users.noreply.github.com>
Release notes https://github.com/deephaven/web-client-ui/releases/tag/v0.32.0 **Features** - Add support for clickable links (deephaven/web-client-ui#1088) ([f7f918e](deephaven/web-client-ui@f7f918e)), closes deephaven/web-client-ui#712 [create-pull-request] automated change Co-authored-by: deephaven-internal <deephaven-internal@users.noreply.github.com>
As both a user and stakeholder, I'd be very interested in a new Markdown column type that can hold clickable links. Basically, the column could show text like
Clink this link!
orNews article headline!
. A user could hover their mouse over a cell, which would show the URL to which the link leads. If the user clicks on a cell, it opens a new tab/window/whatever in the browser to take them there.The text was updated successfully, but these errors were encountered: