PHP Classes

File: source/asset/crules/datatables-plugins/api/fnGetHiddenNodes.js

Recommend this page to a friend!
  Classes of ask sa sa   Rimau waf   source/asset/crules/datatables-plugins/api/fnGetHiddenNodes.js   Download  
File: source/asset/crules/datatables-plugins/api/fnGetHiddenNodes.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Rimau waf
Application to configure Web server module options
Author: By
Last change:
Date: 1 year ago
Size: 1,117 bytes
 

Contents

Class file image Download
/** * Get a list of all `dt-tag tr` nodes in the table which are not currently * visible (useful for building forms). * * This function is marked as deprecated as using the `dt-api rows()` method in * DataTables 1.10+ is preferred to this approach. * * @name fnGetHiddenNodes * @summary Get the `dt-tag tr` elements which are not in the DOM * @author [Allan Jardine](http://sprymedia.co.uk) * @deprecated * * @example * var table = $('#example').dataTable(); * var nodes = table.fnGetHiddenNodes(); */ jQuery.fn.dataTableExt.oApi.fnGetHiddenNodes = function ( settings ) { var nodes; var display = jQuery('tbody tr', settings.nTable); if ( jQuery.fn.dataTable.versionCheck ) { // DataTables 1.10 var api = new jQuery.fn.dataTable.Api( settings ); nodes = api.rows().nodes().toArray(); } else { // 1.9- nodes = this.oApi._fnGetTrNodes( settings ); } /* Remove nodes which are being displayed */ for ( var i=0 ; i<display.length ; i++ ) { var iIndex = jQuery.inArray( display[i], nodes ); if ( iIndex != -1 ) { nodes.splice( iIndex, 1 ); } } return nodes; };