Skip to content

Commit

Permalink
v1.48.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dexterlabora committed Jul 4, 2024
1 parent 0d9f413 commit 4723762
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 159 deletions.
37 changes: 0 additions & 37 deletions docs/api-index/api-index-html.script.js
Original file line number Diff line number Diff line change
@@ -1,41 +1,4 @@
// function filterTable(input, columnIndex) {
// // Get all filter input values as an array
// var filterValues = Array.from(document.querySelectorAll('.scrollable-table thead input[type="text"]'))
// .map(input => input.value.toLowerCase());

// // Select all the table rows in the body
// var rows = document.querySelectorAll('.scrollable-table tbody tr');

// // Iterate over each row of the table
// rows.forEach(row => {
// var cells = row.querySelectorAll('td');
// var match = filterValues.every((filter, index) => {
// return filter === '' || cells[index].textContent.toLowerCase().includes(filter);
// });
// // If all filters matched, display the row; otherwise, hide it
// row.style.display = match ? '' : 'none';
// });
// }

// function clearFilters() {
// // Clear all filter inputs
// var filterInputs = document.querySelectorAll('.scrollable-table thead input[type="text"]');
// filterInputs.forEach(input => input.value = '');

// // Reapply filters to update the table view
// filterTable(filterInputs[0], 0); // The actual parameters don't matter here as filterTable() will read all inputs
// }


// document.addEventListener('DOMContentLoaded', () => {
// // Add the filter event listener to all filter inputs
// document.querySelectorAll('.scrollable-table thead input[type="text"]').forEach(input => {
// input.addEventListener('keyup', () => filterTable(input, 0));
// });

// // Initialize the table view by running the filter once on page load
// filterTable(document.querySelector('.scrollable-table thead input[type="text"]'), 0);
// });

function filterTable(input, columnIndex) {
// Get all filter input values and split by spaces for multi-term filtering
Expand Down
Loading

0 comments on commit 4723762

Please sign in to comment.