Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

214
Vistas
How to make filters not reset each other in bootstrap-table?

I'm using https://bootstrap-table.com/ for my table. I created several buttons to filter through specific columns using filterBy method. Now what I want to achieve is that filters search through only the data that is visible at the time instead of filtering through the whole table again, so that with every button click the only data visible is the one that matches two or more filters.

I initially thought that the 'filterAlgorithm': 'and' is what would do the trick, but it only works for what is already specified in the function and I have different function for every button.

    $(function () {
      $button.click(function () {
        $table.bootstrapTable('filterBy', {
          tag: ('2D')
        },
          {
            'filterAlgorithm': 'and'
          })
      })
    })

Is there a way to either combine those filters or somehow access the data after it beeing filtered? If I could access that data how would I go about displaying it? Right now I'm using simple flask to populate the table in plain HTML. I'm a total noob, so I have a feeling solution might be really simple, but I can't find it myself.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda