mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Added datatables.net plugins
This commit is contained in:
parent
e3b408ac27
commit
93332f09e2
8 changed files with 81 additions and 75 deletions
|
|
@ -0,0 +1,20 @@
|
|||
/**
|
||||
* (C) 2020-22 - ntop.org
|
||||
* This file contains datatables.net extensions.
|
||||
*/
|
||||
|
||||
/* See issue https://datatables.net/forums/discussion/44885 */
|
||||
|
||||
$.fn.dataTable.Api.registerPlural( 'columns().names()', 'column().name()', function ( setter ) {
|
||||
return this.iterator( 'column', function ( settings, column ) {
|
||||
var col = settings.aoColumns[column];
|
||||
|
||||
if ( setter !== undefined ) {
|
||||
col.sName = setter;
|
||||
return this;
|
||||
}
|
||||
else {
|
||||
return col.sName;
|
||||
}
|
||||
}, 1 );
|
||||
} );
|
||||
Loading…
Add table
Add a link
Reference in a new issue