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

Support Bootstrap 4 #18

Closed spapas closed 3 years ago

spapas commented 4 years ago

This is related to #17 since I presume that it won't be possible to support the django-tables2 template.

But in this case, would it be possible to somehow support bootstrap 4 (by adding maybe a new class like you do with bootstrap 2)? Right now the pagination is displayed broken in bootstrap 4 and 5.

The most important change you need to do to the templates\django_tables2_column_shifter\bootstrap3.html template is to change the first line to {% extends "django_tables2/bootstrap4.html" %}. There may be other changes but that will fix the broken pagination.

djk2 commented 3 years ago

Please check new version 2.0 of django-tables2-column-shifter. I also pushed new version to pypi: https://pypi.org/project/django-tables2-column-shifter/