How do I hide the default filter and make changes to other dom elements

How do I hide the default filter and make changes to other dom elements

bumblebeebumblebee Posts: 18Questions: 5Answers: 0

I am using angularJS and do have using the markup to configure the search, pagination etc. The search now is in the default position. How do I use the markup to hide search so I can use my custom search field.

I know I have to update the DOM to remove "f" in the jquery implementation, but looking for examples on how it is done in the markup.

Since I have to use my custom search, I want to hide the default search box and not disable the search.

This question has accepted answers - jump to:

Answers

  • ewmantheiewmanthei Posts: 14Questions: 1Answers: 2
    Answer ✓

    When you initialize the dom, simply don't include "f". What does your dom init look like? For example:

    var table = $('#account').DataTable( {
        dom: 'Brt', // instead of dom 'Bfrt' or some other init
        ...
    
  • bumblebeebumblebee Posts: 18Questions: 5Answers: 0

    Can I pass this as a parameter to a function that initializes the DataTable

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    Answer ✓

    I don't see any reason why not. Just pass it in like you would do for any function you define?

    Allan

This discussion has been closed.