Skip to content

Conversation

@gzh2003
Copy link
Contributor

@gzh2003 gzh2003 commented Feb 4, 2026

Part of DH-21375. Adds support for databars in ui.TableFormat via mode parameter. The legacy databars parameter is still supported but will show a deprecation warning.

Changes:

  • Added mode parameter to TableFormat, along with validation, and deprecation warning for databars
  • Updated UITableModel to extract and render databars from format rules
  • Updated docs to reference new api

There are some validation rules/warnings to be aware of while we maintain backwards compatibility with the old API

  1. databars prop and mode=TableDatabar() cant be used together
  2. databars and format_ cannot be used together with mode=TableDatabar()
  3. cols is required when mode is set in TableFormat
  4. columns can't be specified using the new api (should come from TableFormat.cols)
  5. legacy databars shows a deprecation warning

Most of these rules exist to support the old api, so we will have to clean them up once it's fully deprecated.

@gzh2003 gzh2003 self-assigned this Feb 4, 2026
@gzh2003 gzh2003 removed the request for review from margaretkennedy February 4, 2026 21:19
@mattrunyon
Copy link
Collaborator

@copilot Can you check how this PR compares to the plan at https://github.com/deephaven/deephaven-plugins/pull/1282/changes#diff-4b3243a5e436df978a8e62a555524a2fd6f899e8f65248f3879f74611bc0947d and comment if you think there are any discrepancies between the plan the this implementation?

Do not open a new pull request, just let me know if there are any discrepancies

Copy link
Contributor

Copilot AI commented Feb 4, 2026

@mattrunyon I've opened a new pull request, #1290, to work on those changes. Once the pull request is ready, I'll request review from you.

@gzh2003 gzh2003 requested review from mattrunyon and removed request for margaretkennedy February 4, 2026 22:00
@gzh2003 gzh2003 removed the request for review from margaretkennedy February 5, 2026 14:57
@gzh2003 gzh2003 marked this pull request as draft February 5, 2026 19:11
@gzh2003 gzh2003 force-pushed the DH-21375-databars-need-to-be-integrated-with-ui-table-format branch from 413b901 to dbeccb8 Compare February 6, 2026 15:20
@gzh2003 gzh2003 marked this pull request as ready for review February 9, 2026 13:57
> [!WARNING]
> Migrating from the `databars` parameter
>
> The legacy `databars` parameter is deprecated and will be removed in a future version. Use `format_` with `mode=ui.TableDatabar()` instead.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if gplus, maybe specific next version; if not, future version it is!

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.

4 participants