Skip to content

Add item-level id support to datagrid component#1246

Merged
lovasoa merged 1 commit intomainfrom
codex/add-id-property-to-datagrid-items
Mar 15, 2026
Merged

Add item-level id support to datagrid component#1246
lovasoa merged 1 commit intomainfrom
codex/add-id-property-to-datagrid-items

Conversation

@lovasoa
Copy link
Collaborator

@lovasoa lovasoa commented Mar 15, 2026

Motivation

  • Allow each datagrid item to expose an HTML id so pages can target or style individual rows (useful for in-page anchors and CSS selectors) and ensure the feature is documented in the official-site migrations.

Description

  • Render an optional id attribute on each datagrid item by updating sqlpage/templates/datagrid.handlebars to output id="{{id}}" when present, and add ('datagrid', FALSE) to examples/official-site/sqlpage/migrations/99_shared_id_class_attributes.sql to document the item-level id parameter.

Testing

  • Ran cargo test, which could not complete because the build script attempted to download external frontend assets and failed with Network is unreachable (os error 101), preventing the full test/run in this environment.

Codex Task

@lovasoa lovasoa linked an issue Mar 15, 2026 that may be closed by this pull request
@lovasoa lovasoa merged commit 81da9b3 into main Mar 15, 2026
14 checks passed
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.

add a row_id as low level parameter in the datagrid parameter

1 participant