ni / nimble

The NI Nimble Design System
https://nimble.ni.dev
MIT License
32 stars 8 forks source link

Table allows configuration of hyperlink column type #1012

Closed nate-ni closed 1 year ago

nate-ni commented 1 year ago

😯 Problem to Solve

For some columns in the table, there is a need to show an item as a hyperlink. Typically, this hyperlink will route to a new URL.

The user should be able to easily configure a static or dynamic URL for the table cell. The user should be able to open the URL in a variety of locations similar to a typically href (_blank, _self, etc.)

💁 Proposed Solution

For now, we don't need to indicate that a URL is to an external URL. This should be handled as part of a holistic enhancement to the anchor. Assumption: The hyperlink will likely appear like a nimble-anchor, but refer to the visual design for finalized direction

Open Questions

Question Initial Recommendation Resolved Decision
Do we need to indicate an external URL in some way? No No
Can we just use raw HTML in the string column type to achieve this? No No
Which width modes should we support? Just fractional width, same as text column No

Design

## 📋 Tasks
- [ ] TBD
jattasNI commented 1 year ago

As part of a PR adding a new hyperlink column to a legacy grid I came up with this search to find existing SLE hyperlink column code. It would be good to mine those uses for more requirements but here are a few that I noticed we'll need to consider: