Hierarchical Checkbox List – Accordion Menu

Forums › Forums › Search & Filter Pro › Hierarchical Checkbox List – Accordion Menu

Viewing 6 posts – 1 through 6 (of 6 total)
  • Anonymous
    #252093

    Hi Guys.

    Have you ever turned a Hierarchical Checkbox List into an Accordion menu similar to this which has toggles at the end of the parent so you can select the parent category if you wish?

    Example: https://www.kubikdesign.com.au/posts/search-filter-accordion-checkbox-list.png

    Thanks.

    Trevor
    #252129

    I haven’t, no. It is something we plan to do, but I have no snippets to share, sorry. I have seen user sites (but cannot recall the sites, sorry) where the user has done this using JavaScript, so it must be possible.

    Anonymous
    #252133

    That’d be great if you guys had something out of the box so to speak.
    It would be of great value.

    I started to have a play and noticed that I need to hook into your Ajax event, because if I lay jQuery over the top what I do is wiped out after the results are updated by Ajax.

    Is there a jQuery event or similar I can tap into so I can apply my jQuery after each Ajax request.

    Sorry if my terminology is wrong I am not a JS expert and tend to mix and match what a call or an event is.

    Hope you know what I mean.

    Thanks.

    Trevor
    #252137

    Like this:

    <script>(function ( $ ) {
      "use strict";
      $(document).on("sf:ajaxfinish", ".searchandfilter", function(){
        // call your script or function here
      });
    }(jQuery));</script>
    Anonymous
    #252196

    Worked a treat. Thanks so much!!!

    Trevor
    #252204

    Thanks for letting me know. I will close this thread for now.

Viewing 6 posts – 1 through 6 (of 6 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.