首页 > 解决方案 > 我希望#tabulator 在加载数据时显示加载器,并在没有数据可用时抛出错误

问题描述

我使用的是最新版本 5.0,所以我使用的是 ajax 的数据加载器,但仍然无法正常工作,我正在使用 meteor.call() 从数据库中获取数据

height: "100%",
        dataLoader: true,
        dataLoaderLoading:"<div style='display:inline-block; border:4px solid #333; border-radius:10px; background:#fff; font-weight:bold; font-size:16px; color:#000; padding:10px 20px;'>Loading Data</div>",
        dataLoaderError: "<div style='display:inline-block; border:4px solid #D00; border-radius:10px; background:#fff; font-weight:bold; font-size:16px; color:#590000; padding:10px 20px;'>Loading Error</div>",
        data: this.selector.get(),
        layout: "fitColumns", 
        placeholder: "No Data Available",

标签: tabulator

解决方案


推荐阅读