how can set placeholder for searching(filtering) input in dataTable?

how can set placeholder for searching(filtering) input in dataTable?

rasaEdrisrasaEdris Posts: 1Questions: 1Answers: 0

var table = $(".table").DataTable({
dom: 'Blfrtpi',
select: true,
processing: true,
"search": {
/it is not working/
placeholder:"search.."
},
});
// is any way or api that access to search input type attribute placeholder?

Answers

  • rf1234rf1234 Posts: 3,000Questions: 87Answers: 421
    language: {
        "searchPlaceholder": lang === 'de' ? 
                    "z.B. usd libor overnight 17.06.2019" :
                    "e.g. usd libor overnight 17/06/2019",
        "search": lang === 'de' ? 
                    "Suche (Geduld bitte: 100k+ Datensätze!):" :
                    "Search (Patience please: 100k+ records!):"
    },
    

    This is what it looks like:

Sign In or Register to comment.