Skip to content

fresh-ui: promote a generic templated DataGrid (successor to un-templated DataTable) #209

Description

@rickylabs

Problem. The shipped DataTable doesn't support per-column cell templating, so eis-chat built an app-owned generic DataGrid<T> block used across two surfaces (VS3 sessions, VS4 KB docs).

Proposed API.

columns: { key; header; width?; cell?: 'strong' | 'num'; render(row): ComponentChildren }[]
rows: { id; data; selected?; onSelect?; href? }[]  // href -> f-client-nav link row; onSelect -> button row

Value. Templated columns + link/button row semantics + selection, tokens-only, a11y. Promote as the templated successor to DataTable.


Surfaced during the eis-chat v2 refactor (netscript alpha.18). Promotion candidate → @netscript/fresh-ui / web-layer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions