0

I use these code to customize my datatable.

    "language": {
        "lengthMenu": "Menampilkan  _MENU_  Baris",
        "zeroRecords": "Data Tidak Tersedia",
        "info": "Menampilkan Halaman _PAGE_ Dari _PAGES_",
        "infoEmpty": "Data Tidak Tersedia",
        "infoFiltered": "(filtered from _MAX_ total records)",
        "oPaginate": {
        "sNext" : "Selanjutnya",
        "sPrevious" : "Sebelumnya",
    },

but they just change the language of my datatable menu. and my question is how to change a ZeroRecords message into an image? I want my datatable show an image when empty. Please somebody help me. thank's anyway

davidkonrad
  • 83,997
  • 17
  • 205
  • 265
Almaida Jody
  • 558
  • 2
  • 9
  • 19

1 Answers1

1

Just follow this simple step. change: this line

"zeroRecords": "Data Tidak Tersedia",

To:

"zeroRecords": "<img src='https://your-url-image'>",
Tyler2P
  • 2,324
  • 26
  • 22
  • 31