dist/lib/thirdparty/filtertable.js
function setFilterGrid(id, ref_row) {
    if (typeof window === 'undefined' || typeof document === 'undefined') return;

    var tbl = document.getElementById(id);
    if (tbl && tbl.nodeName.toLowerCase() === "table") {
      TblId.push(id);
      ref_row = ref_row === undefined ? StartRow.push(2) : StartRow.push(ref_row + 2);
      //let ncells = getCellsNb(id, ref_row);

      // AddRow(id, ncells);
    }
  }
function setFilterGrid(id, ref_row) {
    if (typeof window === 'undefined' || typeof document === 'undefined') return;

    var tbl = document.getElementById(id);
    if (tbl && tbl.nodeName.toLowerCase() === "table") {
      TblId.push(id);
      ref_row = ref_row === undefined ? StartRow.push(2) : StartRow.push(ref_row + 2);
      //let ncells = getCellsNb(id, ref_row);

      // AddRow(id, ncells);
    }
  }
/*====================================================
- Checks if id exists and is a table
- Calls fn that adds inputs and button
=====================================================