TablePress – customize order of column filter widget dropdown
-
Hello, I am trying to customize the order of the dropdown menu in my column filter widget similar to what this user requested in his post: https://www.ads-software.com/support/topic/customization-of-coloum-filters-dropdown?replies=20
He was able to successfully achieve this, listing the months in order of chronology rather than alphabetically (live example here: https://www.inpressadv.net/staging/blueocean/final/courses-calendar/)
I would like to do the same but with the days of the week. My test page is here: https://69.195.124.167/~eastbbc2/?page_id=7629
I see that he changed some code in the file ColumnFilterWidgets.js, but it’s not clear to me exactly what he changed, and whether there was any additional code he utilized to make it work, other than the snippet he posted:
if (widget.bSort && select_title != 'Month') { if (widget.hasOwnProperty('fnSort')) { aDistinctOptions.sort(widget.fnSort); } else { aDistinctOptions.sort(); }
I’m thinking there must have been more to this. Can anyone help me figure out how to do the same but with my days of the week, so that they display Sunday –> Saturday?
Thanks!
- The topic ‘TablePress – customize order of column filter widget dropdown’ is closed to new replies.