Sort icons in version 2.3.2

Sort icons in version 2.3.2

proteos_engineeringproteos_engineering Posts: 8Questions: 0Answers: 0

In my application, I'm using Bootstrap 4.5.2 and DataTables 2.3.2. Everything works except the display of the "sort asc" and "sort desc" icons in the table header. If I use version 2.3.0, everything works perfectly, including the sort icons. Has anyone else experienced this issue?

Replies

  • kthorngrenkthorngren Posts: 22,078Questions: 26Answers: 5,087

    What exactly is the problem you are experiencing?

    Can the problem be recreated in this example?

    Kevin

  • proteos_engineeringproteos_engineering Posts: 8Questions: 0Answers: 0

    It's very complex to reproduce the example because the structure is quite complicated, but I verified that in the header (thead > th) the usual <span> that contains the "sort asc/desc" icon is missing — the <span> tag itself is not there. However, clicking on the table header (th) still sorts the column correctly, so the functionality works — it's just a display issue (or rather, a missing visual indicator).

  • proteos_engineeringproteos_engineering Posts: 8Questions: 0Answers: 0

    I will try to debug the datatables.js module to check when the <span> tag is created.

  • allanallan Posts: 64,646Questions: 1Answers: 10,688 Site admin

    Do you have some custom elements in the table header, or are you adding things after initialisation perhaps? If it is just plain text, then I'd be surprised at the issue, since the example Kevin linked to works nicely.

    I'd really need a link to a test case showing the issue to be able to understand the problem.

    Allan

Sign In or Register to comment.