javascript - How to determine if the columns of bootstrap table mergecells have been loaded?
高洛峰
高洛峰 2017-05-19 10:15:21
0
1
990

Use bootstrap table options to set the table. I hope to use the mergeCells method to merge cells, but now I don’t know how to determine whether the columns have been loaded?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
过去多啦不再A梦

$('#table').bootstrapTable('mergeCells', {index: 1, field: 'title', colspan: 0, rowspan: 2});
This is the method to merge cells, after the table is loaded It can be printed on the console, but in the code, there should be a callback function similar to onLoadSuccess: (the callback function after the table is loaded). The problem now is that I tried the function given in the official website document to set it, but it still doesn't work. , I wonder if any of you have experienced similar situations?

Similar to
onPostBody post-body.bs.table none Fires after the table body is rendered and available in the DOM
I feel that in theory this method should be able to solve it, but I have tried it many times and it still doesn’t work.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template