Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

147
Views
Problema de filtro de encabezado de lista de tabulador

Buenos días

Tengo un problema al usar el método DataFiltered en el tabulador

 table.on("dataFiltered", function(filters, rows){ //filters - array of filters currently applied //rows - array of row components that pass the filters });

Cuando la tabla se carga, el método se activa. Estoy tratando de desencadenar un evento cuando el usuario filtra la tabla usando el filtro de encabezado. ¿Hay alguna manera de que pueda usar un método onchange en los encabezados?

 var Table = new Tabulator("#gridData", { height: 800, ajaxURL:"getData.php", layout: "fitData", selectable:1, columns:[ {title:"Col", field:"Col1", sorter:"string", headerFilter:"list", headerFilterParams:{valuesLookup:true, clearable:true, autocomplete:true}}, {title:"Col2", field:"Col2", sorter:"string", headerFilter:"list", headerFilterParams:{valuesLookup:true, clearable:true, autocomplete:true}}, {title:"Col3", field:"Col3", sorter:"string", headerFilter:"list", headerFilterParams:{valuesLookup:true, clearable:true, autocomplete:true}}, {title:"Col4", field:"Col4", sorter:"string", headerFilter:"input"}, {title:"Col5", field:"Col5", sorter:"string", headerFilter:"input"}, ], ajaxResponse:function(url, params, response){ return response.data; //pass the data array into Tabulator } }); Table.on("dataFiltered", function(filters, rows){ //filters - array of filters currently applied //rows - array of row components that pass the filters alert("table filtered"); });

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!