How can I prevent the jquery dataTable plugin from adding row and message when there is no data

后端 未结 5 1892
执念已碎
执念已碎 2020-12-20 16:46

Our product owner would like the our empty tables to display just table header when there is no data in table. I can\'t seem to prevent dataTable from creating a row with \"

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-20 17:29

    The most current way to hide the messages is by using the language option

    $('#loggedMessages').DataTable({
        "language": {
           "emptyTable": ' ',
           "zeroRecords": ' '
         }
     });
    

提交回复
热议问题