The Events API of Bootstrap Table.

Events can be bound in two ways:

  • via the option object
  • via jquery event handler

Binding via the options object:

// Here, you can expect to have as the last parameter the boostrap-table object

$('#table').bootstrapTable({
  onEventName: function (arg1, arg2, ...) {
    // ...
  }
})

Binding via the jquery event handler:

// Here, you can expect to have in the 'e' variable the sender property, which is the boostrap-table object

$('#table').on('event-name.bs.table', function (e, arg1, arg2, ...) {
  // ...
})

Hint: if you use the jquery event handler, make sure to bind the event listener before the event is executed!