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?
$('#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.
$('#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.