Custom toolbar elements don't work with language options
Custom toolbar elements don't work with language options
lamine
Posts: 1Questions: 1Answers: 0
Hi ,
First thanks for this awesome plugin , I have a problem with the custom element in toolbar when i comment the language line the custom element appear :
$('#example').DataTable( {
"language": { "url": "//localhost/kaf88/js/Arabic.json"},
"lengthMenu": [[10,50, 100, 150, -1], [10,50, 100, 150, "إظهار الكل"]],
fixedHeader: true,
/*
*/
"dom": '<"toolbar">rlftip',
} );
$("div.toolbar").html('<b>this is me </b>');
Any suggestions Thanks of all .
This discussion has been closed.
Answers
Add your custom element inside
initComplete
. The problem is, when you uselanguage.url
it makes the table initialisation async. See thelanguage.url
reference documentation for more details.Allan