Search code examples
bootstrap-table

Is there a way to get a list of hidden column


I want to save the list of hidden columns so that next time when the table is loaded I show the table with the same set of column which the user chose to see in the past. Is there a way to get a list of all hidden columns in bootstrap-table library.


Solution

  • You can use the cookie extension to solve your problem, here is an example: http://issues.wenzhixin.net.cn/bootstrap-table/#extensions/cookie.html.

    The plugin saves:

    • Sort order
    • Page number
    • Page number from the list
    • Visible columns
    • Search text

    Docs here: http://bootstrap-table.wenzhixin.net.cn/extensions/#table-cookie