PHP Classes

File: source/asset/crules/datatables-plugins/sorting/custom-data-source/dom-text.js

Recommend this page to a friend!
  Classes of ask sa sa   Rimau waf   source/asset/crules/datatables-plugins/sorting/custom-data-source/dom-text.js   Download  
File: source/asset/crules/datatables-plugins/sorting/custom-data-source/dom-text.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: 523 bytes
 

Contents

Class file image Download
/** * Read information from a column of input (type text) elements and return an * array to use as a basis for sorting. * * @summary Sorting based on the values of `dt-tag input` elements in a column. * @name Input element data source * @requires DataTables 1.10+ * @author [Allan Jardine](http://sprymedia.co.uk) */ $.fn.dataTable.ext.order['dom-text'] = function ( settings, col ) { return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) { return $('input', td).val(); } ); };