Hi,
thanks for your post, and sorry for the trouble.
To use both Alphabet Search and ColumnFilterWidgets with the table table, please add this to the “Custom Commands” text field on the table’s “Edit” screen:
"dom": "AWlfrtip"
These letters define the relative position of the elements, see https://datatables.net/reference/option/dom . The “A” is for the Alphabet Search and the W is for ColumnFilterWidgets.
Regards,
Tobias
Good Morning Tobias,
Very cool, as always your fix works like a charm. And thank you for the Dom link, I’m not exactly sure whats going on there but I’ll have a look for the future.
With the alphabet search, is there a way to have it sort from the second column? Our table makes more sense with the first column as a Hierarchical category and then the Alphabet from the 2nd column, as it has the most variation. It’s been switched for now but it would make the most sense if it can be arranged accordingly.
Kindest Regards,
Callard
Hi,
thanks for your post, and sorry for the trouble.
Unfortunately, I’m not aware of a direct way to choose a different column for the Alphabet Search. My suggestion would therefore be to work with duplicated columns: Just add a new first column and fill it with the same content as the (then) third column — and hide it from the visitor with CSS code, like
.tablepress-id-123 .column-1 {
display: none;
}
Regards,
Tobias