djk2 / django-tables2-column-shifter

Simple extension for django-tables2 can dynamically show or hide columns. Using JQuery, Bootstrap 3, Bootstrap 4, Bootstrap 5 and Django >=1.9
BSD 3-Clause "New" or "Revised" License
21 stars 8 forks source link

Add possibility to exclude columns from shifting #29

Closed mpibpc-mroose closed 1 year ago

mpibpc-mroose commented 1 year ago

Given I have a table with let's say an index column. One may want to have this column always visible for whatever reason. Thus it should not be possible to enable or disable this column.

Is this already possible?

djk2 commented 1 year ago

Sorry for delay. It shouldn't be a problem to add this. I can add attribute like column_excluded this attribute will be list(str) type and by default empty. I will try prepare solution in next few days.

djk2 commented 1 year ago

column_excluded is available in new release v2.1.0 New version v 2.1.0 is now available on PyPi You can install or update it via :

pip install -U django-tables2-column-shifter

or

pip install -U django-tables2-column-shifter==2.1.0
mpibpc-mroose commented 1 year ago

Thanks a lot! Works as a dream.