Skip to content

chore(ui): Clean up children typing to use NodeType#1362

Merged
mofojed merged 1 commit into
deephaven:mainfrom
mofojed:children-cleanup
Jun 12, 2026
Merged

chore(ui): Clean up children typing to use NodeType#1362
mofojed merged 1 commit into
deephaven:mainfrom
mofojed:children-cleanup

Conversation

@mofojed

@mofojed mofojed commented Jun 11, 2026

Copy link
Copy Markdown
Member
  • Replace untyped *children: Any parameters with the proper NodeType type across deephaven.ui components and HTML elements, expand NodeType to include float and tuple, and export NodeType from the elements package.
  • combo_box, list_view, and picker accept Table/PartitionedTable/ItemTableSource children that are handled specially on the JS side. Add an explicit cast to NodeType.
  • Doing this change as it will help with component memoization (particularly, passing in a map for children was causing issues with memoization)

- Replace untyped `*children: Any` parameters with the proper `NodeType` type across deephaven.ui components and HTML elements, expand `NodeType` to include float and tuple, and export `NodeType` from the elements package.
- combo_box, list_view, and picker accept Table/PartitionedTable/ItemTableSource children that are handled specially on the JS side. Add an explicit cast to NodeType.
@mofojed mofojed requested a review from jnumainville June 11, 2026 20:12
@mofojed mofojed self-assigned this Jun 11, 2026
@github-actions

Copy link
Copy Markdown

ui docs preview (Available for 14 days)

@mofojed mofojed merged commit 53f1e4e into deephaven:main Jun 12, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants