Skip to content

Commit

Permalink
Call new DataTable only on table objects
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Sep 29, 2024
1 parent 2239f83 commit a03d71c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
ITables ChangeLog
=================

2.2.2-dev (2024-09-??)
------------------

**Fixed**
- We have fixed a HTML pop up warning when displaying Pandas Style objects in Quarto ([#317](https://github.com/mwouts/itables/issues/317))
- The dependencies of the Streamlit component have been updated ([#323](https://github.com/mwouts/itables/pull/323))


2.2.1 (2024-09-22)
------------------

Expand Down
3 changes: 3 additions & 0 deletions src/itables/html/datatables_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
import {DataTable, jQuery as $} from 'https://www.unpkg.com/dt_for_itables/dt_bundle.js';

document.querySelectorAll("#table_id:not(.dataTable)").forEach(table => {
if (!(table instanceof HTMLTableElement))
return;

// Define the table data
const data = [];

Expand Down
2 changes: 1 addition & 1 deletion src/itables/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""ITables' version number"""

__version__ = "2.2.1"
__version__ = "2.2.2-dev"

0 comments on commit a03d71c

Please sign in to comment.