避免在数据表中呈现“表中没有可用数据”

阿图尔·库玛·辛格(Atul kumar singh)

我正在使用JQuery数据表。当表呈现时,它显示为“表中没有可用数据”,并且一段时间后表开始显示数据,并且该“无可用数据”消失了。

我不希望出现“没有可用数据”,而是出现“正在加载”或“请稍候”之类的东西,那将是很好的选择,或者没有任何东西可以解决我的问题。

戴维·康拉德

在这里寻找完整的参考- > https://datatables.net/reference/option/language你正在寻找的是属性loadingRecordsemptyTablezeroRecords

$("#example").DataTable({
  language: {
   emptyTable: "No data available in table", // 
   loadingRecords: "Please wait .. ", // default Loading...
   zeroRecords: "No matching records found"
  }
})

角度数据表:

$scope.dtOptions = DTOptionsBuilder.newOptions()
  .withLanguage({
    emptyTable: "No data available in table", 
    loadingRecords: "Loading...",
    zeroRecords: "A different no matching records message"
  })

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章