开发者

jQuery DataTables Plugin Callback

开发者 https://www.devze.com 2023-01-15 02:12 出处:网络
I need to cache the html of the table before applying DataTable plugin. I used to do it by caching the html and after it applying the plgin:

I need to cache the html of the table before applying DataTable plugin. I used to do it by caching the html and after it applying the plgin:

v开发者_JAVA技巧ar originalTableHtml = escape($('#DataTable').parent().html());
$('#DataTable').dataTable(DataTableOpts);

However, now I need to do it somehow in another to do it. Is there any way to apply a callback "on DataTable Init"..?

Thanks


I have solved it by editing the plugin and creating a "before init" callback.

0

精彩评论

暂无评论...
验证码 换一张
取 消