wenzhixin / bootstrap-table-examples

Bootstrap table examples
https://examples.bootstrap-table.com/
MIT License
2.24k stars 1.62k forks source link

How to custom button set default active and disable auto refresh to the column? help ;) #438

Closed t00mis closed 3 years ago

t00mis commented 3 years ago

Hello :) You have a great product that makes problem solving easier for many people, including me. I recently learned about boot tables and loved them! I can't find in the documentation how to set up a custom button active by default, the arguments class doesn't work. And one more question. I use auto update with a high frequency, about 1-2 seconds. In one column, I have a drop-down list of actions. And it collapses when updated. This greatly interferes with the user and prevents them from reading. How can I disable auto-update for one column, or should I go the other way? Thank you <3

wenzhixin commented 3 years ago

Something like this:

function autoUpdate () {
  if (dropdownOpen) {
    return
  }
  // auto update
}