Skip to content

Commit

Permalink
Extend docstring of CSS and JS file
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Jul 25, 2024
1 parent e099b1e commit 3f191cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion audbcards/sphinx/table-preview.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Expand row in Tables table to show preview of table content.
/* Expand rows in Tables table to show preview of each tables content.
/*
/* Implementation based on https://github.com/chhikaradi1993/Expandable-table-row
*/
Expand Down
6 changes: 5 additions & 1 deletion audbcards/sphinx/table-preview.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
// Expand row in Tables table to show preview of table content.
// Expand rows in Tables table to show preview of each tables content.
//
// Implementation based on https://github.com/chhikaradi1993/Expandable-table-row
//
const toggleRow = (row) => {
// Toggle visibility of table preview
row.getElementsByClassName('expanded-row-content')[0].classList.toggle('hide-row');
// Toggle clicked attribute on clicked table row.
// This can be used to adjust appearance of clicked table,
// e.g. remove bottom border
if (row.className.indexOf("clicked") === -1) {
row.classList.add("clicked");
} else {
Expand Down

0 comments on commit 3f191cf

Please sign in to comment.