Language url blocking buttons
Language url blocking buttons

Hey all,
I have a JavaScript controller defining the structure of a DataTable.
In this controller I am defining some buttons and using a URL to set the language (along with other things)
"buttons": structure.Table.Buttons,
"language": {
"emptyTable": structure.Table.Messages.NoRecordsMesssage,
"url": "http://cdn.datatables.net/plug-ins/1.10.21/i18n/Language.json".replace("Language", translations['Lang'])
}
The Buttons and the emptyTable value are defined like so:
Table: {
DataTable: {},
HtmlTableId: "",
Messages: {
NoRecordsMesssage: translations['NoRecordsMesssage']
},
Buttons: [
{
extend: "csvHtml5",
text: translations['ExportCSV'],
exportOptions: {
columns: ":not(.no-print)"
}
},
{
extend: "print",
messageTop: null,
title: translations['KUEModules'],
exportOptions: {
columns: ":not(.no-print)"
},
autoPrint: true,
customize: function (win) {
jQuery(win.document.body).find("html")
.removeClass("ccc-bcg");
jQuery(win.document.body).find("table")
.removeClass("table-bordered table-hover table-responsive");
}
}
]
However, My issue is that whenever the url option is within language, the buttons defined above are not displayed.
Would like to figure out what is going on here.
Thanks.
This discussion has been closed.
Answers
First check for errors in the browser's console. If you still need help then please provide a link toy our page or a running test case showing the issue so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin