简体   繁体   English

Tabulator.js 停止初始 ajax 数据加载和第一次过滤后加载数据

[英]Tabulator.js Stop initial ajax data load and load data after first filter

I am using tabulator.js library and would like to start loading data after first filter, not immediately after page load.我正在使用 tabulator.js 库,并希望在第一次过滤后开始加载数据,而不是在页面加载后立即加载。 Something like this:像这样的东西:

initialAjaxLoad: false

I would suggest that you do not set the ajaxURL in your initial constructor which will cause the table to load with no data我建议您不要在初始构造函数中设置ajaxURL ,这将导致表加载时没有数据

You can then call the setData function whenever you are ready to load the data:然后,您可以在准备好加载数据时调用setData function:

table.setData("http://your.url.com"):

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM