Skip to content

Add anchor links for individual columns#577

Open
xinkent wants to merge 3 commits intodbt-labs:mainfrom
xinkent:feature/column-link
Open

Add anchor links for individual columns#577
xinkent wants to merge 3 commits intodbt-labs:mainfrom
xinkent:feature/column-link

Conversation

@xinkent
Copy link

@xinkent xinkent commented Feb 26, 2026

resolves #186

Description

Add anchor links for individual columns in the column details table, as requested in dbt-labs/dbt-docs#186.

Each column row now has an HTML id attribute (column-<name>) and a clickable # link that appears on hover. Clicking the link updates the URL hash (e.g. #!/model/model.my_model#column-customer_id) so it can be shared. When navigating to a URL with a #column-<name> fragment, the matching column is automatically expanded and scrolled into view via $anchorScroll.

This applies to all pages using the column-details directive: model, source, seed, and snapshot.

Changes:

  • src/app/components/column_details/column_details.html — Added id attribute to column rows, anchor link element, and hover CSS
  • src/app/components/column_details/column_details.js — Added column_anchor() click handler, $watch on model.columns for auto-expand and scroll on page load
image

Checklist

Resolves dbt-labs#186

Each column row now has an HTML id attribute (`column-<name>`) and a
clickable `#` link that appears on hover.  Clicking the link updates the
URL hash so the link can be shared.  When navigating to a URL that
contains a `#column-<name>` fragment the matching column is automatically
expanded and scrolled into view via `$anchorScroll`.

The feature applies to all pages that use the `column-details` directive
(model, source, seed, snapshot).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Anchor links for individual columns/attributes within model page

1 participant