PHP Classes

File: assets/js/datatables/src/ext/ext.types.js

Recommend this page to a friend!
  Classes of Tran Tuan   Pretty PHP S3 Files Manager   assets/js/datatables/src/ext/ext.types.js   Download  
File: assets/js/datatables/src/ext/ext.types.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Pretty PHP S3 Files Manager
Web based interface to manage files in Amazon S3
Author: By
Last change:
Date: 8 years ago
Size: 687 bytes
 

Contents

Class file image Download
// Built in type detection. See model.ext.aTypes for information about // what is required from this methods. $.extend( DataTable.ext.aTypes, [ // Numeric data type function ( data ) { return data==='' || data==='-' || (!isNaN( parseFloat(data) ) && isFinite( data )) ? 'numeric' : null; }, // Dates (only those recognised by the browser's Date.parse) function ( data ) { var parsed = Date.parse(data); return (parsed !== null && !isNaN(parsed)) || (typeof data==='string' && data.length===0) ? 'date' : null; }, // HTML function ( data ) { return typeof data === 'string' && data.indexOf('<') != -1 && data.indexOf('>') != -1 ? 'html' : null; } ] );