Я работаю над этим веб-сайтом электронной коммерции, встроенным в Laravel. как коробки. Это означает, что слова не читаются. Как это исправить? < /p>
$(document).ready(function() {
var table = $('#product-data-table').DataTable( {
responsive: true,
fixedHeader: {
header: true,
footer: true
},
"processing": true,
"serverSide": true,
"ajax":{
url:"products/product-data",
data:{
all_permission: all_permission
},
dataType: "json",
type:"post"
},
"createdRow": function( row, data, dataIndex ) {
$(row).addClass('product-link');
$(row).attr('data-product', data['product']);
$(row).attr('data-imagedata', data['imagedata']);
},
"columns": columns,
'language': {
/*'searchPlaceholder': "{{trans('file.Type Product Name or Code...')}}",*/
'lengthMenu': '_MENU_ {{trans("file.records per page")}}',
"info": '{{trans("file.Showing")}} _START_ - _END_ (_TOTAL_)',
"search": '{{trans("file.Search")}}',
'paginate': {
'previous': '',
'next': ''
}
},
order:[['2', 'asc']],
'columnDefs': [
{
"orderable": false,
'targets': [0, 1, 9, 10, 11]
},
{
'render': function(data, type, row, meta){
if(type === 'display'){
data = '';
}
return data;
},
'checkboxes': {
'selectRow': true,
'selectAllRender': ''
},
'targets': [0]
}
],
'select': { style: 'multi', selector: 'td:first-child'},
'lengthMenu': [[10, 25, 50, -1], [10, 25, 50, "All"]],
dom: 'rtip',
buttons: [
{
extend: 'pdf',
text: '',
exportOptions: {
columns: ':visible:not(.not-exported)',
rows: ':visible',
stripHtml: false
},
customize: function(doc) {
doc.content[1].table.body.forEach(function(row) {
row.forEach(function(cell) {
cell.margin = [5, 0, 5, 0];
});
});
// Handle images in the table
for (var i = 1; i < doc.content[1].table.body.length; i++) {
if (doc.content[1].table.body[0].text.indexOf('
[img]) !== -1) {
var regex = /
Подробнее здесь: https://stackoverflow.com/questions/794 ... ort-in-pdf
Bangla Font нечитаем после загрузки отчета в PDF ⇐ Javascript
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение