Buttons no longer visibile using Foundation and translation
Buttons no longer visibile using Foundation and translation
Link to test case:
https://debug.datatables.net/ipedub
Error messages shown: none
Description of problem: when adding this script the Buttons are no longer visible
$.extend(true, $.fn.dataTable.defaults, {
language: {
'url': 'https://cdn.datatables.net/plug-ins/1.12.1/i18n/nl-NL.json'
}
});
I am new to Foundation and wondering why this behaviour happens, Any way to solve the problem?
Thanks,
Jan
This question has an accepted answers - jump to answer
Answers
Hi Jan,
The
language.url
option makes the table initialisation async. So it isn't ready when this code in thetable.datatables_demo.js
file fires:You need to move that code into an
initComplete
callback.Allan
Thanks Allan,
I am sorry, adding this
doesn't change the behavior (still no buttons visible). Did I misunderstood you?
Jan
that is: buttons are visible but translation fails
I think Allan was saying to move this code into
initComplete
:Kevin
yes, thanks.
a suggestion might be that in Generator the initComplete contains the buttons, currently they don't