1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
| this.dtColumnSearchingOptions = {
// ajax: 'fake-data/datatable-data.json',
"language": {
"url": "fake-data/French.json",
buttons: {
copyTitle: 'Ajouté au presse-papiers',
copyKeys: 'Appuyez sur <i>ctrl</i> ou <i>\u2318</i> + <i>C</i> pour copier les données du tableau à votre presse-papiers. <br><br>Pour annuler, cliquez sur ce message ou appuyez sur Echap.',
copySuccess: {
_: '%d lignes copiées',
1: '1 ligne copiée'
}
}
},
columns: [
{
title: '',
render: function (data: any, type: any, full: any) {
return '<button class="btn btn-success" (click)="onAllumer()">Tout allumer</button>';
}
},
{
title: 'firstName',
data: 'firstName'
}, {
title: 'lastName',
data: 'lastName'
}, {
title: 'job',
data: 'job'
}, {
title: 'address',
data: 'address'
}, {
title: 'email',
data: 'email'
} ],
responsive: true,
dom: 'Blfrtip',
buttons: [
{
text: 'Copier',
extend: 'copy',
exportOptions: {
columns: [ 1, 2, 3, 4, 5 ]
}
},
{
text: 'Imprimer',
extend: 'print',
exportOptions: {
columns: [ 1, 2, 3, 4, 5 ]
}
},
'excel'
]
}; |
Partager