Okay
  Public Ticket #3711000
Custom Filters
Open

Comments

  • Pea started the conversation

    I'd like to add custom filters, which would look and behave like tabs. So, I'd like to know how I might be able to hook into the existing search.

    That is, I see that checkbox filters have an event that triggers `checkboxSearch.call(jQuery(this), columnIndex, checkboxesDivId)`. So, I'd like add a listener to my custom filter elements that would call checkboxSearch. However, I'm not sure how to get access to `jQuery(this)` object or `checkboxesDivId` to pass to it.

    Any assistance would be appreciated.


    ```
     jQuery('#wdt-frontend-modal input.wdt-checkbox-filter').off('change').on('change', function() {
        checkboxSearch.call(jQuery(this), columnIndex, checkboxesDivId)
    });

    ```


  •  1,767
    Miloš replied

    Hi Pea,

    Sorry to disappoint you, but at this time, we don't have any custom excample to show how you could try to achieve this.


    If you have coding skills and wish to try to make a custom solution,

    you can check out our available hooks for Developers on this documentation and see if you can find any hook that might help.

    We also added this new developer's handbook, which can allow users with coding skills to make custom add-ons.

    Our developers will keep adding more custom hooks/examples there over time.


    Please be advised that custom solutions with hooks are not included in our support.

    You can also research resources such as Stack Overflow to see if any other user perhaps found a workaround.

    ( We do like to give examples for certain solutions, but for this use-case, we, unfortunately, don't have anything yet)

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables