Skip to content

Support processUnpinnedColumns#470

Open
datenzauberai wants to merge 4 commits into
plotly:v35from
datenzauberai:support_processUnpinnedColumns
Open

Support processUnpinnedColumns#470
datenzauberai wants to merge 4 commits into
plotly:v35from
datenzauberai:support_processUnpinnedColumns

Conversation

@datenzauberai

@datenzauberai datenzauberai commented Jun 27, 2026

Copy link
Copy Markdown

This would close #468

It basically just adds processUnpinnedColumns to src/lib/utils/propCategories.js and adds a test for this.

Please feel free to make changes.

Comment thread tests/utils.py
# TODO: is there a pinned right?
self.wait_for_pinned_column_count(expected, pin_state="left")

def _header_class_for_pin_state(self, pin_state: Literal["left", "right", "scrolling"]):

@datenzauberai datenzauberai Jun 27, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The header classes will change with AgGrid 36 (.ag-grid-pinned-left-cells .ag-grid-scrolling-cells .ag-grid-pinned-right-cells) so I thought it would be good to already locate this in one method.

Comment thread tests/utils.py

def wait_for_pinned_cols(self, expected):
# TODO: is there a pinned right?
self.wait_for_pinned_column_count(expected, pin_state="left")

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I frowned upon refactoring all calls to wait_for_pinned_column_count, so kept this in place and removed the TODO, because the other methods now would support left/right/scrolling.


grid = utils.Grid(dash_duo, "grid")

grid.wait_for_pinned_column(col_id="COL_0", pin_state="left")

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This would fail without unpinAllButFirstColumn, because default AgGrid behaviour would be to start unpinning at COL_0.

@AnnMarieW

Copy link
Copy Markdown
Collaborator

Hi @datenzauberai

Thanks so much for the PR and the updated tests 🎉

I'm going to switch this to the v35 branch, which should fix the unrelated tests that are failing.
What version are you using? Do you need this applied to an earlier version?

@AnnMarieW AnnMarieW changed the base branch from main to v35 June 27, 2026 15:32
@sonarqubecloud

Copy link
Copy Markdown

@datenzauberai

datenzauberai commented Jun 28, 2026

Copy link
Copy Markdown
Author

I'm going to switch this to the v35 branch, which should fix the unrelated tests that are failing.

Perfect.

What version are you using? Do you need this applied to an earlier version?

We're on 33, but we're not blocked by this, because we workaround using a clientside callback to set the parameter. Hence, any release would just be super fine for us.

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.

Support processUnpinnedColumns as a function

2 participants