mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-27 00:54:15 +01:00
New: Add dt-api table().container()
and dt-api tables().containers()
methods to get the container -tag div
elements for table(s)
* This is likely to be of more interest to plug-in authors rather than for general DataTables usage, but I've found myself wanting it a couple of times recently for plug-ins.
This commit is contained in:
parent
c38e140a52
commit
73ed6c4725
@ -1 +1 @@
|
|||||||
89ab148ad45a219c2623fcc75b15a59b7d0c7a2e
|
005ac1a540dfef114feaefe0968d647da0ae87c1
|
||||||
|
7
media/js/jquery.dataTables.js
vendored
7
media/js/jquery.dataTables.js
vendored
@ -7043,6 +7043,13 @@
|
|||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
||||||
|
_api_registerPlural( 'tables().containers()', 'table().container()' , function () {
|
||||||
|
return this.iterator( 'table', function ( ctx ) {
|
||||||
|
return ctx.nTableWrapper;
|
||||||
|
} );
|
||||||
|
} );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Redraw the tables in the current context.
|
* Redraw the tables in the current context.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user