search

Home  >  Q&A  >  body text

javascript - How to determine if the columns of bootstrap table mergecells have been loaded?

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?

高洛峰高洛峰2744 days ago964

reply all(1)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-19 10:17:21

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

    reply
    0
  • Cancelreply