Update: Made small change. To click on "Change Memberlist View" to toggle through the three different views - see image below:
As I mentioned, this feature started out as a Vue.js component-project that I converted to jQuery mostly because the page reloads so a reactive JS lib like Vue.js did not seem to add any real value and make a simple task with jQuery a bit more complex. Perhaps I am just not very talented with Vue.js yet.