How to add additional feature/function in DataTables?

How to add additional feature/function in DataTables?

andrisdermandrisderm Posts: 2Questions: 1Answers: 0

I have a create a basic datatable, now I want to customize it by adding filter in every column. I already got the solution from: https://www.datatables.net/examples/api/multi_filter_select.html

BUT, where I should put the additional code? I have tried copy paste the code in jquery.datatables.js and also try to put in new js file, neither both of them worked.

Please kindly help me...

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Hi Andrisderm,

    The code is just part of the DataTables initialisation, so it goes into your JS file where you create the table. Take a look at this live example - this is a cut&paste of the code from that multi-filter select page you linked to, but this shows it in motion.

    I hope that make sense, don't hesitate to get back in touch if you're having problems still.

    Cheers,

    Colin

  • andrisdermandrisderm Posts: 2Questions: 1Answers: 0

    nice :) Thank you!

This discussion has been closed.