Skip to content

Commit

Permalink
e6d8d07eae31b778522785b4dd5699aaa1e2d1da Dev: Add a data-dt-column
Browse files Browse the repository at this point in the history
…attribute to the `colgroup>col` elements

This can be useful for debugging, but isn't actually used for anything
more than that at the moment.

Sync to source repo @e6d8d07eae31b778522785b4dd5699aaa1e2d1da
  • Loading branch information
dtbuild committed Apr 12, 2024
1 parent baceca1 commit 91a900a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion datatables.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
],
"src-repo": "http://github.com/DataTables/DataTablesSrc",
"last-tag": "2.0.3",
"last-sync": "2a5b9b9791b7711947ef823455e580c9c96f3816"
"last-sync": "e6d8d07eae31b778522785b4dd5699aaa1e2d1da"
}
2 changes: 1 addition & 1 deletion js/dataTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -2017,7 +2017,7 @@
"mData": oDefaults.mData ? oDefaults.mData : iCol,
idx: iCol,
searchFixed: {},
colEl: $('<col>')
colEl: $('<col>').attr('data-dt-column', iCol)
} );
oSettings.aoColumns.push( oCol );

Expand Down
2 changes: 1 addition & 1 deletion js/dataTables.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dataTables.min.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dataTables.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1964,7 +1964,7 @@ function _fnAddColumn( oSettings )
"mData": oDefaults.mData ? oDefaults.mData : iCol,
idx: iCol,
searchFixed: {},
colEl: $('<col>')
colEl: $('<col>').attr('data-dt-column', iCol)
} );
oSettings.aoColumns.push( oCol );

Expand Down

0 comments on commit 91a900a

Please sign in to comment.