459
| <![CDATA[<script>
$(document).ready(function () {
var dt = $('#datatable').DataTable({
"processing": true,
"stateSave": true,
"serverSide": true,
"scrollX": true,
"language": {"url": 'https://cdn.datatables.net/plug-ins/1.10.19/i18n/Portuguese-Brasil.json'},
"ajax": "https://sje.mg.gov.br/concursos-publicos/get",
"columns": [
{"data": "data"},
{"data": "titulo"},
{"data": "action", name: "action", orderable: false, searchable: false, class: "text-center"},
],
"dom": 'Bfrtip',
"buttons": [
{
extend:'excelHtml5',
text: 'Excel',
action: function ( e, dt, node, config ) {
let url ='https://sje.mg.gov.br/concursos-publicos/export?format=xlsx'
window.open(url);
}
},
{
extend:'excelHtml5',
text: 'ODS',
action: function ( e, dt, node, config ) {
let url ='https://sje.mg.gov.br/concursos-publicos/export?format=ods'
window.open(url);
}
},
{
extend: 'csvHtml5',
action: function ( e, dt, node, config ) {
let url ='https://sje.mg.gov.br/concursos-publicos/export?format=csv'
window.open(url);
}
},
]
});
});
</script>]]>
|