How can I edit label created inside datable and wrap search and show entries inside a single div?
How can I edit label created inside datable and wrap search and show entries inside a single div?
sum1t
Posts: 1Questions: 1Answers: 0
var table = $('#MenuSetup').DataTable({
select: false,
"columnDefs": [{
"targets": [0],
"visible": false,
"searchable": false
}]
});
It is generating table search, entries but What I want is to have custom label for show entries and wrap both search and label in one div.
Thanks in advance for the help!
Answers
You could customise the "Show entries" text using the
language.lengthMenu
option. Then usedom
to wrap the two of them into a single div if you want that.Example.
Allan
@allan Thanks for reply my question but the example link you provided has expired
The link works for me - it's : http://live.datatables.net/riwirubo/1/edit
Colin
Seems to work here as well (different computer from when I made that example.
Allan