PHP Classes

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

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

Contents

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