How to show empty data message in Datatables

前端 未结 7 1447
感动是毒
感动是毒 2020-12-07 20:04

Suppose i get empty data from server sometimes, i want to display No Data found message in DataTables?. How is this possible?

7条回答
  •  悲哀的现实
    2020-12-07 20:17

    It is worth noting that if you are returning server side data - you must supply the Data attribute even if there isn't any. It doesn't read the recordsTotal or recordsFiltered but relies on the count of the data object

提交回复
热议问题