Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

215
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda