Skip to content

Conversation

@ianalis
Copy link

@ianalis ianalis commented Mar 30, 2025

When class is defined differently for th and td in the attrs attribute, for example,

class TestTable(ColumnShiftTableBootstrap5):
    test_col = tables.Column(
        attrs={"th": {"class": "text-nowrap"}, "td": {"class": "text-center"}}
    )

column hiding doesn't work because the value for data-td-class becomes wrong. This PR fixes this by setting it to the column name itself which is always a class of th and td.

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.

1 participant