Skip to content
Discussion options

You must be logged in to vote

If you view the source of the page (button at the top) and scroll down, you will see that we only apply table sorting to the last of the tables. In our documentation, we need to jump through some hoops to distinctively advertise some features. If all tables were sortable, there would be no point in advertising this to the user 😊

You can change the CSS selector to something that only targets the tables that you want to be sortable, or adjust the function that loops through all tables mounting Tablesort. As always with customizations, YMMV:

document$.subscribe(function() {
  var tables = document.querySelectorAll("article table:not([class])")
  tables.forEach(function(table) {
    new Table…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SoumayaMauthoorMOJ
Comment options

Answer selected by SoumayaMauthoorMOJ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants