Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

Rev Author Line No. Line
1387 richard 1
/*! DataTables 1.10.0
2
 * ©2008-2014 SpryMedia Ltd - datatables.net/license
3
 */
4
 
5
/**
6
 * @summary     DataTables
7
 * @description Paginate, search and order HTML tables
8
 * @version     1.10.0
9
 * @file        jquery.dataTables.js
10
 * @author      SpryMedia Ltd (www.sprymedia.co.uk)
11
 * @contact     www.sprymedia.co.uk/contact
12
 * @copyright   Copyright 2008-2014 SpryMedia Ltd.
13
 *
14
 * This source file is free software, available under the following license:
15
 *   MIT license - http://datatables.net/license
16
 *
17
 * This source file is distributed in the hope that it will be useful, but
18
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19
 * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
20
 *
21
 * For details please refer to: http://www.datatables.net
22
 */
23
 
24
/*jslint evil: true, undef: true, browser: true */
25
/*globals $,require,jQuery,define,_selector_run,_selector_opts,_selector_first,_selector_row_indexes,_ext,_Api,_api_register,_api_registerPlural,_re_new_lines,_re_html,_re_formatted_numeric,_re_escape_regex,_empty,_intVal,_numToDecimal,_isNumber,_isHtml,_htmlNumeric,_pluck,_pluck_order,_range,_stripHtml,_unique,_fnBuildAjax,_fnAjaxUpdate,_fnAjaxParameters,_fnAjaxUpdateDraw,_fnAjaxDataSrc,_fnAddColumn,_fnColumnOptions,_fnAdjustColumnSizing,_fnVisibleToColumnIndex,_fnColumnIndexToVisible,_fnVisbleColumns,_fnGetColumns,_fnColumnTypes,_fnApplyColumnDefs,_fnHungarianMap,_fnCamelToHungarian,_fnLanguageCompat,_fnBrowserDetect,_fnAddData,_fnAddTr,_fnNodeToDataIndex,_fnNodeToColumnIndex,_fnGetCellData,_fnSetCellData,_fnSplitObjNotation,_fnGetObjectDataFn,_fnSetObjectDataFn,_fnGetDataMaster,_fnClearTable,_fnDeleteIndex,_fnInvalidateRow,_fnGetRowElements,_fnCreateTr,_fnBuildHead,_fnDrawHead,_fnDraw,_fnReDraw,_fnAddOptionsHtml,_fnDetectHeader,_fnGetUniqueThs,_fnFeatureHtmlFilter,_fnFilterComplete,_fnFilterCustom,_fnFilterColumn,_fnFilter,_fnFilterCreateSearch,_fnEscapeRegex,_fnFilterData,_fnFeatureHtmlInfo,_fnUpdateInfo,_fnInfoMacros,_fnInitialise,_fnInitComplete,_fnLengthChange,_fnFeatureHtmlLength,_fnFeatureHtmlPaginate,_fnPageChange,_fnFeatureHtmlProcessing,_fnProcessingDisplay,_fnFeatureHtmlTable,_fnScrollDraw,_fnApplyToChildren,_fnCalculateColumnWidths,_fnThrottle,_fnConvertToWidth,_fnScrollingWidthAdjust,_fnGetWidestNode,_fnGetMaxLenString,_fnStringToCss,_fnScrollBarWidth,_fnSortFlatten,_fnSort,_fnSortAria,_fnSortListener,_fnSortAttachListener,_fnSortingClasses,_fnSortData,_fnSaveState,_fnLoadState,_fnSettingsFromNode,_fnLog,_fnMap,_fnBindAction,_fnCallbackReg,_fnCallbackFire,_fnLengthOverflow,_fnRenderer,_fnDataSource,_fnRowAttributes*/
26
 
27
(/** @lends <global> */function( window, document, undefined ) {
28
 
29
(function( factory ) {
30
	"use strict";
31
 
32
	if ( typeof define === 'function' && define.amd ) {
33
		// Define as an AMD module if possible
34
		define( 'datatables', ['jquery'], factory );
35
	}
36
    else if ( typeof exports === 'object' ) {
37
        // Node/CommonJS
38
        factory( require( 'jquery' ) );
39
    }
40
	else if ( jQuery && !jQuery.fn.dataTable ) {
41
		// Define using browser globals otherwise
42
		// Prevent multiple instantiations if the script is loaded twice
43
		factory( jQuery );
44
	}
45
}
46
(/** @lends <global> */function( $ ) {
47
	"use strict";
48
 
49
	/**
50
	 * DataTables is a plug-in for the jQuery Javascript library. It is a highly
51
	 * flexible tool, based upon the foundations of progressive enhancement,
52
	 * which will add advanced interaction controls to any HTML table. For a
53
	 * full list of features please refer to
54
	 * [DataTables.net](href="http://datatables.net).
55
	 *
56
	 * Note that the `DataTable` object is not a global variable but is aliased
57
	 * to `jQuery.fn.DataTable` and `jQuery.fn.dataTable` through which it may
58
	 * be  accessed.
59
	 *
60
	 *  @class
61
	 *  @param {object} [init={}] Configuration object for DataTables. Options
62
	 *    are defined by {@link DataTable.defaults}
63
	 *  @requires jQuery 1.7+
64
	 *
65
	 *  @example
66
	 *    // Basic initialisation
67
	 *    $(document).ready( function {
68
	 *      $('#example').dataTable();
69
	 *    } );
70
	 *
71
	 *  @example
72
	 *    // Initialisation with configuration options - in this case, disable
73
	 *    // pagination and sorting.
74
	 *    $(document).ready( function {
75
	 *      $('#example').dataTable( {
76
	 *        "paginate": false,
77
	 *        "sort": false
78
	 *      } );
79
	 *    } );
80
	 */
81
	var DataTable;
82
 
83
 
84
	/*
85
	 * It is useful to have variables which are scoped locally so only the
86
	 * DataTables functions can access them and they don't leak into global space.
87
	 * At the same time these functions are often useful over multiple files in the
88
	 * core and API, so we list, or at least document, all variables which are used
89
	 * by DataTables as private variables here. This also ensures that there is no
90
	 * clashing of variable names and that they can easily referenced for reuse.
91
	 */
92
 
93
 
94
	// Defined else where
95
	//  _selector_run
96
	//  _selector_opts
97
	//  _selector_first
98
	//  _selector_row_indexes
99
 
100
	var _ext; // DataTable.ext
101
	var _Api; // DataTable.Api
102
	var _api_register; // DataTable.Api.register
103
	var _api_registerPlural; // DataTable.Api.registerPlural
104
 
105
	var _re_dic = {};
106
	var _re_new_lines = /[\r\n]/g;
107
	var _re_html = /<.*?>/g;
108
<.*?>	var _re_date_start = /^[\d\+\-a-zA-Z]/;
109
 
110
<.*?>	// Escape regular expression special characters
111
<.*?>	var _re_escape_regex = new RegExp( '(\\' + [ '/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\', '$', '^', '-' ].join('|\\') + ')', 'g' );
112
 
113
<.*?>	// U+2009 is thin space and U+202F is narrow no-break space, both used in many
114
<.*?>	// standards as thousands separators
115
<.*?>	var _re_formatted_numeric = /[',$£€¥%\u2009\u202F]/g;
116
 
117
 
118
<.*?>	var _empty = function ( d ) {
119
<.*?>		return !d || d === '-' ? true : false;
120
<.*?>	};
121
 
122
 
123
<.*?>	var _intVal = function ( s ) {
124
<.*?>		var integer = parseInt( s, 10 );
125
<.*?>		return !isNaN(integer) && isFinite(s) ? integer : null;
126
<.*?>	};
127
 
128
<.*?>	// Convert from a formatted number with characters other than `.` as the
129
<.*?>	// decimal place, to a Javascript number
130
<.*?>	var _numToDecimal = function ( num, decimalPoint ) {
131
<.*?>		// Cache created regular expressions for speed as this function is called often
132
<.*?>		if ( ! _re_dic[ decimalPoint ] ) {
133
<.*?>			_re_dic[ decimalPoint ] = new RegExp( _fnEscapeRegex( decimalPoint ), 'g' );
134
<.*?>		}
135
<.*?>		return typeof num === 'string' ?
136
<.*?>			num.replace( /\./g, '' ).replace( _re_dic[ decimalPoint ], '.' ) :
137
<.*?>			num;
138
<.*?>	};
139
 
140
 
141
<.*?>	var _isNumber = function ( d, decimalPoint, formatted ) {
142
<.*?>		var strType = typeof d === 'string';
143
 
144
<.*?>		if ( decimalPoint && strType ) {
145
<.*?>			d = _numToDecimal( d, decimalPoint );
146
<.*?>		}
147
 
148
<.*?>		if ( formatted && strType ) {
149
<.*?>			d = d.replace( _re_formatted_numeric, '' );
150
<.*?>		}
151
 
152
<.*?>		return !d || d==='-' || (!isNaN( parseFloat(d) ) && isFinite( d ));
153
<.*?>	};
154
 
155
 
156
<.*?>	// A string without HTML in it can be considered to be HTML still
157
<.*?>	var _isHtml = function ( d ) {
158
<.*?>		return !d || typeof d === 'string';
159
<.*?>	};
160
 
161
 
162
<.*?>	var _htmlNumeric = function ( d, decimalPoint, formatted ) {
163
<.*?>		if ( _empty( d ) ) {
164
<.*?>			return true;
165
<.*?>		}
166
 
167
<.*?>		var html = _isHtml( d );
168
<.*?>		return ! html ?
169
<.*?>			null :
170
<.*?>			_isNumber( _stripHtml( d ), decimalPoint, formatted ) ?
171
<.*?>				true :
172
<.*?>				null;
173
<.*?>	};
174
 
175
 
176
<.*?>	var _pluck = function ( a, prop, prop2 ) {
177
<.*?>		var out = [];
178
<.*?>		var i=0, ien=a.length;
179
 
180
<.*?>		// Could have the test in the loop for slightly smaller code, but speed
181
<.*?>		// is essential here
182
<.*?>		if ( prop2 !== undefined ) {
183
<.*?>			for ( ; i<ien ; i++ ) {
184
<.*?>				if ( a[i] && a[i][ prop ] ) {
185
<.*?>					out.push( a[i][ prop ][ prop2 ] );
186
<.*?>				}
187
<.*?>			}
188
<.*?>		}
189
<.*?>		else {
190
<.*?>			for ( ; i<ien ; i++ ) {
191
<.*?>				if ( a[i] ) {
192
<.*?>					out.push( a[i][ prop ] );
193
<.*?>				}
194
<.*?>			}
195
<.*?>		}
196
 
197
<.*?>		return out;
198
<.*?>	};
199
 
200
 
201
<.*?>	// Basically the same as _pluck, but rather than looping over `a` we use `order`
202
<.*?>	// as the indexes to pick from `a`
203
<.*?>	var _pluck_order = function ( a, order, prop, prop2 )
204
<.*?>	{
205
<.*?>		var out = [];
206
<.*?>		var i=0, ien=order.length;
207
 
208
<.*?>		// Could have the test in the loop for slightly smaller code, but speed
209
<.*?>		// is essential here
210
<.*?>		if ( prop2 !== undefined ) {
211
<.*?>			for ( ; i<ien ; i++ ) {
212
<.*?>				out.push( a[ order[i] ][ prop ][ prop2 ] );
213
<.*?>			}
214
<.*?>		}
215
<.*?>		else {
216
<.*?>			for ( ; i<ien ; i++ ) {
217
<.*?>				out.push( a[ order[i] ][ prop ] );
218
<.*?>			}
219
<.*?>		}
220
 
221
<.*?>		return out;
222
<.*?>	};
223
 
224
 
225
<.*?>	var _range = function ( len, start )
226
<.*?>	{
227
<.*?>		var out = [];
228
<.*?>		var end;
229
 
230
<.*?>		if ( start === undefined ) {
231
<.*?>			start = 0;
232
<.*?>			end = len;
233
<.*?>		}
234
<.*?>		else {
235
<.*?>			end = start;
236
<.*?>			start = len;
237
<.*?>		}
238
 
239
<.*?>		for ( var i=start ; i<end ; i++ ) {
240
<.*?>			out.push( i );
241
<.*?>		}
242
 
243
<.*?>		return out;
244
<.*?>	};
245
 
246
 
247
<.*?>	var _stripHtml = function ( d ) {
248
<.*?>		return d.replace( _re_html, '' );
249
<.*?>	};
250
 
251
 
252
<.*?>	/**
253
<.*?>	 * Find the unique elements in a source array.
254
<.*?>	 *
255
<.*?>	 * @param  {array} src Source array
256
<.*?>	 * @return {array} Array of unique items
257
<.*?>	 * @ignore
258
<.*?>	 */
259
<.*?>	var _unique = function ( src )
260
<.*?>	{
261
<.*?>		// A faster unique method is to use object keys to identify used values,
262
<.*?>		// but this doesn't work with arrays or objects, which we must also
263
<.*?>		// consider. See jsperf.com/compare-array-unique-versions/4 for more
264
<.*?>		// information.
265
<.*?>		var
266
<.*?>			out = [],
267
<.*?>			val,
268
<.*?>			i, ien=src.length,
269
<.*?>			j, k=0;
270
 
271
<.*?>		again: for ( i=0 ; i<ien ; i++ ) {
272
<.*?>			val = src[i];
273
 
274
<.*?>			for ( j=0 ; j<k ; j++ ) {
275
<.*?>				if ( out[j] === val ) {
276
<.*?>					continue again;
277
<.*?>				}
278
<.*?>			}
279
 
280
<.*?>			out.push( val );
281
<.*?>			k++;
282
<.*?>		}
283
 
284
<.*?>		return out;
285
<.*?>	};
286
 
287
 
288
 
289
<.*?>	/**
290
<.*?>	 * Create a mapping object that allows camel case parameters to be looked up
291
<.*?>	 * for their Hungarian counterparts. The mapping is stored in a private
292
<.*?>	 * parameter called `_hungarianMap` which can be accessed on the source object.
293
<.*?>	 *  @param {object} o
294
<.*?>	 *  @memberof DataTable#oApi
295
<.*?>	 */
296
<.*?>	function _fnHungarianMap ( o )
297
<.*?>	{
298
<.*?>		var
299
<.*?>			hungarian = 'a aa ai ao as b fn i m o s ',
300
<.*?>			match,
301
<.*?>			newKey,
302
<.*?>			map = {};
303
 
304
<.*?>		$.each( o, function (key, val) {
305
<.*?>			match = key.match(/^([^A-Z]+?)([A-Z])/);
306
 
307
<.*?>			if ( match && hungarian.indexOf(match[1]+' ') !== -1 )
308
<.*?>			{
309
<.*?>				newKey = key.replace( match[0], match[2].toLowerCase() );
310
<.*?>				map[ newKey ] = key;
311
 
312
<.*?>				//console.log( key, match );
313
<.*?>				if ( match[1] === 'o' )
314
<.*?>				{
315
<.*?>					_fnHungarianMap( o[key] );
316
<.*?>				}
317
<.*?>			}
318
<.*?>		} );
319
 
320
<.*?>		o._hungarianMap = map;
321
<.*?>	}
322
 
323
 
324
<.*?>	/**
325
<.*?>	 * Convert from camel case parameters to Hungarian, based on a Hungarian map
326
<.*?>	 * created by _fnHungarianMap.
327
<.*?>	 *  @param {object} src The model object which holds all parameters that can be
328
<.*?>	 *    mapped.
329
<.*?>	 *  @param {object} user The object to convert from camel case to Hungarian.
330
<.*?>	 *  @param {boolean} force When set to `true`, properties which already have a
331
<.*?>	 *    Hungarian value in the `user` object will be overwritten. Otherwise they
332
<.*?>	 *    won't be.
333
<.*?>	 *  @memberof DataTable#oApi
334
<.*?>	 */
335
<.*?>	function _fnCamelToHungarian ( src, user, force )
336
<.*?>	{
337
<.*?>		if ( ! src._hungarianMap ) {
338
<.*?>			_fnHungarianMap( src );
339
<.*?>		}
340
 
341
<.*?>		var hungarianKey;
342
 
343
<.*?>		$.each( user, function (key, val) {
344
<.*?>			hungarianKey = src._hungarianMap[ key ];
345
 
346
<.*?>			if ( hungarianKey !== undefined && (force || user[hungarianKey] === undefined) )
347
<.*?>			{
348
<.*?>				// For objects, we need to buzz down into the object to copy parameters
349
<.*?>				if ( hungarianKey.charAt(0) === 'o' )
350
<.*?>				{
351
<.*?>					// Copy the camelCase options over to the hungarian
352
<.*?>					if ( ! user[ hungarianKey ] ) {
353
<.*?>						user[ hungarianKey ] = {};
354
<.*?>					}
355
<.*?>					$.extend( true, user[hungarianKey], user[key] );
356
 
357
<.*?>					_fnCamelToHungarian( src[hungarianKey], user[hungarianKey], force );
358
<.*?>				}
359
<.*?>				else {
360
<.*?>					user[hungarianKey] = user[ key ];
361
<.*?>				}
362
<.*?>			}
363
<.*?>		} );
364
<.*?>	}
365
 
366
 
367
<.*?>	/**
368
<.*?>	 * Language compatibility - when certain options are given, and others aren't, we
369
<.*?>	 * need to duplicate the values over, in order to provide backwards compatibility
370
<.*?>	 * with older language files.
371
<.*?>	 *  @param {object} oSettings dataTables settings object
372
<.*?>	 *  @memberof DataTable#oApi
373
<.*?>	 */
374
<.*?>	function _fnLanguageCompat( lang )
375
<.*?>	{
376
<.*?>		var defaults = DataTable.defaults.oLanguage;
377
<.*?>		var zeroRecords = lang.sZeroRecords;
378
 
379
<.*?>		/* Backwards compatibility - if there is no sEmptyTable given, then use the same as
380
<.*?>		 * sZeroRecords - assuming that is given.
381
<.*?>		 */
382
<.*?>		if ( ! lang.sEmptyTable && zeroRecords &&
383
<.*?>			defaults.sEmptyTable === "No data available in table" )
384
<.*?>		{
385
<.*?>			_fnMap( lang, lang, 'sZeroRecords', 'sEmptyTable' );
386
<.*?>		}
387
 
388
<.*?>		/* Likewise with loading records */
389
<.*?>		if ( ! lang.sLoadingRecords && zeroRecords &&
390
<.*?>			defaults.sLoadingRecords === "Loading..." )
391
<.*?>		{
392
<.*?>			_fnMap( lang, lang, 'sZeroRecords', 'sLoadingRecords' );
393
<.*?>		}
394
 
395
<.*?>		// Old parameter name of the thousands separator mapped onto the new
396
<.*?>		if ( lang.sInfoThousands ) {
397
<.*?>			lang.sThousands = lang.sInfoThousands;
398
<.*?>		}
399
 
400
<.*?>		var decimal = lang.sDecimal;
401
<.*?>		if ( decimal ) {
402
<.*?>			_addNumericSort( decimal );
403
<.*?>		}
404
<.*?>	}
405
 
406
 
407
<.*?>	/**
408
<.*?>	 * Map one parameter onto another
409
<.*?>	 *  @param {object} o Object to map
410
<.*?>	 *  @param {*} knew The new parameter name
411
<.*?>	 *  @param {*} old The old parameter name
412
<.*?>	 */
413
<.*?>	var _fnCompatMap = function ( o, knew, old ) {
414
<.*?>		if ( o[ knew ] !== undefined ) {
415
<.*?>			o[ old ] = o[ knew ];
416
<.*?>		}
417
<.*?>	};
418
 
419
 
420
<.*?>	/**
421
<.*?>	 * Provide backwards compatibility for the main DT options. Note that the new
422
<.*?>	 * options are mapped onto the old parameters, so this is an external interface
423
<.*?>	 * change only.
424
<.*?>	 *  @param {object} init Object to map
425
<.*?>	 */
426
<.*?>	function _fnCompatOpts ( init )
427
<.*?>	{
428
<.*?>		_fnCompatMap( init, 'ordering',      'bSort' );
429
<.*?>		_fnCompatMap( init, 'orderMulti',    'bSortMulti' );
430
<.*?>		_fnCompatMap( init, 'orderClasses',  'bSortClasses' );
431
<.*?>		_fnCompatMap( init, 'orderCellsTop', 'bSortCellsTop' );
432
<.*?>		_fnCompatMap( init, 'order',         'aaSorting' );
433
<.*?>		_fnCompatMap( init, 'orderFixed',    'aaSortingFixed' );
434
<.*?>		_fnCompatMap( init, 'paging',        'bPaginate' );
435
<.*?>		_fnCompatMap( init, 'pagingType',    'sPaginationType' );
436
<.*?>		_fnCompatMap( init, 'pageLength',    'iDisplayLength' );
437
<.*?>		_fnCompatMap( init, 'searching',     'bFilter' );
438
<.*?>	}
439
 
440
 
441
<.*?>	/**
442
<.*?>	 * Provide backwards compatibility for column options. Note that the new options
443
<.*?>	 * are mapped onto the old parameters, so this is an external interface change
444
<.*?>	 * only.
445
<.*?>	 *  @param {object} init Object to map
446
<.*?>	 */
447
<.*?>	function _fnCompatCols ( init )
448
<.*?>	{
449
<.*?>		_fnCompatMap( init, 'orderable',     'bSortable' );
450
<.*?>		_fnCompatMap( init, 'orderData',     'aDataSort' );
451
<.*?>		_fnCompatMap( init, 'orderSequence', 'asSorting' );
452
<.*?>		_fnCompatMap( init, 'orderDataType', 'sortDataType' );
453
<.*?>	}
454
 
455
 
456
<.*?>	/**
457
<.*?>	 * Browser feature detection for capabilities, quirks
458
<.*?>	 *  @param {object} settings dataTables settings object
459
<.*?>	 *  @memberof DataTable#oApi
460
<.*?>	 */
461
<.*?>	function _fnBrowserDetect( settings )
462
<.*?>	{
463
<.*?>		var browser = settings.oBrowser;
464
 
465
<.*?>		// Scrolling feature / quirks detection
466
<.*?>		var n = $('<div/>')
467
<.*?>			.css( {
468
<.*?>				position: 'absolute',
469
<.*?>				top: 0,
470
<.*?>				left: 0,
471
<.*?>				height: 1,
472
<.*?>				width: 1,
473
<.*?>				overflow: 'hidden'
474
<.*?>			} )
475
<.*?>			.append(
476
<.*?>				$('<div/>')
477
<.*?>					.css( {
478
<.*?>						position: 'absolute',
479
<.*?>						top: 1,
480
<.*?>						left: 1,
481
<.*?>						width: 100,
482
<.*?>						overflow: 'scroll'
483
<.*?>					} )
484
<.*?>					.append(
485
<.*?>						$('<div class="test"/>')
486
<.*?>							.css( {
487
<.*?>								width: '100%',
488
<.*?>								height: 10
489
<.*?>							} )
490
<.*?>					)
491
<.*?>			)
492
<.*?>			.appendTo( 'body' );
493
 
494
<.*?>		var test = n.find('.test');
495
 
496
<.*?>		// IE6/7 will oversize a width 100% element inside a scrolling element, to
497
<.*?>		// include the width of the scrollbar, while other browsers ensure the inner
498
<.*?>		// element is contained without forcing scrolling
499
<.*?>		browser.bScrollOversize = test[0].offsetWidth === 100;
500
 
501
<.*?>		// In rtl text layout, some browsers (most, but not all) will place the
502
<.*?>		// scrollbar on the left, rather than the right.
503
<.*?>		browser.bScrollbarLeft = test.offset().left !== 1;
504
 
505
<.*?>		n.remove();
506
<.*?>	}
507
 
508
 
509
<.*?>	/**
510
<.*?>	 * Array.prototype reduce[Right] method, used for browsers which don't support
511
<.*?>	 * JS 1.6. Done this way to reduce code size, since we iterate either way
512
<.*?>	 *  @param {object} settings dataTables settings object
513
<.*?>	 *  @memberof DataTable#oApi
514
<.*?>	 */
515
<.*?>	function _fnReduce ( that, fn, init, start, end, inc )
516
<.*?>	{
517
<.*?>		var
518
<.*?>			i = start,
519
<.*?>			value,
520
<.*?>			isSet = false;
521
 
522
<.*?>		if ( init !== undefined ) {
523
<.*?>			value = init;
524
<.*?>			isSet = true;
525
<.*?>		}
526
 
527
<.*?>		while ( i !== end ) {
528
<.*?>			if ( ! that.hasOwnProperty(i) ) {
529
<.*?>				continue;
530
<.*?>			}
531
 
532
<.*?>			value = isSet ?
533
<.*?>				fn( value, that[i], i, that ) :
534
<.*?>				that[i];
535
 
536
<.*?>			isSet = true;
537
<.*?>			i += inc;
538
<.*?>		}
539
 
540
<.*?>		return value;
541
<.*?>	}
542
 
543
<.*?>	/**
544
<.*?>	 * Add a column to the list used for the table with default values
545
<.*?>	 *  @param {object} oSettings dataTables settings object
546
<.*?>	 *  @param {node} nTh The th element for this column
547
<.*?>	 *  @memberof DataTable#oApi
548
<.*?>	 */
549
<.*?>	function _fnAddColumn( oSettings, nTh )
550
<.*?>	{
551
<.*?>		// Add column to aoColumns array
552
<.*?>		var oDefaults = DataTable.defaults.column;
553
<.*?>		var iCol = oSettings.aoColumns.length;
554
<.*?>		var oCol = $.extend( {}, DataTable.models.oColumn, oDefaults, {
555
<.*?>			"nTh": nTh ? nTh : document.createElement('th'),
556
<.*?>			"sTitle":    oDefaults.sTitle    ? oDefaults.sTitle    : nTh ? nTh.innerHTML : '',
557
<.*?>			"aDataSort": oDefaults.aDataSort ? oDefaults.aDataSort : [iCol],
558
<.*?>			"mData": oDefaults.mData ? oDefaults.mData : iCol,
559
<.*?>			idx: iCol
560
<.*?>		} );
561
<.*?>		oSettings.aoColumns.push( oCol );
562
 
563
<.*?>		// Add search object for column specific search. Note that the `searchCols[ iCol ]`
564
<.*?>		// passed into extend can be undefined. This allows the user to give a default
565
<.*?>		// with only some of the parameters defined, and also not give a default
566
<.*?>		var searchCols = oSettings.aoPreSearchCols;
567
<.*?>		searchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch, searchCols[ iCol ] );
568
 
569
<.*?>		// Use the default column options function to initialise classes etc
570
<.*?>		_fnColumnOptions( oSettings, iCol, null );
571
<.*?>	}
572
 
573
 
574
<.*?>	/**
575
<.*?>	 * Apply options for a column
576
<.*?>	 *  @param {object} oSettings dataTables settings object
577
<.*?>	 *  @param {int} iCol column index to consider
578
<.*?>	 *  @param {object} oOptions object with sType, bVisible and bSearchable etc
579
<.*?>	 *  @memberof DataTable#oApi
580
<.*?>	 */
581
<.*?>	function _fnColumnOptions( oSettings, iCol, oOptions )
582
<.*?>	{
583
<.*?>		var oCol = oSettings.aoColumns[ iCol ];
584
<.*?>		var oClasses = oSettings.oClasses;
585
<.*?>		var th = $(oCol.nTh);
586
 
587
<.*?>		// Try to get width information from the DOM. We can't get it from CSS
588
<.*?>		// as we'd need to parse the CSS stylesheet. `width` option can override
589
<.*?>		if ( ! oCol.sWidthOrig ) {
590
<.*?>			// Width attribute
591
<.*?>			oCol.sWidthOrig = th.attr('width') || null;
592
 
593
<.*?>			// Style attribute
594
<.*?>			var t = (th.attr('style') || '').match(/width:\s*(\d+[pxem%])/);
595
<.*?>			if ( t ) {
596
<.*?>				oCol.sWidthOrig = t[1];
597
<.*?>			}
598
<.*?>		}
599
 
600
<.*?>		/* User specified column options */
601
<.*?>		if ( oOptions !== undefined && oOptions !== null )
602
<.*?>		{
603
<.*?>			// Backwards compatibility
604
<.*?>			_fnCompatCols( oOptions );
605
 
606
<.*?>			// Map camel case parameters to their Hungarian counterparts
607
<.*?>			_fnCamelToHungarian( DataTable.defaults.column, oOptions );
608
 
609
<.*?>			/* Backwards compatibility for mDataProp */
610
<.*?>			if ( oOptions.mDataProp !== undefined && !oOptions.mData )
611
<.*?>			{
612
<.*?>				oOptions.mData = oOptions.mDataProp;
613
<.*?>			}
614
 
615
<.*?>			if ( oOptions.sType )
616
<.*?>			{
617
<.*?>				oCol._sManualType = oOptions.sType;
618
<.*?>			}
619
 
620
<.*?>			// `class` is a reserved word in Javascript, so we need to provide
621
<.*?>			// the ability to use a valid name for the camel case input
622
<.*?>			if ( oOptions.className && ! oOptions.sClass )
623
<.*?>			{
624
<.*?>				oOptions.sClass = oOptions.className;
625
<.*?>			}
626
 
627
<.*?>			$.extend( oCol, oOptions );
628
<.*?>			_fnMap( oCol, oOptions, "sWidth", "sWidthOrig" );
629
 
630
<.*?>			/* iDataSort to be applied (backwards compatibility), but aDataSort will take
631
<.*?>			 * priority if defined
632
<.*?>			 */
633
<.*?>			if ( typeof oOptions.iDataSort === 'number' )
634
<.*?>			{
635
<.*?>				oCol.aDataSort = [ oOptions.iDataSort ];
636
<.*?>			}
637
<.*?>			_fnMap( oCol, oOptions, "aDataSort" );
638
<.*?>		}
639
 
640
<.*?>		/* Cache the data get and set functions for speed */
641
<.*?>		var mDataSrc = oCol.mData;
642
<.*?>		var mData = _fnGetObjectDataFn( mDataSrc );
643
<.*?>		var mRender = oCol.mRender ? _fnGetObjectDataFn( oCol.mRender ) : null;
644
 
645
<.*?>		var attrTest = function( src ) {
646
<.*?>			return typeof src === 'string' && src.indexOf('@') !== -1;
647
<.*?>		};
648
<.*?>		oCol._bAttrSrc = $.isPlainObject( mDataSrc ) && (
649
<.*?>			attrTest(mDataSrc.sort) || attrTest(mDataSrc.type) || attrTest(mDataSrc.filter)
650
<.*?>		);
651
 
652
<.*?>		oCol.fnGetData = function (oData, sSpecific) {
653
<.*?>			var innerData = mData( oData, sSpecific );
654
 
655
<.*?>			if ( oCol.mRender && (sSpecific && sSpecific !== '') )
656
<.*?>			{
657
<.*?>				return mRender( innerData, sSpecific, oData );
658
<.*?>			}
659
<.*?>			return innerData;
660
<.*?>		};
661
<.*?>		oCol.fnSetData = _fnSetObjectDataFn( mDataSrc );
662
 
663
<.*?>		/* Feature sorting overrides column specific when off */
664
<.*?>		if ( !oSettings.oFeatures.bSort )
665
<.*?>		{
666
<.*?>			oCol.bSortable = false;
667
<.*?>			th.addClass( oClasses.sSortableNone ); // Have to add class here as order event isn't called
668
<.*?>		}
669
 
670
<.*?>		/* Check that the class assignment is correct for sorting */
671
<.*?>		var bAsc = $.inArray('asc', oCol.asSorting) !== -1;
672
<.*?>		var bDesc = $.inArray('desc', oCol.asSorting) !== -1;
673
<.*?>		if ( !oCol.bSortable || (!bAsc && !bDesc) )
674
<.*?>		{
675
<.*?>			oCol.sSortingClass = oClasses.sSortableNone;
676
<.*?>			oCol.sSortingClassJUI = "";
677
<.*?>		}
678
<.*?>		else if ( bAsc && !bDesc )
679
<.*?>		{
680
<.*?>			oCol.sSortingClass = oClasses.sSortableAsc;
681
<.*?>			oCol.sSortingClassJUI = oClasses.sSortJUIAscAllowed;
682
<.*?>		}
683
<.*?>		else if ( !bAsc && bDesc )
684
<.*?>		{
685
<.*?>			oCol.sSortingClass = oClasses.sSortableDesc;
686
<.*?>			oCol.sSortingClassJUI = oClasses.sSortJUIDescAllowed;
687
<.*?>		}
688
<.*?>		else
689
<.*?>		{
690
<.*?>			oCol.sSortingClass = oClasses.sSortable;
691
<.*?>			oCol.sSortingClassJUI = oClasses.sSortJUI;
692
<.*?>		}
693
<.*?>	}
694
 
695
 
696
<.*?>	/**
697
<.*?>	 * Adjust the table column widths for new data. Note: you would probably want to
698
<.*?>	 * do a redraw after calling this function!
699
<.*?>	 *  @param {object} settings dataTables settings object
700
<.*?>	 *  @memberof DataTable#oApi
701
<.*?>	 */
702
<.*?>	function _fnAdjustColumnSizing ( settings )
703
<.*?>	{
704
<.*?>		/* Not interested in doing column width calculation if auto-width is disabled */
705
<.*?>		if ( settings.oFeatures.bAutoWidth !== false )
706
<.*?>		{
707
<.*?>			var columns = settings.aoColumns;
708
 
709
<.*?>			_fnCalculateColumnWidths( settings );
710
<.*?>			for ( var i=0 , iLen=columns.length ; i<iLen ; i++ )
711
<.*?>			{
712
<.*?>				columns[i].nTh.style.width = columns[i].sWidth;
713
<.*?>			}
714
<.*?>		}
715
 
716
<.*?>		var scroll = settings.oScroll;
717
<.*?>		if ( scroll.sY !== '' || scroll.sX !== '')
718
<.*?>		{
719
<.*?>			_fnScrollDraw( settings );
720
<.*?>		}
721
 
722
<.*?>		_fnCallbackFire( settings, null, 'column-sizing', [settings] );
723
<.*?>	}
724
 
725
 
726
<.*?>	/**
727
<.*?>	 * Covert the index of a visible column to the index in the data array (take account
728
<.*?>	 * of hidden columns)
729
<.*?>	 *  @param {object} oSettings dataTables settings object
730
<.*?>	 *  @param {int} iMatch Visible column index to lookup
731
<.*?>	 *  @returns {int} i the data index
732
<.*?>	 *  @memberof DataTable#oApi
733
<.*?>	 */
734
<.*?>	function _fnVisibleToColumnIndex( oSettings, iMatch )
735
<.*?>	{
736
<.*?>		var aiVis = _fnGetColumns( oSettings, 'bVisible' );
737
 
738
<.*?>		return typeof aiVis[iMatch] === 'number' ?
739
<.*?>			aiVis[iMatch] :
740
<.*?>			null;
741
<.*?>	}
742
 
743
 
744
<.*?>	/**
745
<.*?>	 * Covert the index of an index in the data array and convert it to the visible
746
<.*?>	 *   column index (take account of hidden columns)
747
<.*?>	 *  @param {int} iMatch Column index to lookup
748
<.*?>	 *  @param {object} oSettings dataTables settings object
749
<.*?>	 *  @returns {int} i the data index
750
<.*?>	 *  @memberof DataTable#oApi
751
<.*?>	 */
752
<.*?>	function _fnColumnIndexToVisible( oSettings, iMatch )
753
<.*?>	{
754
<.*?>		var aiVis = _fnGetColumns( oSettings, 'bVisible' );
755
<.*?>		var iPos = $.inArray( iMatch, aiVis );
756
 
757
<.*?>		return iPos !== -1 ? iPos : null;
758
<.*?>	}
759
 
760
 
761
<.*?>	/**
762
<.*?>	 * Get the number of visible columns
763
<.*?>	 *  @param {object} oSettings dataTables settings object
764
<.*?>	 *  @returns {int} i the number of visible columns
765
<.*?>	 *  @memberof DataTable#oApi
766
<.*?>	 */
767
<.*?>	function _fnVisbleColumns( oSettings )
768
<.*?>	{
769
<.*?>		return _fnGetColumns( oSettings, 'bVisible' ).length;
770
<.*?>	}
771
 
772
 
773
<.*?>	/**
774
<.*?>	 * Get an array of column indexes that match a given property
775
<.*?>	 *  @param {object} oSettings dataTables settings object
776
<.*?>	 *  @param {string} sParam Parameter in aoColumns to look for - typically
777
<.*?>	 *    bVisible or bSearchable
778
<.*?>	 *  @returns {array} Array of indexes with matched properties
779
<.*?>	 *  @memberof DataTable#oApi
780
<.*?>	 */
781
<.*?>	function _fnGetColumns( oSettings, sParam )
782
<.*?>	{
783
<.*?>		var a = [];
784
 
785
<.*?>		$.map( oSettings.aoColumns, function(val, i) {
786
<.*?>			if ( val[sParam] ) {
787
<.*?>				a.push( i );
788
<.*?>			}
789
<.*?>		} );
790
 
791
<.*?>		return a;
792
<.*?>	}
793
 
794
 
795
<.*?>	/**
796
<.*?>	 * Calculate the 'type' of a column
797
<.*?>	 *  @param {object} settings dataTables settings object
798
<.*?>	 *  @memberof DataTable#oApi
799
<.*?>	 */
800
<.*?>	function _fnColumnTypes ( settings )
801
<.*?>	{
802
<.*?>		var columns = settings.aoColumns;
803
<.*?>		var data = settings.aoData;
804
<.*?>		var types = DataTable.ext.type.detect;
805
<.*?>		var i, ien, j, jen, k, ken;
806
<.*?>		var col, cell, detectedType, cache;
807
 
808
<.*?>		// For each column, spin over the 
809
<.*?>		for ( i=0, ien=columns.length ; i<ien ; i++ ) {
810
<.*?>			col = columns[i];
811
<.*?>			cache = [];
812
 
813
<.*?>			if ( ! col.sType && col._sManualType ) {
814
<.*?>				col.sType = col._sManualType;
815
<.*?>			}
816
<.*?>			else if ( ! col.sType ) {
817
<.*?>				for ( j=0, jen=types.length ; j<jen ; j++ ) {
818
<.*?>					for ( k=0, ken=data.length ; k<ken ; k++ ) {
819
<.*?>						// Use a cache array so we only need to get the type data
820
<.*?>						// from the formatter once (when using multiple detectors)
821
<.*?>						if ( cache[k] === undefined ) {
822
<.*?>							cache[k] = _fnGetCellData( settings, k, i, 'type' );
823
<.*?>						}
824
 
825
<.*?>						detectedType = types[j]( cache[k], settings );
826
 
827
<.*?>						// Doesn't match, so break early, since this type can't
828
<.*?>						// apply to this column. Also, HTML is a special case since
829
<.*?>						// it is so similar to `string`. Just a single match is
830
<.*?>						// needed for a column to be html type
831
<.*?>						if ( ! detectedType || detectedType === 'html' ) {
832
<.*?>							break;
833
<.*?>						}
834
<.*?>					}
835
 
836
<.*?>					// Type is valid for all data points in the column - use this
837
<.*?>					// type
838
<.*?>					if ( detectedType ) {
839
<.*?>						col.sType = detectedType;
840
<.*?>						break;
841
<.*?>					}
842
<.*?>				}
843
 
844
<.*?>				// Fall back - if no type was detected, always use string
845
<.*?>				if ( ! col.sType ) {
846
<.*?>					col.sType = 'string';
847
<.*?>				}
848
<.*?>			}
849
<.*?>		}
850
<.*?>	}
851
 
852
 
853
<.*?>	/**
854
<.*?>	 * Take the column definitions and static columns arrays and calculate how
855
<.*?>	 * they relate to column indexes. The callback function will then apply the
856
<.*?>	 * definition found for a column to a suitable configuration object.
857
<.*?>	 *  @param {object} oSettings dataTables settings object
858
<.*?>	 *  @param {array} aoColDefs The aoColumnDefs array that is to be applied
859
<.*?>	 *  @param {array} aoCols The aoColumns array that defines columns individually
860
<.*?>	 *  @param {function} fn Callback function - takes two parameters, the calculated
861
<.*?>	 *    column index and the definition for that column.
862
<.*?>	 *  @memberof DataTable#oApi
863
<.*?>	 */
864
<.*?>	function _fnApplyColumnDefs( oSettings, aoColDefs, aoCols, fn )
865
<.*?>	{
866
<.*?>		var i, iLen, j, jLen, k, kLen, def;
867
<.*?>		var columns = oSettings.aoColumns;
868
 
869
<.*?>		// Column definitions with aTargets
870
<.*?>		if ( aoColDefs )
871
<.*?>		{
872
<.*?>			/* Loop over the definitions array - loop in reverse so first instance has priority */
873
<.*?>			for ( i=aoColDefs.length-1 ; i>=0 ; i-- )
874
<.*?>			{
875
<.*?>				def = aoColDefs[i];
876
 
877
<.*?>				/* Each definition can target multiple columns, as it is an array */
878
<.*?>				var aTargets = def.targets !== undefined ?
879
<.*?>					def.targets :
880
<.*?>					def.aTargets;
881
 
882
<.*?>				if ( ! $.isArray( aTargets ) )
883
<.*?>				{
884
<.*?>					aTargets = [ aTargets ];
885
<.*?>				}
886
 
887
<.*?>				for ( j=0, jLen=aTargets.length ; j<jLen ; j++ )
888
<.*?>				{
889
<.*?>					if ( typeof aTargets[j] === 'number' && aTargets[j] >= 0 )
890
<.*?>					{
891
<.*?>						/* Add columns that we don't yet know about */
892
<.*?>						while( columns.length <= aTargets[j] )
893
<.*?>						{
894
<.*?>							_fnAddColumn( oSettings );
895
<.*?>						}
896
 
897
<.*?>						/* Integer, basic index */
898
<.*?>						fn( aTargets[j], def );
899
<.*?>					}
900
<.*?>					else if ( typeof aTargets[j] === 'number' && aTargets[j] < 0 )
901
<.*?>					{
902
<.*?>						/* Negative integer, right to left column counting */
903
<.*?>						fn( columns.length+aTargets[j], def );
904
<.*?>					}
905
<.*?>					else if ( typeof aTargets[j] === 'string' )
906
<.*?>					{
907
<.*?>						/* Class name matching on TH element */
908
<.*?>						for ( k=0, kLen=columns.length ; k<kLen ; k++ )
909
<.*?>						{
910
<.*?>							if ( aTargets[j] == "_all" ||
911
<.*?>							     $(columns[k].nTh).hasClass( aTargets[j] ) )
912
<.*?>							{
913
<.*?>								fn( k, def );
914
<.*?>							}
915
<.*?>						}
916
<.*?>					}
917
<.*?>				}
918
<.*?>			}
919
<.*?>		}
920
 
921
<.*?>		// Statically defined columns array
922
<.*?>		if ( aoCols )
923
<.*?>		{
924
<.*?>			for ( i=0, iLen=aoCols.length ; i<iLen ; i++ )
925
<.*?>			{
926
<.*?>				fn( i, aoCols[i] );
927
<.*?>			}
928
<.*?>		}
929
<.*?>	}
930
 
931
<.*?>	/**
932
<.*?>	 * Add a data array to the table, creating DOM node etc. This is the parallel to
933
<.*?>	 * _fnGatherData, but for adding rows from a Javascript source, rather than a
934
<.*?>	 * DOM source.
935
<.*?>	 *  @param {object} oSettings dataTables settings object
936
<.*?>	 *  @param {array} aData data array to be added
937
<.*?>	 *  @param {node} [nTr] TR element to add to the table - optional. If not given,
938
<.*?>	 *    DataTables will create a row automatically
939
<.*?>	 *  @param {array} [anTds] Array of TD|TH elements for the row - must be given
940
<.*?>	 *    if nTr is.
941
<.*?>	 *  @returns {int} >=0 if successful (index of new aoData entry), -1 if failed
942
<.*?>	 *  @memberof DataTable#oApi
943
<.*?>	 */
944
<.*?>	function _fnAddData ( oSettings, aDataIn, nTr, anTds )
945
<.*?>	{
946
<.*?>		/* Create the object for storing information about this new row */
947
<.*?>		var iRow = oSettings.aoData.length;
948
<.*?>		var oData = $.extend( true, {}, DataTable.models.oRow, {
949
<.*?>			src: nTr ? 'dom' : 'data'
950
<.*?>		} );
951
 
952
<.*?>		oData._aData = aDataIn;
953
<.*?>		oSettings.aoData.push( oData );
954
 
955
<.*?>		/* Create the cells */
956
<.*?>		var nTd, sThisType;
957
<.*?>		var columns = oSettings.aoColumns;
958
<.*?>		for ( var i=0, iLen=columns.length ; i<iLen ; i++ )
959
<.*?>		{
960
<.*?>			// When working with a row, the data source object must be populated. In
961
<.*?>			// all other cases, the data source object is already populated, so we
962
<.*?>			// don't overwrite it, which might break bindings etc
963
<.*?>			if ( nTr ) {
964
<.*?>				_fnSetCellData( oSettings, iRow, i, _fnGetCellData( oSettings, iRow, i ) );
965
<.*?>			}
966
<.*?>			columns[i].sType = null;
967
<.*?>		}
968
 
969
<.*?>		/* Add to the display array */
970
<.*?>		oSettings.aiDisplayMaster.push( iRow );
971
 
972
<.*?>		/* Create the DOM information */
973
<.*?>		if ( !oSettings.oFeatures.bDeferRender )
974
<.*?>		{
975
<.*?>			_fnCreateTr( oSettings, iRow, nTr, anTds );
976
<.*?>		}
977
 
978
<.*?>		return iRow;
979
<.*?>	}
980
 
981
 
982
<.*?>	/**
983
<.*?>	 * Add one or more TR elements to the table. Generally we'd expect to
984
<.*?>	 * use this for reading data from a DOM sourced table, but it could be
985
<.*?>	 * used for an TR element. Note that if a TR is given, it is used (i.e.
986
<.*?>	 * it is not cloned).
987
<.*?>	 *  @param {object} settings dataTables settings object
988
<.*?>	 *  @param {array|node|jQuery} trs The TR element(s) to add to the table
989
<.*?>	 *  @returns {array} Array of indexes for the added rows
990
<.*?>	 *  @memberof DataTable#oApi
991
<.*?>	 */
992
<.*?>	function _fnAddTr( settings, trs )
993
<.*?>	{
994
<.*?>		var row;
995
 
996
<.*?>		// Allow an individual node to be passed in
997
<.*?>		if ( ! (trs instanceof $) ) {
998
<.*?>			trs = $(trs);
999
<.*?>		}
1000
 
1001
<.*?>		return trs.map( function (i, el) {
1002
<.*?>			row = _fnGetRowElements( settings, el );
1003
<.*?>			return _fnAddData( settings, row.data, el, row.cells );
1004
<.*?>		} );
1005
<.*?>	}
1006
 
1007
 
1008
<.*?>	/**
1009
<.*?>	 * Take a TR element and convert it to an index in aoData
1010
<.*?>	 *  @param {object} oSettings dataTables settings object
1011
<.*?>	 *  @param {node} n the TR element to find
1012
<.*?>	 *  @returns {int} index if the node is found, null if not
1013
<.*?>	 *  @memberof DataTable#oApi
1014
<.*?>	 */
1015
<.*?>	function _fnNodeToDataIndex( oSettings, n )
1016
<.*?>	{
1017
<.*?>		return (n._DT_RowIndex!==undefined) ? n._DT_RowIndex : null;
1018
<.*?>	}
1019
 
1020
 
1021
<.*?>	/**
1022
<.*?>	 * Take a TD element and convert it into a column data index (not the visible index)
1023
<.*?>	 *  @param {object} oSettings dataTables settings object
1024
<.*?>	 *  @param {int} iRow The row number the TD/TH can be found in
1025
<.*?>	 *  @param {node} n The TD/TH element to find
1026
<.*?>	 *  @returns {int} index if the node is found, -1 if not
1027
<.*?>	 *  @memberof DataTable#oApi
1028
<.*?>	 */
1029
<.*?>	function _fnNodeToColumnIndex( oSettings, iRow, n )
1030
<.*?>	{
1031
<.*?>		return $.inArray( n, oSettings.aoData[ iRow ].anCells );
1032
<.*?>	}
1033
 
1034
 
1035
<.*?>	/**
1036
<.*?>	 * Get the data for a given cell from the internal cache, taking into account data mapping
1037
<.*?>	 *  @param {object} oSettings dataTables settings object
1038
<.*?>	 *  @param {int} iRow aoData row id
1039
<.*?>	 *  @param {int} iCol Column index
1040
<.*?>	 *  @param {string} sSpecific data get type ('display', 'type' 'filter' 'sort')
1041
<.*?>	 *  @returns {*} Cell data
1042
<.*?>	 *  @memberof DataTable#oApi
1043
<.*?>	 */
1044
<.*?>	function _fnGetCellData( oSettings, iRow, iCol, sSpecific )
1045
<.*?>	{
1046
<.*?>		var oCol = oSettings.aoColumns[iCol];
1047
<.*?>		var oData = oSettings.aoData[iRow]._aData;
1048
<.*?>		var sData = oCol.fnGetData( oData, sSpecific );
1049
 
1050
<.*?>		if ( sData === undefined )
1051
<.*?>		{
1052
<.*?>			if ( oSettings.iDrawError != oSettings.iDraw && oCol.sDefaultContent === null )
1053
<.*?>			{
1054
<.*?>				_fnLog( oSettings, 0, "Requested unknown parameter "+
1055
<.*?>					(typeof oCol.mData=='function' ? '{function}' : "'"+oCol.mData+"'")+
1056
<.*?>					" for row "+iRow, 4 );
1057
<.*?>				oSettings.iDrawError = oSettings.iDraw;
1058
<.*?>			}
1059
<.*?>			return oCol.sDefaultContent;
1060
<.*?>		}
1061
 
1062
<.*?>		/* When the data source is null, we can use default column data */
1063
<.*?>		if ( (sData === oData || sData === null) && oCol.sDefaultContent !== null )
1064
<.*?>		{
1065
<.*?>			sData = oCol.sDefaultContent;
1066
<.*?>		}
1067
<.*?>		else if ( typeof sData === 'function' )
1068
<.*?>		{
1069
<.*?>			// If the data source is a function, then we run it and use the return
1070
<.*?>			return sData();
1071
<.*?>		}
1072
 
1073
<.*?>		if ( sData === null && sSpecific == 'display' )
1074
<.*?>		{
1075
<.*?>			return '';
1076
<.*?>		}
1077
<.*?>		return sData;
1078
<.*?>	}
1079
 
1080
 
1081
<.*?>	/**
1082
<.*?>	 * Set the value for a specific cell, into the internal data cache
1083
<.*?>	 *  @param {object} oSettings dataTables settings object
1084
<.*?>	 *  @param {int} iRow aoData row id
1085
<.*?>	 *  @param {int} iCol Column index
1086
<.*?>	 *  @param {*} val Value to set
1087
<.*?>	 *  @memberof DataTable#oApi
1088
<.*?>	 */
1089
<.*?>	function _fnSetCellData( oSettings, iRow, iCol, val )
1090
<.*?>	{
1091
<.*?>		var oCol = oSettings.aoColumns[iCol];
1092
<.*?>		var oData = oSettings.aoData[iRow]._aData;
1093
 
1094
<.*?>		oCol.fnSetData( oData, val );
1095
<.*?>	}
1096
 
1097
 
1098
<.*?>	// Private variable that is used to match action syntax in the data property object
1099
<.*?>	var __reArray = /\[.*?\]$/;
1100
<.*?>	var __reFn = /\(\)$/;
1101
 
1102
<.*?>	/**
1103
<.*?>	 * Split string on periods, taking into account escaped periods
1104
<.*?>	 * @param  {string} str String to split
1105
<.*?>	 * @return {array} Split string
1106
<.*?>	 */
1107
<.*?>	function _fnSplitObjNotation( str )
1108
<.*?>	{
1109
<.*?>		return $.map( str.match(/(\\.|[^\.])+/g), function ( s ) {
1110
<.*?>			return s.replace('\\.', '.');
1111
<.*?>		} );
1112
<.*?>	}
1113
 
1114
 
1115
<.*?>	/**
1116
<.*?>	 * Return a function that can be used to get data from a source object, taking
1117
<.*?>	 * into account the ability to use nested objects as a source
1118
<.*?>	 *  @param {string|int|function} mSource The data source for the object
1119
<.*?>	 *  @returns {function} Data get function
1120
<.*?>	 *  @memberof DataTable#oApi
1121
<.*?>	 */
1122
<.*?>	function _fnGetObjectDataFn( mSource )
1123
<.*?>	{
1124
<.*?>		if ( $.isPlainObject( mSource ) )
1125
<.*?>		{
1126
<.*?>			/* Build an object of get functions, and wrap them in a single call */
1127
<.*?>			var o = {};
1128
<.*?>			$.each( mSource, function (key, val) {
1129
<.*?>				if ( val ) {
1130
<.*?>					o[key] = _fnGetObjectDataFn( val );
1131
<.*?>				}
1132
<.*?>			} );
1133
 
1134
<.*?>			return function (data, type, extra) {
1135
<.*?>				var t = o[type] || o._;
1136
<.*?>				return t !== undefined ?
1137
<.*?>					t(data, type, extra) :
1138
<.*?>					data;
1139
<.*?>			};
1140
<.*?>		}
1141
<.*?>		else if ( mSource === null )
1142
<.*?>		{
1143
<.*?>			/* Give an empty string for rendering / sorting etc */
1144
<.*?>			return function (data, type) {
1145
<.*?>				return data;
1146
<.*?>			};
1147
<.*?>		}
1148
<.*?>		else if ( typeof mSource === 'function' )
1149
<.*?>		{
1150
<.*?>			return function (data, type, extra) {
1151
<.*?>				return mSource( data, type, extra );
1152
<.*?>			};
1153
<.*?>		}
1154
<.*?>		else if ( typeof mSource === 'string' && (mSource.indexOf('.') !== -1 ||
1155
<.*?>			      mSource.indexOf('[') !== -1 || mSource.indexOf('(') !== -1) )
1156
<.*?>		{
1157
<.*?>			/* If there is a . in the source string then the data source is in a
1158
<.*?>			 * nested object so we loop over the data for each level to get the next
1159
<.*?>			 * level down. On each loop we test for undefined, and if found immediately
1160
<.*?>			 * return. This allows entire objects to be missing and sDefaultContent to
1161
<.*?>			 * be used if defined, rather than throwing an error
1162
<.*?>			 */
1163
<.*?>			var fetchData = function (data, type, src) {
1164
<.*?>				var arrayNotation, funcNotation, out, innerSrc;
1165
 
1166
<.*?>				if ( src !== "" )
1167
<.*?>				{
1168
<.*?>					var a = _fnSplitObjNotation( src );
1169
 
1170
<.*?>					for ( var i=0, iLen=a.length ; i<iLen ; i++ )
1171
<.*?>					{
1172
<.*?>						// Check if we are dealing with special notation
1173
<.*?>						arrayNotation = a[i].match(__reArray);
1174
<.*?>						funcNotation = a[i].match(__reFn);
1175
 
1176
<.*?>						if ( arrayNotation )
1177
<.*?>						{
1178
<.*?>							// Array notation
1179
<.*?>							a[i] = a[i].replace(__reArray, '');
1180
 
1181
<.*?>							// Condition allows simply [] to be passed in
1182
<.*?>							if ( a[i] !== "" ) {
1183
<.*?>								data = data[ a[i] ];
1184
<.*?>							}
1185
<.*?>							out = [];
1186
 
1187
<.*?>							// Get the remainder of the nested object to get
1188
<.*?>							a.splice( 0, i+1 );
1189
<.*?>							innerSrc = a.join('.');
1190
 
1191
<.*?>							// Traverse each entry in the array getting the properties requested
1192
<.*?>							for ( var j=0, jLen=data.length ; j<jLen ; j++ ) {
1193
<.*?>								out.push( fetchData( data[j], type, innerSrc ) );
1194
<.*?>							}
1195
 
1196
<.*?>							// If a string is given in between the array notation indicators, that
1197
<.*?>							// is used to join the strings together, otherwise an array is returned
1198
<.*?>							var join = arrayNotation[0].substring(1, arrayNotation[0].length-1);
1199
<.*?>							data = (join==="") ? out : out.join(join);
1200
 
1201
<.*?>							// The inner call to fetchData has already traversed through the remainder
1202
<.*?>							// of the source requested, so we exit from the loop
1203
<.*?>							break;
1204
<.*?>						}
1205
<.*?>						else if ( funcNotation )
1206
<.*?>						{
1207
<.*?>							// Function call
1208
<.*?>							a[i] = a[i].replace(__reFn, '');
1209
<.*?>							data = data[ a[i] ]();
1210
<.*?>							continue;
1211
<.*?>						}
1212
 
1213
<.*?>						if ( data === null || data[ a[i] ] === undefined )
1214
<.*?>						{
1215
<.*?>							return undefined;
1216
<.*?>						}
1217
<.*?>						data = data[ a[i] ];
1218
<.*?>					}
1219
<.*?>				}
1220
 
1221
<.*?>				return data;
1222
<.*?>			};
1223
 
1224
<.*?>			return function (data, type) {
1225
<.*?>				return fetchData( data, type, mSource );
1226
<.*?>			};
1227
<.*?>		}
1228
<.*?>		else
1229
<.*?>		{
1230
<.*?>			/* Array or flat object mapping */
1231
<.*?>			return function (data, type) {
1232
<.*?>				return data[mSource];
1233
<.*?>			};
1234
<.*?>		}
1235
<.*?>	}
1236
 
1237
 
1238
<.*?>	/**
1239
<.*?>	 * Return a function that can be used to set data from a source object, taking
1240
<.*?>	 * into account the ability to use nested objects as a source
1241
<.*?>	 *  @param {string|int|function} mSource The data source for the object
1242
<.*?>	 *  @returns {function} Data set function
1243
<.*?>	 *  @memberof DataTable#oApi
1244
<.*?>	 */
1245
<.*?>	function _fnSetObjectDataFn( mSource )
1246
<.*?>	{
1247
<.*?>		if ( $.isPlainObject( mSource ) )
1248
<.*?>		{
1249
<.*?>			/* Unlike get, only the underscore (global) option is used for for
1250
<.*?>			 * setting data since we don't know the type here. This is why an object
1251
<.*?>			 * option is not documented for `mData` (which is read/write), but it is
1252
<.*?>			 * for `mRender` which is read only.
1253
<.*?>			 */
1254
<.*?>			return _fnSetObjectDataFn( mSource._ );
1255
<.*?>		}
1256
<.*?>		else if ( mSource === null )
1257
<.*?>		{
1258
<.*?>			/* Nothing to do when the data source is null */
1259
<.*?>			return function (data, val) {};
1260
<.*?>		}
1261
<.*?>		else if ( typeof mSource === 'function' )
1262
<.*?>		{
1263
<.*?>			return function (data, val) {
1264
<.*?>				mSource( data, 'set', val );
1265
<.*?>			};
1266
<.*?>		}
1267
<.*?>		else if ( typeof mSource === 'string' && (mSource.indexOf('.') !== -1 ||
1268
<.*?>			      mSource.indexOf('[') !== -1 || mSource.indexOf('(') !== -1) )
1269
<.*?>		{
1270
<.*?>			/* Like the get, we need to get data from a nested object */
1271
<.*?>			var setData = function (data, val, src) {
1272
<.*?>				var a = _fnSplitObjNotation( src ), b;
1273
<.*?>				var aLast = a[a.length-1];
1274
<.*?>				var arrayNotation, funcNotation, o, innerSrc;
1275
 
1276
<.*?>				for ( var i=0, iLen=a.length-1 ; i<iLen ; i++ )
1277
<.*?>				{
1278
<.*?>					// Check if we are dealing with an array notation request
1279
<.*?>					arrayNotation = a[i].match(__reArray);
1280
<.*?>					funcNotation = a[i].match(__reFn);
1281
 
1282
<.*?>					if ( arrayNotation )
1283
<.*?>					{
1284
<.*?>						a[i] = a[i].replace(__reArray, '');
1285
<.*?>						data[ a[i] ] = [];
1286
 
1287
<.*?>						// Get the remainder of the nested object to set so we can recurse
1288
<.*?>						b = a.slice();
1289
<.*?>						b.splice( 0, i+1 );
1290
<.*?>						innerSrc = b.join('.');
1291
 
1292
<.*?>						// Traverse each entry in the array setting the properties requested
1293
<.*?>						for ( var j=0, jLen=val.length ; j<jLen ; j++ )
1294
<.*?>						{
1295
<.*?>							o = {};
1296
<.*?>							setData( o, val[j], innerSrc );
1297
<.*?>							data[ a[i] ].push( o );
1298
<.*?>						}
1299
 
1300
<.*?>						// The inner call to setData has already traversed through the remainder
1301
<.*?>						// of the source and has set the data, thus we can exit here
1302
<.*?>						return;
1303
<.*?>					}
1304
<.*?>					else if ( funcNotation )
1305
<.*?>					{
1306
<.*?>						// Function call
1307
<.*?>						a[i] = a[i].replace(__reFn, '');
1308
<.*?>						data = data[ a[i] ]( val );
1309
<.*?>					}
1310
 
1311
<.*?>					// If the nested object doesn't currently exist - since we are
1312
<.*?>					// trying to set the value - create it
1313
<.*?>					if ( data[ a[i] ] === null || data[ a[i] ] === undefined )
1314
<.*?>					{
1315
<.*?>						data[ a[i] ] = {};
1316
<.*?>					}
1317
<.*?>					data = data[ a[i] ];
1318
<.*?>				}
1319
 
1320
<.*?>				// Last item in the input - i.e, the actual set
1321
<.*?>				if ( aLast.match(__reFn ) )
1322
<.*?>				{
1323
<.*?>					// Function call
1324
<.*?>					data = data[ aLast.replace(__reFn, '') ]( val );
1325
<.*?>				}
1326
<.*?>				else
1327
<.*?>				{
1328
<.*?>					// If array notation is used, we just want to strip it and use the property name
1329
<.*?>					// and assign the value. If it isn't used, then we get the result we want anyway
1330
<.*?>					data[ aLast.replace(__reArray, '') ] = val;
1331
<.*?>				}
1332
<.*?>			};
1333
 
1334
<.*?>			return function (data, val) {
1335
<.*?>				return setData( data, val, mSource );
1336
<.*?>			};
1337
<.*?>		}
1338
<.*?>		else
1339
<.*?>		{
1340
<.*?>			/* Array or flat object mapping */
1341
<.*?>			return function (data, val) {
1342
<.*?>				data[mSource] = val;
1343
<.*?>			};
1344
<.*?>		}
1345
<.*?>	}
1346
 
1347
 
1348
<.*?>	/**
1349
<.*?>	 * Return an array with the full table data
1350
<.*?>	 *  @param {object} oSettings dataTables settings object
1351
<.*?>	 *  @returns array {array} aData Master data array
1352
<.*?>	 *  @memberof DataTable#oApi
1353
<.*?>	 */
1354
<.*?>	function _fnGetDataMaster ( settings )
1355
<.*?>	{
1356
<.*?>		return _pluck( settings.aoData, '_aData' );
1357
<.*?>	}
1358
 
1359
 
1360
<.*?>	/**
1361
<.*?>	 * Nuke the table
1362
<.*?>	 *  @param {object} oSettings dataTables settings object
1363
<.*?>	 *  @memberof DataTable#oApi
1364
<.*?>	 */
1365
<.*?>	function _fnClearTable( settings )
1366
<.*?>	{
1367
<.*?>		settings.aoData.length = 0;
1368
<.*?>		settings.aiDisplayMaster.length = 0;
1369
<.*?>		settings.aiDisplay.length = 0;
1370
<.*?>	}
1371
 
1372
 
1373
<.*?>	 /**
1374
<.*?>	 * Take an array of integers (index array) and remove a target integer (value - not
1375
<.*?>	 * the key!)
1376
<.*?>	 *  @param {array} a Index array to target
1377
<.*?>	 *  @param {int} iTarget value to find
1378
<.*?>	 *  @memberof DataTable#oApi
1379
<.*?>	 */
1380
<.*?>	function _fnDeleteIndex( a, iTarget, splice )
1381
<.*?>	{
1382
<.*?>		var iTargetIndex = -1;
1383
 
1384
<.*?>		for ( var i=0, iLen=a.length ; i<iLen ; i++ )
1385
<.*?>		{
1386
<.*?>			if ( a[i] == iTarget )
1387
<.*?>			{
1388
<.*?>				iTargetIndex = i;
1389
<.*?>			}
1390
<.*?>			else if ( a[i] > iTarget )
1391
<.*?>			{
1392
<.*?>				a[i]--;
1393
<.*?>			}
1394
<.*?>		}
1395
 
1396
<.*?>		if ( iTargetIndex != -1 && splice === undefined )
1397
<.*?>		{
1398
<.*?>			a.splice( iTargetIndex, 1 );
1399
<.*?>		}
1400
<.*?>	}
1401
 
1402
 
1403
<.*?>	/**
1404
<.*?>	 * Mark cached data as invalid such that a re-read of the data will occur when
1405
<.*?>	 * the cached data is next requested. Also update from the data source object.
1406
<.*?>	 *
1407
<.*?>	 * @param {object} settings DataTables settings object
1408
<.*?>	 * @param  {int}    rowIdx   Row index to invalidate
1409
<.*?>	 * @memberof DataTable#oApi
1410
<.*?>	 *
1411
<.*?>	 * @todo For the modularisation of v1.11 this will need to become a callback, so
1412
<.*?>	 *   the sort and filter methods can subscribe to it. That will required
1413
<.*?>	 *   initialisation options for sorting, which is why it is not already baked in
1414
<.*?>	 */
1415
<.*?>	function _fnInvalidateRow( settings, rowIdx, src, column )
1416
<.*?>	{
1417
<.*?>		var row = settings.aoData[ rowIdx ];
1418
<.*?>		var i, ien;
1419
 
1420
<.*?>		// Are we reading last data from DOM or the data object?
1421
<.*?>		if ( src === 'dom' || ((! src || src === 'auto') && row.src === 'dom') ) {
1422
<.*?>			// Read the data from the DOM
1423
<.*?>			row._aData = _fnGetRowElements( settings, row ).data;
1424
<.*?>		}
1425
<.*?>		else {
1426
<.*?>			// Reading from data object, update the DOM
1427
<.*?>			var cells = row.anCells;
1428
 
1429
<.*?>			if ( cells ) {
1430
<.*?>				for ( i=0, ien=cells.length ; i<ien ; i++ ) {
1431
<.*?>					cells[i].innerHTML = _fnGetCellData( settings, rowIdx, i, 'display' );
1432
<.*?>				}
1433
<.*?>			}
1434
<.*?>		}
1435
 
1436
<.*?>		row._aSortData = null;
1437
<.*?>		row._aFilterData = null;
1438
 
1439
<.*?>		// Invalidate the type for a specific column (if given) or all columns since
1440
<.*?>		// the data might have changed
1441
<.*?>		var cols = settings.aoColumns;
1442
<.*?>		if ( column !== undefined ) {
1443
<.*?>			cols[ column ].sType = null;
1444
<.*?>		}
1445
<.*?>		else {
1446
<.*?>			for ( i=0, ien=cols.length ; i<ien ; i++ ) {
1447
<.*?>				cols[i].sType = null;
1448
<.*?>			}
1449
<.*?>		}
1450
 
1451
<.*?>		// Update DataTables special `DT_*` attributes for the row
1452
<.*?>		_fnRowAttributes( row );
1453
<.*?>	}
1454
 
1455
 
1456
<.*?>	/**
1457
<.*?>	 * Build a data source object from an HTML row, reading the contents of the
1458
<.*?>	 * cells that are in the row.
1459
<.*?>	 *
1460
<.*?>	 * @param {object} settings DataTables settings object
1461
<.*?>	 * @param {node|object} TR element from which to read data or existing row
1462
<.*?>	 *   object from which to re-read the data from the cells
1463
<.*?>	 * @returns {object} Object with two parameters: `data` the data read, in
1464
<.*?>	 *   document order, and `cells` and array of nodes (they can be useful to the
1465
<.*?>	 *   caller, so rather than needing a second traversal to get them, just return
1466
<.*?>	 *   them from here).
1467
<.*?>	 * @memberof DataTable#oApi
1468
<.*?>	 */
1469
<.*?>	function _fnGetRowElements( settings, row )
1470
<.*?>	{
1471
<.*?>		var
1472
<.*?>			d = [],
1473
<.*?>			tds = [],
1474
<.*?>			td = row.firstChild,
1475
<.*?>			name, col, o, i=0, contents,
1476
<.*?>			columns = settings.aoColumns;
1477
 
1478
<.*?>		var attr = function ( str, data, td  ) {
1479
<.*?>			if ( typeof str === 'string' ) {
1480
<.*?>				var idx = str.indexOf('@');
1481
 
1482
<.*?>				if ( idx !== -1 ) {
1483
<.*?>					var src = str.substring( idx+1 );
1484
<.*?>					o[ '@'+src ] = td.getAttribute( src );
1485
<.*?>				}
1486
<.*?>			}
1487
<.*?>		};
1488
 
1489
<.*?>		var cellProcess = function ( cell ) {
1490
<.*?>			col = columns[i];
1491
<.*?>			contents = $.trim(cell.innerHTML);
1492
 
1493
<.*?>			if ( col && col._bAttrSrc ) {
1494
<.*?>				o = {
1495
<.*?>					display: contents
1496
<.*?>				};
1497
 
1498
<.*?>				attr( col.mData.sort, o, cell );
1499
<.*?>				attr( col.mData.type, o, cell );
1500
<.*?>				attr( col.mData.filter, o, cell );
1501
 
1502
<.*?>				d.push( o );
1503
<.*?>			}
1504
<.*?>			else {
1505
<.*?>				d.push( contents );
1506
<.*?>			}
1507
 
1508
<.*?>			tds.push( cell );
1509
<.*?>			i++;
1510
<.*?>		};
1511
 
1512
<.*?>		if ( td ) {
1513
<.*?>			// `tr` element passed in
1514
<.*?>			while ( td ) {
1515
<.*?>				name = td.nodeName.toUpperCase();
1516
 
1517
<.*?>				if ( name == "TD" || name == "TH" ) {
1518
<.*?>					cellProcess( td );
1519
<.*?>				}
1520
 
1521
<.*?>				td = td.nextSibling;
1522
<.*?>			}
1523
<.*?>		}
1524
<.*?>		else {
1525
<.*?>			// Existing row object passed in
1526
<.*?>			tds = row.anCells;
1527
 
1528
<.*?>			for ( var j=0, jen=tds.length ; j<jen ; j++ ) {
1529
<.*?>				cellProcess( tds[j] );
1530
<.*?>			}
1531
<.*?>		}
1532
 
1533
<.*?>		return {
1534
<.*?>			data: d,
1535
<.*?>			cells: tds
1536
<.*?>		};
1537
<.*?>	}
1538
<.*?>	/**
1539
<.*?>	 * Create a new TR element (and it's TD children) for a row
1540
<.*?>	 *  @param {object} oSettings dataTables settings object
1541
<.*?>	 *  @param {int} iRow Row to consider
1542
<.*?>	 *  @param {node} [nTrIn] TR element to add to the table - optional. If not given,
1543
<.*?>	 *    DataTables will create a row automatically
1544
<.*?>	 *  @param {array} [anTds] Array of TD|TH elements for the row - must be given
1545
<.*?>	 *    if nTr is.
1546
<.*?>	 *  @memberof DataTable#oApi
1547
<.*?>	 */
1548
<.*?>	function _fnCreateTr ( oSettings, iRow, nTrIn, anTds )
1549
<.*?>	{
1550
<.*?>		var
1551
<.*?>			row = oSettings.aoData[iRow],
1552
<.*?>			rowData = row._aData,
1553
<.*?>			cells = [],
1554
<.*?>			nTr, nTd, oCol,
1555
<.*?>			i, iLen;
1556
 
1557
<.*?>		if ( row.nTr === null )
1558
<.*?>		{
1559
<.*?>			nTr = nTrIn || document.createElement('tr');
1560
 
1561
<.*?>			row.nTr = nTr;
1562
<.*?>			row.anCells = cells;
1563
 
1564
<.*?>			/* Use a private property on the node to allow reserve mapping from the node
1565
<.*?>			 * to the aoData array for fast look up
1566
<.*?>			 */
1567
<.*?>			nTr._DT_RowIndex = iRow;
1568
 
1569
<.*?>			/* Special parameters can be given by the data source to be used on the row */
1570
<.*?>			_fnRowAttributes( row );
1571
 
1572
<.*?>			/* Process each column */
1573
<.*?>			for ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
1574
<.*?>			{
1575
<.*?>				oCol = oSettings.aoColumns[i];
1576
 
1577
<.*?>				nTd = nTrIn ? anTds[i] : document.createElement( oCol.sCellType );
1578
<.*?>				cells.push( nTd );
1579
 
1580
<.*?>				// Need to create the HTML if new, or if a rendering function is defined
1581
<.*?>				if ( !nTrIn || oCol.mRender || oCol.mData !== i )
1582
<.*?>				{
1583
<.*?>					nTd.innerHTML = _fnGetCellData( oSettings, iRow, i, 'display' );
1584
<.*?>				}
1585
 
1586
<.*?>				/* Add user defined class */
1587
<.*?>				if ( oCol.sClass )
1588
<.*?>				{
1589
<.*?>					nTd.className += ' '+oCol.sClass;
1590
<.*?>				}
1591
 
1592
<.*?>				// Visibility - add or remove as required
1593
<.*?>				if ( oCol.bVisible && ! nTrIn )
1594
<.*?>				{
1595
<.*?>					nTr.appendChild( nTd );
1596
<.*?>				}
1597
<.*?>				else if ( ! oCol.bVisible && nTrIn )
1598
<.*?>				{
1599
<.*?>					nTd.parentNode.removeChild( nTd );
1600
<.*?>				}
1601
 
1602
<.*?>				if ( oCol.fnCreatedCell )
1603
<.*?>				{
1604
<.*?>					oCol.fnCreatedCell.call( oSettings.oInstance,
1605
<.*?>						nTd, _fnGetCellData( oSettings, iRow, i, 'display' ), rowData, iRow, i
1606
<.*?>					);
1607
<.*?>				}
1608
<.*?>			}
1609
 
1610
<.*?>			_fnCallbackFire( oSettings, 'aoRowCreatedCallback', null, [nTr, rowData, iRow] );
1611
<.*?>		}
1612
 
1613
<.*?>		// Remove once webkit bug 131819 and Chromium bug 365619 have been resolved
1614
<.*?>		// and deployed
1615
<.*?>		row.nTr.setAttribute( 'role', 'row' );
1616
<.*?>	}
1617
 
1618
 
1619
<.*?>	/**
1620
<.*?>	 * Add attributes to a row based on the special `DT_*` parameters in a data
1621
<.*?>	 * source object.
1622
<.*?>	 *  @param {object} DataTables row object for the row to be modified
1623
<.*?>	 *  @memberof DataTable#oApi
1624
<.*?>	 */
1625
<.*?>	function _fnRowAttributes( row )
1626
<.*?>	{
1627
<.*?>		var tr = row.nTr;
1628
<.*?>		var data = row._aData;
1629
 
1630
<.*?>		if ( tr ) {
1631
<.*?>			if ( data.DT_RowId ) {
1632
<.*?>				tr.id = data.DT_RowId;
1633
<.*?>			}
1634
 
1635
<.*?>			if ( data.DT_RowClass ) {
1636
<.*?>				// Remove any classes added by DT_RowClass before
1637
<.*?>				var a = data.DT_RowClass.split(' ');
1638
<.*?>				row.__rowc = row.__rowc ?
1639
<.*?>					_unique( row.__rowc.concat( a ) ) :
1640
<.*?>					a;
1641
 
1642
<.*?>				$(tr)
1643
<.*?>					.removeClass( row.__rowc.join(' ') )
1644
<.*?>					.addClass( data.DT_RowClass );
1645
<.*?>			}
1646
 
1647
<.*?>			if ( data.DT_RowData ) {
1648
<.*?>				$(tr).data( data.DT_RowData );
1649
<.*?>			}
1650
<.*?>		}
1651
<.*?>	}
1652
 
1653
 
1654
<.*?>	/**
1655
<.*?>	 * Create the HTML header for the table
1656
<.*?>	 *  @param {object} oSettings dataTables settings object
1657
<.*?>	 *  @memberof DataTable#oApi
1658
<.*?>	 */
1659
<.*?>	function _fnBuildHead( oSettings )
1660
<.*?>	{
1661
<.*?>		var i, ien, cell, row, column;
1662
<.*?>		var thead = oSettings.nTHead;
1663
<.*?>		var tfoot = oSettings.nTFoot;
1664
<.*?>		var createHeader = $('th, td', thead).length === 0;
1665
<.*?>		var classes = oSettings.oClasses;
1666
<.*?>		var columns = oSettings.aoColumns;
1667
 
1668
<.*?>		if ( createHeader ) {
1669
<.*?>			row = $('<tr/>').appendTo( thead );
1670
<.*?>		}
1671
 
1672
<.*?>		for ( i=0, ien=columns.length ; i<ien ; i++ ) {
1673
<.*?>			column = columns[i];
1674
<.*?>			cell = $( column.nTh ).addClass( column.sClass );
1675
 
1676
<.*?>			if ( createHeader ) {
1677
<.*?>				cell.appendTo( row );
1678
<.*?>			}
1679
 
1680
<.*?>			// 1.11 move into sorting
1681
<.*?>			if ( oSettings.oFeatures.bSort ) {
1682
<.*?>				cell.addClass( column.sSortingClass );
1683
 
1684
<.*?>				if ( column.bSortable !== false ) {
1685
<.*?>					cell
1686
<.*?>						.attr( 'tabindex', oSettings.iTabIndex )
1687
<.*?>						.attr( 'aria-controls', oSettings.sTableId );
1688
 
1689
<.*?>					_fnSortAttachListener( oSettings, column.nTh, i );
1690
<.*?>				}
1691
<.*?>			}
1692
 
1693
<.*?>			if ( column.sTitle != cell.html() ) {
1694
<.*?>				cell.html( column.sTitle );
1695
<.*?>			}
1696
 
1697
<.*?>			_fnRenderer( oSettings, 'header' )(
1698
<.*?>				oSettings, cell, column, classes
1699
<.*?>			);
1700
<.*?>		}
1701
 
1702
<.*?>		if ( createHeader ) {
1703
<.*?>			_fnDetectHeader( oSettings.aoHeader, thead );
1704
<.*?>		}
1705
 
1706
<.*?>		/* ARIA role for the rows */
1707
<.*?>	 	$(thead).find('>tr').attr('role', 'row');
1708
 
1709
<.*?>		/* Deal with the footer - add classes if required */
1710
<.*?>		$(thead).find('>tr>th, >tr>td').addClass( classes.sHeaderTH );
1711
<.*?>		$(tfoot).find('>tr>th, >tr>td').addClass( classes.sFooterTH );
1712
 
1713
<.*?>		// Cache the footer cells. Note that we only take the cells from the first
1714
<.*?>		// row in the footer. If there is more than one row the user wants to
1715
<.*?>		// interact with, they need to use the table().foot() method. Note also this
1716
<.*?>		// allows cells to be used for multiple columns using colspan
1717
<.*?>		if ( tfoot !== null ) {
1718
<.*?>			var cells = oSettings.aoFooter[0];
1719
 
1720
<.*?>			for ( i=0, ien=cells.length ; i<ien ; i++ ) {
1721
<.*?>				column = columns[i];
1722
<.*?>				column.nTf = cells[i].cell;
1723
 
1724
<.*?>				if ( column.sClass ) {
1725
<.*?>					$(column.nTf).addClass( column.sClass );
1726
<.*?>				}
1727
<.*?>			}
1728
<.*?>		}
1729
<.*?>	}
1730
 
1731
 
1732
<.*?>	/**
1733
<.*?>	 * Draw the header (or footer) element based on the column visibility states. The
1734
<.*?>	 * methodology here is to use the layout array from _fnDetectHeader, modified for
1735
<.*?>	 * the instantaneous column visibility, to construct the new layout. The grid is
1736
<.*?>	 * traversed over cell at a time in a rows x columns grid fashion, although each
1737
<.*?>	 * cell insert can cover multiple elements in the grid - which is tracks using the
1738
<.*?>	 * aApplied array. Cell inserts in the grid will only occur where there isn't
1739
<.*?>	 * already a cell in that position.
1740
<.*?>	 *  @param {object} oSettings dataTables settings object
1741
<.*?>	 *  @param array {objects} aoSource Layout array from _fnDetectHeader
1742
<.*?>	 *  @param {boolean} [bIncludeHidden=false] If true then include the hidden columns in the calc,
1743
<.*?>	 *  @memberof DataTable#oApi
1744
<.*?>	 */
1745
<.*?>	function _fnDrawHead( oSettings, aoSource, bIncludeHidden )
1746
<.*?>	{
1747
<.*?>		var i, iLen, j, jLen, k, kLen, n, nLocalTr;
1748
<.*?>		var aoLocal = [];
1749
<.*?>		var aApplied = [];
1750
<.*?>		var iColumns = oSettings.aoColumns.length;
1751
<.*?>		var iRowspan, iColspan;
1752
 
1753
<.*?>		if ( ! aoSource )
1754
<.*?>		{
1755
<.*?>			return;
1756
<.*?>		}
1757
 
1758
<.*?>		if (  bIncludeHidden === undefined )
1759
<.*?>		{
1760
<.*?>			bIncludeHidden = false;
1761
<.*?>		}
1762
 
1763
<.*?>		/* Make a copy of the master layout array, but without the visible columns in it */
1764
<.*?>		for ( i=0, iLen=aoSource.length ; i<iLen ; i++ )
1765
<.*?>		{
1766
<.*?>			aoLocal[i] = aoSource[i].slice();
1767
<.*?>			aoLocal[i].nTr = aoSource[i].nTr;
1768
 
1769
<.*?>			/* Remove any columns which are currently hidden */
1770
<.*?>			for ( j=iColumns-1 ; j>=0 ; j-- )
1771
<.*?>			{
1772
<.*?>				if ( !oSettings.aoColumns[j].bVisible && !bIncludeHidden )
1773
<.*?>				{
1774
<.*?>					aoLocal[i].splice( j, 1 );
1775
<.*?>				}
1776
<.*?>			}
1777
 
1778
<.*?>			/* Prep the applied array - it needs an element for each row */
1779
<.*?>			aApplied.push( [] );
1780
<.*?>		}
1781
 
1782
<.*?>		for ( i=0, iLen=aoLocal.length ; i<iLen ; i++ )
1783
<.*?>		{
1784
<.*?>			nLocalTr = aoLocal[i].nTr;
1785
 
1786
<.*?>			/* All cells are going to be replaced, so empty out the row */
1787
<.*?>			if ( nLocalTr )
1788
<.*?>			{
1789
<.*?>				while( (n = nLocalTr.firstChild) )
1790
<.*?>				{
1791
<.*?>					nLocalTr.removeChild( n );
1792
<.*?>				}
1793
<.*?>			}
1794
 
1795
<.*?>			for ( j=0, jLen=aoLocal[i].length ; j<jLen ; j++ )
1796
<.*?>			{
1797
<.*?>				iRowspan = 1;
1798
<.*?>				iColspan = 1;
1799
 
1800
<.*?>				/* Check to see if there is already a cell (row/colspan) covering our target
1801
<.*?>				 * insert point. If there is, then there is nothing to do.
1802
<.*?>				 */
1803
<.*?>				if ( aApplied[i][j] === undefined )
1804
<.*?>				{
1805
<.*?>					nLocalTr.appendChild( aoLocal[i][j].cell );
1806
<.*?>					aApplied[i][j] = 1;
1807
 
1808
<.*?>					/* Expand the cell to cover as many rows as needed */
1809
<.*?>					while ( aoLocal[i+iRowspan] !== undefined &&
1810
<.*?>					        aoLocal[i][j].cell == aoLocal[i+iRowspan][j].cell )
1811
<.*?>					{
1812
<.*?>						aApplied[i+iRowspan][j] = 1;
1813
<.*?>						iRowspan++;
1814
<.*?>					}
1815
 
1816
<.*?>					/* Expand the cell to cover as many columns as needed */
1817
<.*?>					while ( aoLocal[i][j+iColspan] !== undefined &&
1818
<.*?>					        aoLocal[i][j].cell == aoLocal[i][j+iColspan].cell )
1819
<.*?>					{
1820
<.*?>						/* Must update the applied array over the rows for the columns */
1821
<.*?>						for ( k=0 ; k<iRowspan ; k++ )
1822
<.*?>						{
1823
<.*?>							aApplied[i+k][j+iColspan] = 1;
1824
<.*?>						}
1825
<.*?>						iColspan++;
1826
<.*?>					}
1827
 
1828
<.*?>					/* Do the actual expansion in the DOM */
1829
<.*?>					$(aoLocal[i][j].cell)
1830
<.*?>						.attr('rowspan', iRowspan)
1831
<.*?>						.attr('colspan', iColspan);
1832
<.*?>				}
1833
<.*?>			}
1834
<.*?>		}
1835
<.*?>	}
1836
 
1837
 
1838
<.*?>	/**
1839
<.*?>	 * Insert the required TR nodes into the table for display
1840
<.*?>	 *  @param {object} oSettings dataTables settings object
1841
<.*?>	 *  @memberof DataTable#oApi
1842
<.*?>	 */
1843
<.*?>	function _fnDraw( oSettings )
1844
<.*?>	{
1845
<.*?>		/* Provide a pre-callback function which can be used to cancel the draw is false is returned */
1846
<.*?>		var aPreDraw = _fnCallbackFire( oSettings, 'aoPreDrawCallback', 'preDraw', [oSettings] );
1847
<.*?>		if ( $.inArray( false, aPreDraw ) !== -1 )
1848
<.*?>		{
1849
<.*?>			_fnProcessingDisplay( oSettings, false );
1850
<.*?>			return;
1851
<.*?>		}
1852
 
1853
<.*?>		var i, iLen, n;
1854
<.*?>		var anRows = [];
1855
<.*?>		var iRowCount = 0;
1856
<.*?>		var asStripeClasses = oSettings.asStripeClasses;
1857
<.*?>		var iStripes = asStripeClasses.length;
1858
<.*?>		var iOpenRows = oSettings.aoOpenRows.length;
1859
<.*?>		var oLang = oSettings.oLanguage;
1860
<.*?>		var iInitDisplayStart = oSettings.iInitDisplayStart;
1861
<.*?>		var bServerSide = _fnDataSource( oSettings ) == 'ssp';
1862
<.*?>		var aiDisplay = oSettings.aiDisplay;
1863
 
1864
<.*?>		oSettings.bDrawing = true;
1865
 
1866
<.*?>		/* Check and see if we have an initial draw position from state saving */
1867
<.*?>		if ( iInitDisplayStart !== undefined && iInitDisplayStart !== -1 )
1868
<.*?>		{
1869
<.*?>			oSettings._iDisplayStart = bServerSide ?
1870
<.*?>				iInitDisplayStart :
1871
<.*?>				iInitDisplayStart >= oSettings.fnRecordsDisplay() ?
1872
 
1873
<.*?>					iInitDisplayStart;
1874
 
1875
<.*?>			oSettings.iInitDisplayStart = -1;
1876
<.*?>		}
1877
 
1878
<.*?>		var iDisplayStart = oSettings._iDisplayStart;
1879
<.*?>		var iDisplayEnd = oSettings.fnDisplayEnd();
1880
 
1881
<.*?>		/* Server-side processing draw intercept */
1882
<.*?>		if ( oSettings.bDeferLoading )
1883
<.*?>		{
1884
<.*?>			oSettings.bDeferLoading = false;
1885
<.*?>			oSettings.iDraw++;
1886
<.*?>			_fnProcessingDisplay( oSettings, false );
1887
<.*?>		}
1888
<.*?>		else if ( !bServerSide )
1889
<.*?>		{
1890
<.*?>			oSettings.iDraw++;
1891
<.*?>		}
1892
<.*?>		else if ( !oSettings.bDestroying && !_fnAjaxUpdate( oSettings ) )
1893
<.*?>		{
1894
<.*?>			return;
1895
<.*?>		}
1896
 
1897
<.*?>		if ( aiDisplay.length !== 0 )
1898
<.*?>		{
1899
<.*?>			var iStart = bServerSide ? 0 : iDisplayStart;
1900
<.*?>			var iEnd = bServerSide ? oSettings.aoData.length : iDisplayEnd;
1901
 
1902
<.*?>			for ( var j=iStart ; j<iEnd ; j++ )
1903
<.*?>			{
1904
<.*?>				var iDataIndex = aiDisplay[j];
1905
<.*?>				var aoData = oSettings.aoData[ iDataIndex ];
1906
<.*?>				if ( aoData.nTr === null )
1907
<.*?>				{
1908
<.*?>					_fnCreateTr( oSettings, iDataIndex );
1909
<.*?>				}
1910
 
1911
<.*?>				var nRow = aoData.nTr;
1912
 
1913
<.*?>				/* Remove the old striping classes and then add the new one */
1914
<.*?>				if ( iStripes !== 0 )
1915
<.*?>				{
1916
<.*?>					var sStripe = asStripeClasses[ iRowCount % iStripes ];
1917
<.*?>					if ( aoData._sRowStripe != sStripe )
1918
<.*?>					{
1919
<.*?>						$(nRow).removeClass( aoData._sRowStripe ).addClass( sStripe );
1920
<.*?>						aoData._sRowStripe = sStripe;
1921
<.*?>					}
1922
<.*?>				}
1923
 
1924
<.*?>				/* Row callback functions - might want to manipulate the row */
1925
<.*?>				_fnCallbackFire( oSettings, 'aoRowCallback', null,
1926
<.*?>					[nRow, aoData._aData, iRowCount, j] );
1927
 
1928
<.*?>				anRows.push( nRow );
1929
<.*?>				iRowCount++;
1930
<.*?>			}
1931
<.*?>		}
1932
<.*?>		else
1933
<.*?>		{
1934
<.*?>			/* Table is empty - create a row with an empty message in it */
1935
<.*?>			var sZero = oLang.sZeroRecords;
1936
<.*?>			if ( oSettings.iDraw == 1 &&  _fnDataSource( oSettings ) == 'ajax' )
1937
<.*?>			{
1938
<.*?>				sZero = oLang.sLoadingRecords;
1939
<.*?>			}
1940
<.*?>			else if ( oLang.sEmptyTable && oSettings.fnRecordsTotal() === 0 )
1941
<.*?>			{
1942
<.*?>				sZero = oLang.sEmptyTable;
1943
<.*?>			}
1944
 
1945
<.*?>			anRows[ 0 ] = $( '<tr/>', { 'class': iStripes ? asStripeClasses[0] : '' } )
1946
<.*?>				.append( $('<td />', {
1947
<.*?>					'valign':  'top',
1948
<.*?>					'colSpan': _fnVisbleColumns( oSettings ),
1949
<.*?>					'class':   oSettings.oClasses.sRowEmpty
1950
<.*?>				} ).html( sZero ) )[0];
1951
<.*?>		}
1952
 
1953
<.*?>		/* Header and footer callbacks */
1954
<.*?>		_fnCallbackFire( oSettings, 'aoHeaderCallback', 'header', [ $(oSettings.nTHead).children('tr')[0],
1955
<.*?>			_fnGetDataMaster( oSettings ), iDisplayStart, iDisplayEnd, aiDisplay ] );
1956
 
1957
<.*?>		_fnCallbackFire( oSettings, 'aoFooterCallback', 'footer', [ $(oSettings.nTFoot).children('tr')[0],
1958
<.*?>			_fnGetDataMaster( oSettings ), iDisplayStart, iDisplayEnd, aiDisplay ] );
1959
 
1960
<.*?>		var body = $(oSettings.nTBody);
1961
 
1962
<.*?>		body.children().detach();
1963
<.*?>		body.append( $(anRows) );
1964
 
1965
<.*?>		/* Call all required callback functions for the end of a draw */
1966
<.*?>		_fnCallbackFire( oSettings, 'aoDrawCallback', 'draw', [oSettings] );
1967
 
1968
<.*?>		/* Draw is complete, sorting and filtering must be as well */
1969
<.*?>		oSettings.bSorted = false;
1970
<.*?>		oSettings.bFiltered = false;
1971
<.*?>		oSettings.bDrawing = false;
1972
<.*?>	}
1973
 
1974
 
1975
<.*?>	/**
1976
<.*?>	 * Redraw the table - taking account of the various features which are enabled
1977
<.*?>	 *  @param {object} oSettings dataTables settings object
1978
<.*?>	 *  @param {boolean} [holdPosition] Keep the current paging position. By default
1979
<.*?>	 *    the paging is reset to the first page
1980
<.*?>	 *  @memberof DataTable#oApi
1981
<.*?>	 */
1982
<.*?>	function _fnReDraw( settings, holdPosition )
1983
<.*?>	{
1984
<.*?>		var
1985
<.*?>			features = settings.oFeatures,
1986
<.*?>			sort     = features.bSort,
1987
<.*?>			filter   = features.bFilter;
1988
 
1989
<.*?>		if ( sort ) {
1990
<.*?>			_fnSort( settings );
1991
<.*?>		}
1992
 
1993
<.*?>		if ( filter ) {
1994
<.*?>			_fnFilterComplete( settings, settings.oPreviousSearch );
1995
<.*?>		}
1996
<.*?>		else {
1997
<.*?>			// No filtering, so we want to just use the display master
1998
<.*?>			settings.aiDisplay = settings.aiDisplayMaster.slice();
1999
<.*?>		}
2000
 
2001
<.*?>		if ( holdPosition !== true ) {
2002
<.*?>			settings._iDisplayStart = 0;
2003
<.*?>		}
2004
 
2005
<.*?>		_fnDraw( settings );
2006
<.*?>	}
2007
 
2008
 
2009
<.*?>	/**
2010
<.*?>	 * Add the options to the page HTML for the table
2011
<.*?>	 *  @param {object} oSettings dataTables settings object
2012
<.*?>	 *  @memberof DataTable#oApi
2013
<.*?>	 */
2014
<.*?>	function _fnAddOptionsHtml ( oSettings )
2015
<.*?>	{
2016
<.*?>		var classes = oSettings.oClasses;
2017
<.*?>		var table = $(oSettings.nTable);
2018
<.*?>		var holding = $('<div/>').insertBefore( table ); // Holding element for speed
2019
<.*?>		var features = oSettings.oFeatures;
2020
 
2021
<.*?>		// All DataTables are wrapped in a div
2022
<.*?>		var insert = $('<div/>', {
2023
<.*?>			id:      oSettings.sTableId+'_wrapper',
2024
<.*?>			'class': classes.sWrapper + (oSettings.nTFoot ? '' : ' '+classes.sNoFooter)
2025
<.*?>		} );
2026
 
2027
<.*?>		oSettings.nHolding = holding[0];
2028
<.*?>		oSettings.nTableWrapper = insert[0];
2029
<.*?>		oSettings.nTableReinsertBefore = oSettings.nTable.nextSibling;
2030
 
2031
<.*?>		/* Loop over the user set positioning and place the elements as needed */
2032
<.*?>		var aDom = oSettings.sDom.split('');
2033
<.*?>		var featureNode, cOption, nNewNode, cNext, sAttr, j;
2034
<.*?>		for ( var i=0 ; i<aDom.length ; i++ )
2035
<.*?>		{
2036
<.*?>			featureNode = null;
2037
<.*?>			cOption = aDom[i];
2038
 
2039
<.*?>			if ( cOption == '<' )
2040
<.*?>			{
2041
<.*?>				/* New container div */
2042
<.*?>				nNewNode = $('<div/>')[0];
2043
 
2044
<.*?>				/* Check to see if we should append an id and/or a class name to the container */
2045
<.*?>				cNext = aDom[i+1];
2046
<.*?>				if ( cNext == "'" || cNext == '"' )
2047
<.*?>				{
2048
<.*?>					sAttr = "";
2049
<.*?>					j = 2;
2050
<.*?>					while ( aDom[i+j] != cNext )
2051
<.*?>					{
2052
<.*?>						sAttr += aDom[i+j];
2053
<.*?>						j++;
2054
<.*?>					}
2055
 
2056
<.*?>					/* Replace jQuery UI constants @todo depreciated */
2057
<.*?>					if ( sAttr == "H" )
2058
<.*?>					{
2059
<.*?>						sAttr = classes.sJUIHeader;
2060
<.*?>					}
2061
<.*?>					else if ( sAttr == "F" )
2062
<.*?>					{
2063
<.*?>						sAttr = classes.sJUIFooter;
2064
<.*?>					}
2065
 
2066
<.*?>					/* The attribute can be in the format of "#id.class", "#id" or "class" This logic
2067
<.*?>					 * breaks the string into parts and applies them as needed
2068
<.*?>					 */
2069
<.*?>					if ( sAttr.indexOf('.') != -1 )
2070
<.*?>					{
2071
<.*?>						var aSplit = sAttr.split('.');
2072
<.*?>						nNewNode.id = aSplit[0].substr(1, aSplit[0].length-1);
2073
<.*?>						nNewNode.className = aSplit[1];
2074
<.*?>					}
2075
<.*?>					else if ( sAttr.charAt(0) == "#" )
2076
<.*?>					{
2077
<.*?>						nNewNode.id = sAttr.substr(1, sAttr.length-1);
2078
<.*?>					}
2079
<.*?>					else
2080
<.*?>					{
2081
<.*?>						nNewNode.className = sAttr;
2082
<.*?>					}
2083
 
2084
<.*?>					i += j; /* Move along the position array */
2085
<.*?>				}
2086
 
2087
<.*?>				insert.append( nNewNode );
2088
<.*?>				insert = $(nNewNode);
2089
<.*?>			}
2090
<.*?>			else if ( cOption == '>' )
2091
<.*?>			{
2092
<.*?>				/* End container div */
2093
<.*?>				insert = insert.parent();
2094
<.*?>			}
2095
<.*?>			// @todo Move options into their own plugins?
2096
<.*?>			else if ( cOption == 'l' && features.bPaginate && features.bLengthChange )
2097
<.*?>			{
2098
<.*?>				/* Length */
2099
<.*?>				featureNode = _fnFeatureHtmlLength( oSettings );
2100
<.*?>			}
2101
<.*?>			else if ( cOption == 'f' && features.bFilter )
2102
<.*?>			{
2103
<.*?>				/* Filter */
2104
<.*?>				featureNode = _fnFeatureHtmlFilter( oSettings );
2105
<.*?>			}
2106
<.*?>			else if ( cOption == 'r' && features.bProcessing )
2107
<.*?>			{
2108
<.*?>				/* pRocessing */
2109
<.*?>				featureNode = _fnFeatureHtmlProcessing( oSettings );
2110
<.*?>			}
2111
<.*?>			else if ( cOption == 't' )
2112
<.*?>			{
2113
<.*?>				/* Table */
2114
<.*?>				featureNode = _fnFeatureHtmlTable( oSettings );
2115
<.*?>			}
2116
<.*?>			else if ( cOption ==  'i' && features.bInfo )
2117
<.*?>			{
2118
<.*?>				/* Info */
2119
<.*?>				featureNode = _fnFeatureHtmlInfo( oSettings );
2120
<.*?>			}
2121
<.*?>			else if ( cOption == 'p' && features.bPaginate )
2122
<.*?>			{
2123
<.*?>				/* Pagination */
2124
<.*?>				featureNode = _fnFeatureHtmlPaginate( oSettings );
2125
<.*?>			}
2126
<.*?>			else if ( DataTable.ext.feature.length !== 0 )
2127
<.*?>			{
2128
<.*?>				/* Plug-in features */
2129
<.*?>				var aoFeatures = DataTable.ext.feature;
2130
<.*?>				for ( var k=0, kLen=aoFeatures.length ; k<kLen ; k++ )
2131
<.*?>				{
2132
<.*?>					if ( cOption == aoFeatures[k].cFeature )
2133
<.*?>					{
2134
<.*?>						featureNode = aoFeatures[k].fnInit( oSettings );
2135
<.*?>						break;
2136
<.*?>					}
2137
<.*?>				}
2138
<.*?>			}
2139
 
2140
<.*?>			/* Add to the 2D features array */
2141
<.*?>			if ( featureNode )
2142
<.*?>			{
2143
<.*?>				var aanFeatures = oSettings.aanFeatures;
2144
 
2145
<.*?>				if ( ! aanFeatures[cOption] )
2146
<.*?>				{
2147
<.*?>					aanFeatures[cOption] = [];
2148
<.*?>				}
2149
 
2150
<.*?>				aanFeatures[cOption].push( featureNode );
2151
<.*?>				insert.append( featureNode );
2152
<.*?>			}
2153
<.*?>		}
2154
 
2155
<.*?>		/* Built our DOM structure - replace the holding div with what we want */
2156
<.*?>		holding.replaceWith( insert );
2157
<.*?>	}
2158
 
2159
 
2160
<.*?>	/**
2161
<.*?>	 * Use the DOM source to create up an array of header cells. The idea here is to
2162
<.*?>	 * create a layout grid (array) of rows x columns, which contains a reference
2163
<.*?>	 * to the cell that that point in the grid (regardless of col/rowspan), such that
2164
<.*?>	 * any column / row could be removed and the new grid constructed
2165
<.*?>	 *  @param array {object} aLayout Array to store the calculated layout in
2166
<.*?>	 *  @param {node} nThead The header/footer element for the table
2167
<.*?>	 *  @memberof DataTable#oApi
2168
<.*?>	 */
2169
<.*?>	function _fnDetectHeader ( aLayout, nThead )
2170
<.*?>	{
2171
<.*?>		var nTrs = $(nThead).children('tr');
2172
<.*?>		var nTr, nCell;
2173
<.*?>		var i, k, l, iLen, jLen, iColShifted, iColumn, iColspan, iRowspan;
2174
<.*?>		var bUnique;
2175
<.*?>		var fnShiftCol = function ( a, i, j ) {
2176
<.*?>			var k = a[i];
2177
<.*?>	                while ( k[j] ) {
2178
<.*?>				j++;
2179
<.*?>			}
2180
<.*?>			return j;
2181
<.*?>		};
2182
 
2183
<.*?>		aLayout.splice( 0, aLayout.length );
2184
 
2185
<.*?>		/* We know how many rows there are in the layout - so prep it */
2186
<.*?>		for ( i=0, iLen=nTrs.length ; i<iLen ; i++ )
2187
<.*?>		{
2188
<.*?>			aLayout.push( [] );
2189
<.*?>		}
2190
 
2191
<.*?>		/* Calculate a layout array */
2192
<.*?>		for ( i=0, iLen=nTrs.length ; i<iLen ; i++ )
2193
<.*?>		{
2194
<.*?>			nTr = nTrs[i];
2195
<.*?>			iColumn = 0;
2196
 
2197
<.*?>			/* For every cell in the row... */
2198
<.*?>			nCell = nTr.firstChild;
2199
<.*?>			while ( nCell ) {
2200
<.*?>				if ( nCell.nodeName.toUpperCase() == "TD" ||
2201
<.*?>				     nCell.nodeName.toUpperCase() == "TH" )
2202
<.*?>				{
2203
<.*?>					/* Get the col and rowspan attributes from the DOM and sanitise them */
2204
<.*?>					iColspan = nCell.getAttribute('colspan') * 1;
2205
<.*?>					iRowspan = nCell.getAttribute('rowspan') * 1;
2206
<.*?>					iColspan = (!iColspan || iColspan===0 || iColspan===1) ? 1 : iColspan;
2207
<.*?>					iRowspan = (!iRowspan || iRowspan===0 || iRowspan===1) ? 1 : iRowspan;
2208
 
2209
<.*?>					/* There might be colspan cells already in this row, so shift our target
2210
<.*?>					 * accordingly
2211
<.*?>					 */
2212
<.*?>					iColShifted = fnShiftCol( aLayout, i, iColumn );
2213
 
2214
<.*?>					/* Cache calculation for unique columns */
2215
<.*?>					bUnique = iColspan === 1 ? true : false;
2216
 
2217
<.*?>					/* If there is col / rowspan, copy the information into the layout grid */
2218
<.*?>					for ( l=0 ; l<iColspan ; l++ )
2219
<.*?>					{
2220
<.*?>						for ( k=0 ; k<iRowspan ; k++ )
2221
<.*?>						{
2222
<.*?>							aLayout[i+k][iColShifted+l] = {
2223
<.*?>								"cell": nCell,
2224
<.*?>								"unique": bUnique
2225
<.*?>							};
2226
<.*?>							aLayout[i+k].nTr = nTr;
2227
<.*?>						}
2228
<.*?>					}
2229
<.*?>				}
2230
<.*?>				nCell = nCell.nextSibling;
2231
<.*?>			}
2232
<.*?>		}
2233
<.*?>	}
2234
 
2235
 
2236
<.*?>	/**
2237
<.*?>	 * Get an array of unique th elements, one for each column
2238
<.*?>	 *  @param {object} oSettings dataTables settings object
2239
<.*?>	 *  @param {node} nHeader automatically detect the layout from this node - optional
2240
<.*?>	 *  @param {array} aLayout thead/tfoot layout from _fnDetectHeader - optional
2241
<.*?>	 *  @returns array {node} aReturn list of unique th's
2242
<.*?>	 *  @memberof DataTable#oApi
2243
<.*?>	 */
2244
<.*?>	function _fnGetUniqueThs ( oSettings, nHeader, aLayout )
2245
<.*?>	{
2246
<.*?>		var aReturn = [];
2247
<.*?>		if ( !aLayout )
2248
<.*?>		{
2249
<.*?>			aLayout = oSettings.aoHeader;
2250
<.*?>			if ( nHeader )
2251
<.*?>			{
2252
<.*?>				aLayout = [];
2253
<.*?>				_fnDetectHeader( aLayout, nHeader );
2254
<.*?>			}
2255
<.*?>		}
2256
 
2257
<.*?>		for ( var i=0, iLen=aLayout.length ; i<iLen ; i++ )
2258
<.*?>		{
2259
<.*?>			for ( var j=0, jLen=aLayout[i].length ; j<jLen ; j++ )
2260
<.*?>			{
2261
<.*?>				if ( aLayout[i][j].unique &&
2262
<.*?>					 (!aReturn[j] || !oSettings.bSortCellsTop) )
2263
<.*?>				{
2264
<.*?>					aReturn[j] = aLayout[i][j].cell;
2265
<.*?>				}
2266
<.*?>			}
2267
<.*?>		}
2268
 
2269
<.*?>		return aReturn;
2270
<.*?>	}
2271
 
2272
 
2273
 
2274
<.*?>	/**
2275
<.*?>	 * Create an Ajax call based on the table's settings, taking into account that
2276
<.*?>	 * parameters can have multiple forms, and backwards compatibility.
2277
<.*?>	 *
2278
<.*?>	 * @param {object} oSettings dataTables settings object
2279
<.*?>	 * @param {array} data Data to send to the server, required by
2280
<.*?>	 *     DataTables - may be augmented by developer callbacks
2281
<.*?>	 * @param {function} fn Callback function to run when data is obtained
2282
<.*?>	 */
2283
<.*?>	function _fnBuildAjax( oSettings, data, fn )
2284
<.*?>	{
2285
<.*?>		// Compatibility with 1.9-, allow fnServerData and event to manipulate
2286
<.*?>		_fnCallbackFire( oSettings, 'aoServerParams', 'serverParams', [data] );
2287
 
2288
<.*?>		// Convert to object based for 1.10+ if using the old array scheme which can
2289
<.*?>		// come from server-side processing or serverParams
2290
<.*?>		if ( data && $.isArray(data) ) {
2291
<.*?>			var tmp = {};
2292
<.*?>			var rbracket = /(.*?)\[\]$/;
2293
 
2294
<.*?>			$.each( data, function (key, val) {
2295
<.*?>				var match = val.name.match(rbracket);
2296
 
2297
<.*?>				if ( match ) {
2298
<.*?>					// Support for arrays
2299
<.*?>					var name = match[0];
2300
 
2301
<.*?>					if ( ! tmp[ name ] ) {
2302
<.*?>						tmp[ name ] = [];
2303
<.*?>					}
2304
<.*?>					tmp[ name ].push( val.value );
2305
<.*?>				}
2306
<.*?>				else {
2307
<.*?>					tmp[val.name] = val.value;
2308
<.*?>				}
2309
<.*?>			} );
2310
<.*?>			data = tmp;
2311
<.*?>		}
2312
 
2313
<.*?>		var ajaxData;
2314
<.*?>		var ajax = oSettings.ajax;
2315
<.*?>		var instance = oSettings.oInstance;
2316
 
2317
<.*?>		if ( $.isPlainObject( ajax ) && ajax.data )
2318
<.*?>		{
2319
<.*?>			ajaxData = ajax.data;
2320
 
2321
<.*?>			var newData = $.isFunction( ajaxData ) ?
2322
<.*?>				ajaxData( data ) :  // fn can manipulate data or return an object
2323
<.*?>				ajaxData;           // object or array to merge
2324
 
2325
<.*?>			// If the function returned an object, use that alone
2326
<.*?>			data = $.isFunction( ajaxData ) && newData ?
2327
<.*?>				newData :
2328
<.*?>				$.extend( true, data, newData );
2329
 
2330
<.*?>			// Remove the data property as we've resolved it already and don't want
2331
<.*?>			// jQuery to do it again (it is restored at the end of the function)
2332
<.*?>			delete ajax.data;
2333
<.*?>		}
2334
 
2335
<.*?>		var baseAjax = {
2336
<.*?>			"data": data,
2337
<.*?>			"success": function (json) {
2338
<.*?>				var error = json.error || json.sError;
2339
<.*?>				if ( error ) {
2340
<.*?>					oSettings.oApi._fnLog( oSettings, 0, error );
2341
<.*?>				}
2342
 
2343
<.*?>				oSettings.json = json;
2344
<.*?>				_fnCallbackFire( oSettings, null, 'xhr', [oSettings, json] );
2345
<.*?>				fn( json );
2346
<.*?>			},
2347
<.*?>			"dataType": "json",
2348
<.*?>			"cache": false,
2349
<.*?>			"type": oSettings.sServerMethod,
2350
<.*?>			"error": function (xhr, error, thrown) {
2351
<.*?>				var log = oSettings.oApi._fnLog;
2352
 
2353
<.*?>				if ( error == "parsererror" ) {
2354
<.*?>					log( oSettings, 0, 'Invalid JSON response', 1 );
2355
<.*?>				}
2356
<.*?>				else if ( xhr.readyState === 4 ) {
2357
<.*?>					log( oSettings, 0, 'Ajax error', 7 );
2358
<.*?>				}
2359
 
2360
<.*?>				_fnProcessingDisplay( oSettings, false );
2361
<.*?>			}
2362
<.*?>		};
2363
 
2364
<.*?>		// Store the data submitted for the API
2365
<.*?>		oSettings.oAjaxData = data;
2366
 
2367
<.*?>		// Allow plug-ins and external processes to modify the data
2368
<.*?>		_fnCallbackFire( oSettings, null, 'preXhr', [oSettings, data] );
2369
 
2370
<.*?>		if ( oSettings.fnServerData )
2371
<.*?>		{
2372
<.*?>			// DataTables 1.9- compatibility
2373
<.*?>			oSettings.fnServerData.call( instance,
2374
<.*?>				oSettings.sAjaxSource,
2375
<.*?>				$.map( data, function (val, key) { // Need to convert back to 1.9 trad format
2376
<.*?>					return { name: key, value: val };
2377
<.*?>				} ),
2378
<.*?>				fn,
2379
<.*?>				oSettings
2380
<.*?>			);
2381
<.*?>		}
2382
<.*?>		else if ( oSettings.sAjaxSource || typeof ajax === 'string' )
2383
<.*?>		{
2384
<.*?>			// DataTables 1.9- compatibility
2385
<.*?>			oSettings.jqXHR = $.ajax( $.extend( baseAjax, {
2386
<.*?>				url: ajax || oSettings.sAjaxSource
2387
<.*?>			} ) );
2388
<.*?>		}
2389
<.*?>		else if ( $.isFunction( ajax ) )
2390
<.*?>		{
2391
<.*?>			// Is a function - let the caller define what needs to be done
2392
<.*?>			oSettings.jqXHR = ajax.call( instance, data, fn, oSettings );
2393
<.*?>		}
2394
<.*?>		else
2395
<.*?>		{
2396
<.*?>			// Object to extend the base settings
2397
<.*?>			oSettings.jqXHR = $.ajax( $.extend( baseAjax, ajax ) );
2398
 
2399
<.*?>			// Restore for next time around
2400
<.*?>			ajax.data = ajaxData;
2401
<.*?>		}
2402
<.*?>	}
2403
 
2404
 
2405
<.*?>	/**
2406
<.*?>	 * Update the table using an Ajax call
2407
<.*?>	 *  @param {object} oSettings dataTables settings object
2408
<.*?>	 *  @returns {boolean} Block the table drawing or not
2409
<.*?>	 *  @memberof DataTable#oApi
2410
<.*?>	 */
2411
<.*?>	function _fnAjaxUpdate( oSettings )
2412
<.*?>	{
2413
<.*?>		if ( oSettings.bAjaxDataGet )
2414
<.*?>		{
2415
<.*?>			oSettings.iDraw++;
2416
<.*?>			_fnProcessingDisplay( oSettings, true );
2417
<.*?>			var iColumns = oSettings.aoColumns.length;
2418
<.*?>			var aoData = _fnAjaxParameters( oSettings );
2419
 
2420
<.*?>			_fnBuildAjax( oSettings, aoData, function(json) {
2421
<.*?>				_fnAjaxUpdateDraw( oSettings, json );
2422
<.*?>			}, oSettings );
2423
 
2424
<.*?>			return false;
2425
<.*?>		}
2426
<.*?>		return true;
2427
<.*?>	}
2428
 
2429
 
2430
<.*?>	/**
2431
<.*?>	 * Build up the parameters in an object needed for a server-side processing
2432
<.*?>	 * request. Note that this is basically done twice, is different ways - a modern
2433
<.*?>	 * method which is used by default in DataTables 1.10 which uses objects and
2434
<.*?>	 * arrays, or the 1.9- method with is name / value pairs. 1.9 method is used if
2435
<.*?>	 * the sAjaxSource option is used in the initialisation, or the legacyAjax
2436
<.*?>	 * option is set.
2437
<.*?>	 *  @param {object} oSettings dataTables settings object
2438
<.*?>	 *  @returns {bool} block the table drawing or not
2439
<.*?>	 *  @memberof DataTable#oApi
2440
<.*?>	 */
2441
<.*?>	function _fnAjaxParameters( settings )
2442
<.*?>	{
2443
<.*?>		var
2444
<.*?>			columns = settings.aoColumns,
2445
<.*?>			columnCount = columns.length,
2446
<.*?>			features = settings.oFeatures,
2447
<.*?>			preSearch = settings.oPreviousSearch,
2448
<.*?>			preColSearch = settings.aoPreSearchCols,
2449
<.*?>			i, data = [], dataProp, column, columnSearch,
2450
<.*?>			sort = _fnSortFlatten( settings ),
2451
<.*?>			displayStart = settings._iDisplayStart,
2452
<.*?>			displayLength = features.bPaginate !== false ?
2453
<.*?>				settings._iDisplayLength :
2454
<.*?>				-1;
2455
 
2456
<.*?>		var param = function ( name, value ) {
2457
<.*?>			data.push( { 'name': name, 'value': value } );
2458
<.*?>		};
2459
 
2460
<.*?>		// DataTables 1.9- compatible method
2461
<.*?>		param( 'sEcho',          settings.iDraw );
2462
<.*?>		param( 'iColumns',       columnCount );
2463
<.*?>		param( 'sColumns',       _pluck( columns, 'sName' ).join(',') );
2464
<.*?>		param( 'iDisplayStart',  displayStart );
2465
<.*?>		param( 'iDisplayLength', displayLength );
2466
 
2467
<.*?>		// DataTables 1.10+ method
2468
<.*?>		var d = {
2469
<.*?>			draw:    settings.iDraw,
2470
<.*?>			columns: [],
2471
<.*?>			order:   [],
2472
<.*?>			start:   displayStart,
2473
<.*?>			length:  displayLength,
2474
<.*?>			search:  {
2475
<.*?>				value: preSearch.sSearch,
2476
<.*?>				regex: preSearch.bRegex
2477
<.*?>			}
2478
<.*?>		};
2479
 
2480
<.*?>		for ( i=0 ; i<columnCount ; i++ ) {
2481
<.*?>			column = columns[i];
2482
<.*?>			columnSearch = preColSearch[i];
2483
<.*?>			dataProp = typeof column.mData=="function" ? 'function' : column.mData ;
2484
 
2485
<.*?>			d.columns.push( {
2486
<.*?>				data:       dataProp,
2487
<.*?>				name:       column.sName,
2488
<.*?>				searchable: column.bSearchable,
2489
<.*?>				orderable:  column.bSortable,
2490
<.*?>				search:     {
2491
<.*?>					value: columnSearch.sSearch,
2492
<.*?>					regex: columnSearch.bRegex
2493
<.*?>				}
2494
<.*?>			} );
2495
 
2496
<.*?>			param( "mDataProp_"+i, dataProp );
2497
 
2498
<.*?>			if ( features.bFilter ) {
2499
<.*?>				param( 'sSearch_'+i,     columnSearch.sSearch );
2500
<.*?>				param( 'bRegex_'+i,      columnSearch.bRegex );
2501
<.*?>				param( 'bSearchable_'+i, column.bSearchable );
2502
<.*?>			}
2503
 
2504
<.*?>			if ( features.bSort ) {
2505
<.*?>				param( 'bSortable_'+i, column.bSortable );
2506
<.*?>			}
2507
<.*?>		}
2508
 
2509
<.*?>		if ( features.bFilter ) {
2510
<.*?>			param( 'sSearch', preSearch.sSearch );
2511
<.*?>			param( 'bRegex', preSearch.bRegex );
2512
<.*?>		}
2513
 
2514
<.*?>		if ( features.bSort ) {
2515
<.*?>			$.each( sort, function ( i, val ) {
2516
<.*?>				d.order.push( { column: val.col, dir: val.dir } );
2517
 
2518
<.*?>				param( 'iSortCol_'+i, val.col );
2519
<.*?>				param( 'sSortDir_'+i, val.dir );
2520
<.*?>			} );
2521
 
2522
<.*?>			param( 'iSortingCols', sort.length );
2523
<.*?>		}
2524
 
2525
<.*?>		// If the legacy.ajax parameter is null, then we automatically decide which
2526
<.*?>		// form to use, based on sAjaxSource
2527
<.*?>		var legacy = DataTable.ext.legacy.ajax;
2528
<.*?>		if ( legacy === null ) {
2529
<.*?>			return settings.sAjaxSource ? data : d;
2530
<.*?>		}
2531
 
2532
<.*?>		// Otherwise, if legacy has been specified then we use that to decide on the
2533
<.*?>		// form
2534
<.*?>		return legacy ? data : d;
2535
<.*?>	}
2536
 
2537
 
2538
<.*?>	/**
2539
<.*?>	 * Data the data from the server (nuking the old) and redraw the table
2540
<.*?>	 *  @param {object} oSettings dataTables settings object
2541
<.*?>	 *  @param {object} json json data return from the server.
2542
<.*?>	 *  @param {string} json.sEcho Tracking flag for DataTables to match requests
2543
<.*?>	 *  @param {int} json.iTotalRecords Number of records in the data set, not accounting for filtering
2544
<.*?>	 *  @param {int} json.iTotalDisplayRecords Number of records in the data set, accounting for filtering
2545
<.*?>	 *  @param {array} json.aaData The data to display on this page
2546
<.*?>	 *  @param {string} [json.sColumns] Column ordering (sName, comma separated)
2547
<.*?>	 *  @memberof DataTable#oApi
2548
<.*?>	 */
2549
<.*?>	function _fnAjaxUpdateDraw ( settings, json )
2550
<.*?>	{
2551
<.*?>		// v1.10 uses camelCase variables, while 1.9 uses Hungarian notation.
2552
<.*?>		// Support both
2553
<.*?>		var compat = function ( old, modern ) {
2554
<.*?>			return json[old] !== undefined ? json[old] : json[modern];
2555
<.*?>		};
2556
 
2557
<.*?>		var draw            = compat( 'sEcho',                'draw' );
2558
<.*?>		var recordsTotal    = compat( 'iTotalRecords',        'recordsTotal' );
2559
<.*?>		var rocordsFiltered = compat( 'iTotalDisplayRecords', 'recordsFiltered' );
2560
 
2561
<.*?>		if ( draw ) {
2562
<.*?>			// Protect against out of sequence returns
2563
<.*?>			if ( draw*1 < settings.iDraw ) {
2564
<.*?>				return;
2565
<.*?>			}
2566
<.*?>			settings.iDraw = draw * 1;
2567
<.*?>		}
2568
 
2569
<.*?>		_fnClearTable( settings );
2570
<.*?>		settings._iRecordsTotal   = parseInt(recordsTotal, 10);
2571
<.*?>		settings._iRecordsDisplay = parseInt(rocordsFiltered, 10);
2572
 
2573
<.*?>		var data = _fnAjaxDataSrc( settings, json );
2574
<.*?>		for ( var i=0, ien=data.length ; i<ien ; i++ ) {
2575
<.*?>			_fnAddData( settings, data[i] );
2576
<.*?>		}
2577
<.*?>		settings.aiDisplay = settings.aiDisplayMaster.slice();
2578
 
2579
<.*?>		settings.bAjaxDataGet = false;
2580
<.*?>		_fnDraw( settings );
2581
 
2582
<.*?>		if ( ! settings._bInitComplete ) {
2583
<.*?>			_fnInitComplete( settings, json );
2584
<.*?>		}
2585
 
2586
<.*?>		settings.bAjaxDataGet = true;
2587
<.*?>		_fnProcessingDisplay( settings, false );
2588
<.*?>	}
2589
 
2590
 
2591
<.*?>	/**
2592
<.*?>	 * Get the data from the JSON data source to use for drawing a table. Using
2593
<.*?>	 * `_fnGetObjectDataFn` allows the data to be sourced from a property of the
2594
<.*?>	 * source object, or from a processing function.
2595
<.*?>	 *  @param {object} oSettings dataTables settings object
2596
<.*?>	 *  @param  {object} json Data source object / array from the server
2597
<.*?>	 *  @return {array} Array of data to use
2598
<.*?>	 */
2599
<.*?>	function _fnAjaxDataSrc ( oSettings, json )
2600
<.*?>	{
2601
<.*?>		var dataSrc = $.isPlainObject( oSettings.ajax ) && oSettings.ajax.dataSrc !== undefined ?
2602
<.*?>			oSettings.ajax.dataSrc :
2603
<.*?>			oSettings.sAjaxDataProp; // Compatibility with 1.9-.
2604
 
2605
<.*?>		// Compatibility with 1.9-. In order to read from aaData, check if the
2606
<.*?>		// default has been changed, if not, check for aaData
2607
<.*?>		if ( dataSrc === 'data' ) {
2608
<.*?>			return json.aaData || json[dataSrc];
2609
<.*?>		}
2610
 
2611
<.*?>		return dataSrc !== "" ?
2612
<.*?>			_fnGetObjectDataFn( dataSrc )( json ) :
2613
<.*?>			json;
2614
<.*?>	}
2615
 
2616
 
2617
<.*?>	/**
2618
<.*?>	 * Generate the node required for filtering text
2619
<.*?>	 *  @returns {node} Filter control element
2620
<.*?>	 *  @param {object} oSettings dataTables settings object
2621
<.*?>	 *  @memberof DataTable#oApi
2622
<.*?>	 */
2623
<.*?>	function _fnFeatureHtmlFilter ( settings )
2624
<.*?>	{
2625
<.*?>		var classes = settings.oClasses;
2626
<.*?>		var tableId = settings.sTableId;
2627
<.*?>		var previousSearch = settings.oPreviousSearch;
2628
<.*?>		var features = settings.aanFeatures;
2629
<.*?>		var input = '<input type="search" class="'+classes.sFilterInput+'"/>';
2630
 
2631
<.*?>		var str = settings.oLanguage.sSearch;
2632
<.*?>		str = str.match(/_INPUT_/) ?
2633
<.*?>			str.replace('_INPUT_', input) :
2634
<.*?>			str+input;
2635
 
2636
<.*?>		var filter = $('<div/>', {
2637
<.*?>				'id': ! features.f ? tableId+'_filter' : null,
2638
<.*?>				'class': classes.sFilter
2639
<.*?>			} )
2640
<.*?>			.append( $('<label/>' ).append( str ) );
2641
 
2642
<.*?>		var searchFn = function() {
2643
<.*?>			/* Update all other filter input elements for the new display */
2644
<.*?>			var n = features.f;
2645
<.*?>			var val = !this.value ? "" : this.value; // mental IE8 fix :-(
2646
 
2647
<.*?>			/* Now do the filter */
2648
<.*?>			if ( val != previousSearch.sSearch ) {
2649
<.*?>				_fnFilterComplete( settings, {
2650
<.*?>					"sSearch": val,
2651
<.*?>					"bRegex": previousSearch.bRegex,
2652
<.*?>					"bSmart": previousSearch.bSmart ,
2653
<.*?>					"bCaseInsensitive": previousSearch.bCaseInsensitive
2654
<.*?>				} );
2655
 
2656
<.*?>				// Need to redraw, without resorting
2657
<.*?>				settings._iDisplayStart = 0;
2658
<.*?>				_fnDraw( settings );
2659
<.*?>			}
2660
<.*?>		};
2661
<.*?>		var jqFilter = $('input', filter)
2662
<.*?>			.val( previousSearch.sSearch.replace('"','&quot;') )
2663
<.*?>			.bind(
2664
<.*?>				'keyup.DT search.DT input.DT paste.DT cut.DT',
2665
<.*?>				_fnDataSource( settings ) === 'ssp' ?
2666
<.*?>					_fnThrottle( searchFn, 400 ):
2667
<.*?>					searchFn
2668
<.*?>			)
2669
<.*?>			.bind( 'keypress.DT', function(e) {
2670
<.*?>				/* Prevent form submission */
2671
<.*?>				if ( e.keyCode == 13 ) {
2672
<.*?>					return false;
2673
<.*?>				}
2674
<.*?>			} )
2675
<.*?>			.attr('aria-controls', tableId);
2676
 
2677
<.*?>		// Update the input elements whenever the table is filtered
2678
<.*?>		$(settings.nTable).on( 'filter.DT', function () {
2679
<.*?>			// IE9 throws an 'unknown error' if document.activeElement is used
2680
<.*?>			// inside an iframe or frame...
2681
<.*?>			try {
2682
<.*?>				if ( jqFilter[0] !== document.activeElement ) {
2683
<.*?>					jqFilter.val( previousSearch.sSearch );
2684
<.*?>				}
2685
<.*?>			}
2686
<.*?>			catch ( e ) {}
2687
<.*?>		} );
2688
 
2689
<.*?>		return filter[0];
2690
<.*?>	}
2691
 
2692
 
2693
<.*?>	/**
2694
<.*?>	 * Filter the table using both the global filter and column based filtering
2695
<.*?>	 *  @param {object} oSettings dataTables settings object
2696
<.*?>	 *  @param {object} oSearch search information
2697
<.*?>	 *  @param {int} [iForce] force a research of the master array (1) or not (undefined or 0)
2698
<.*?>	 *  @memberof DataTable#oApi
2699
<.*?>	 */
2700
<.*?>	function _fnFilterComplete ( oSettings, oInput, iForce )
2701
<.*?>	{
2702
<.*?>		var oPrevSearch = oSettings.oPreviousSearch;
2703
<.*?>		var aoPrevSearch = oSettings.aoPreSearchCols;
2704
<.*?>		var fnSaveFilter = function ( oFilter ) {
2705
<.*?>			/* Save the filtering values */
2706
<.*?>			oPrevSearch.sSearch = oFilter.sSearch;
2707
<.*?>			oPrevSearch.bRegex = oFilter.bRegex;
2708
<.*?>			oPrevSearch.bSmart = oFilter.bSmart;
2709
<.*?>			oPrevSearch.bCaseInsensitive = oFilter.bCaseInsensitive;
2710
<.*?>		};
2711
<.*?>		var fnRegex = function ( o ) {
2712
<.*?>			// Backwards compatibility with the bEscapeRegex option
2713
<.*?>			return o.bEscapeRegex !== undefined ? !o.bEscapeRegex : o.bRegex;
2714
<.*?>		};
2715
 
2716
<.*?>		// Resolve any column types that are unknown due to addition or invalidation
2717
<.*?>		// @todo As per sort - can this be moved into an event handler?
2718
<.*?>		_fnColumnTypes( oSettings );
2719
 
2720
<.*?>		/* In server-side processing all filtering is done by the server, so no point hanging around here */
2721
<.*?>		if ( _fnDataSource( oSettings ) != 'ssp' )
2722
<.*?>		{
2723
<.*?>			/* Global filter */
2724
<.*?>			_fnFilter( oSettings, oInput.sSearch, iForce, fnRegex(oInput), oInput.bSmart, oInput.bCaseInsensitive );
2725
<.*?>			fnSaveFilter( oInput );
2726
 
2727
<.*?>			/* Now do the individual column filter */
2728
<.*?>			for ( var i=0 ; i<aoPrevSearch.length ; i++ )
2729
<.*?>			{
2730
<.*?>				_fnFilterColumn( oSettings, aoPrevSearch[i].sSearch, i, fnRegex(aoPrevSearch[i]),
2731
<.*?>					aoPrevSearch[i].bSmart, aoPrevSearch[i].bCaseInsensitive );
2732
<.*?>			}
2733
 
2734
<.*?>			/* Custom filtering */
2735
<.*?>			_fnFilterCustom( oSettings );
2736
<.*?>		}
2737
<.*?>		else
2738
<.*?>		{
2739
<.*?>			fnSaveFilter( oInput );
2740
<.*?>		}
2741
 
2742
<.*?>		/* Tell the draw function we have been filtering */
2743
<.*?>		oSettings.bFiltered = true;
2744
<.*?>		_fnCallbackFire( oSettings, null, 'search', [oSettings] );
2745
<.*?>	}
2746
 
2747
 
2748
<.*?>	/**
2749
<.*?>	 * Apply custom filtering functions
2750
<.*?>	 *  @param {object} oSettings dataTables settings object
2751
<.*?>	 *  @memberof DataTable#oApi
2752
<.*?>	 */
2753
<.*?>	function _fnFilterCustom( settings )
2754
<.*?>	{
2755
<.*?>		var filters = DataTable.ext.search;
2756
<.*?>		var displayRows = settings.aiDisplay;
2757
<.*?>		var row, rowIdx;
2758
 
2759
<.*?>		for ( var i=0, iLen=filters.length ; i<iLen ; i++ ) {
2760
<.*?>			for ( var j=displayRows.length-1 ; j>=0 ; j-- ) {
2761
<.*?>				rowIdx = displayRows[ j ];
2762
<.*?>				row = settings.aoData[ rowIdx ];
2763
 
2764
<.*?>				if ( ! filters[i]( settings, row._aFilterData, rowIdx, row._aData ) ) {
2765
<.*?>					displayRows.splice( j, 1 );
2766
<.*?>				}
2767
<.*?>			}
2768
<.*?>		}
2769
<.*?>	}
2770
 
2771
 
2772
<.*?>	/**
2773
<.*?>	 * Filter the table on a per-column basis
2774
<.*?>	 *  @param {object} oSettings dataTables settings object
2775
<.*?>	 *  @param {string} sInput string to filter on
2776
<.*?>	 *  @param {int} iColumn column to filter
2777
<.*?>	 *  @param {bool} bRegex treat search string as a regular expression or not
2778
<.*?>	 *  @param {bool} bSmart use smart filtering or not
2779
<.*?>	 *  @param {bool} bCaseInsensitive Do case insenstive matching or not
2780
<.*?>	 *  @memberof DataTable#oApi
2781
<.*?>	 */
2782
<.*?>	function _fnFilterColumn ( settings, searchStr, colIdx, regex, smart, caseInsensitive )
2783
<.*?>	{
2784
<.*?>		if ( searchStr === '' ) {
2785
<.*?>			return;
2786
<.*?>		}
2787
 
2788
<.*?>		var data;
2789
<.*?>		var display = settings.aiDisplay;
2790
<.*?>		var rpSearch = _fnFilterCreateSearch( searchStr, regex, smart, caseInsensitive );
2791
 
2792
<.*?>		for ( var i=display.length-1 ; i>=0 ; i-- ) {
2793
<.*?>			data = settings.aoData[ display[i] ]._aFilterData[ colIdx ];
2794
 
2795
<.*?>			if ( ! rpSearch.test( data ) ) {
2796
<.*?>				display.splice( i, 1 );
2797
<.*?>			}
2798
<.*?>		}
2799
<.*?>	}
2800
 
2801
 
2802
<.*?>	/**
2803
<.*?>	 * Filter the data table based on user input and draw the table
2804
<.*?>	 *  @param {object} settings dataTables settings object
2805
<.*?>	 *  @param {string} input string to filter on
2806
<.*?>	 *  @param {int} force optional - force a research of the master array (1) or not (undefined or 0)
2807
<.*?>	 *  @param {bool} regex treat as a regular expression or not
2808
<.*?>	 *  @param {bool} smart perform smart filtering or not
2809
<.*?>	 *  @param {bool} caseInsensitive Do case insenstive matching or not
2810
<.*?>	 *  @memberof DataTable#oApi
2811
<.*?>	 */
2812
<.*?>	function _fnFilter( settings, input, force, regex, smart, caseInsensitive )
2813
<.*?>	{
2814
<.*?>		var rpSearch = _fnFilterCreateSearch( input, regex, smart, caseInsensitive );
2815
<.*?>		var prevSearch = settings.oPreviousSearch.sSearch;
2816
<.*?>		var displayMaster = settings.aiDisplayMaster;
2817
<.*?>		var display, invalidated, i;
2818
 
2819
<.*?>		// Need to take account of custom filtering functions - always filter
2820
<.*?>		if ( DataTable.ext.search.length !== 0 ) {
2821
<.*?>			force = true;
2822
<.*?>		}
2823
 
2824
<.*?>		// Check if any of the rows were invalidated
2825
<.*?>		invalidated = _fnFilterData( settings );
2826
 
2827
<.*?>		// If the input is blank - we just want the full data set
2828
<.*?>		if ( input.length <= 0 ) {
2829
<.*?>			settings.aiDisplay = displayMaster.slice();
2830
<.*?>		}
2831
<.*?>		else {
2832
<.*?>			// New search - start from the master array
2833
<.*?>			if ( invalidated ||
2834
<.*?>				 force ||
2835
<.*?>				 prevSearch.length > input.length ||
2836
<.*?>				 input.indexOf(prevSearch) !== 0 ||
2837
<.*?>				 settings.bSorted // On resort, the display master needs to be
2838
<.*?>				                  // re-filtered since indexes will have changed
2839
<.*?>			) {
2840
<.*?>				settings.aiDisplay = displayMaster.slice();
2841
<.*?>			}
2842
 
2843
<.*?>			// Search the display array
2844
<.*?>			display = settings.aiDisplay;
2845
 
2846
<.*?>			for ( i=display.length-1 ; i>=0 ; i-- ) {
2847
<.*?>				if ( ! rpSearch.test( settings.aoData[ display[i] ]._sFilterRow ) ) {
2848
<.*?>					display.splice( i, 1 );
2849
<.*?>				}
2850
<.*?>			}
2851
<.*?>		}
2852
<.*?>	}
2853
 
2854
 
2855
<.*?>	/**
2856
<.*?>	 * Build a regular expression object suitable for searching a table
2857
<.*?>	 *  @param {string} sSearch string to search for
2858
<.*?>	 *  @param {bool} bRegex treat as a regular expression or not
2859
<.*?>	 *  @param {bool} bSmart perform smart filtering or not
2860
<.*?>	 *  @param {bool} bCaseInsensitive Do case insensitive matching or not
2861
<.*?>	 *  @returns {RegExp} constructed object
2862
<.*?>	 *  @memberof DataTable#oApi
2863
<.*?>	 */
2864
<.*?>	function _fnFilterCreateSearch( search, regex, smart, caseInsensitive )
2865
<.*?>	{
2866
<.*?>		search = regex ?
2867
<.*?>			search :
2868
<.*?>			_fnEscapeRegex( search );
2869
 
2870
<.*?>		if ( smart ) {
2871
<.*?>			/* For smart filtering we want to allow the search to work regardless of
2872
<.*?>			 * word order. We also want double quoted text to be preserved, so word
2873
<.*?>			 * order is important - a la google. So this is what we want to
2874
<.*?>			 * generate:
2875
<.*?>			 * 
2876
<.*?>			 * ^(?=.*?\bone\b)(?=.*?\btwo three\b)(?=.*?\bfour\b).*$
2877
<.*?>			 */
2878
<.*?>			var a = $.map( search.match( /"[^"]+"|[^ ]+/g ) || '', function ( word ) {
2879
<.*?>				return word.charAt(0) === '"' ?
2880
<.*?>					word.match( /^"(.*)"$/ )[1] :
2881
<.*?>					word;
2882
<.*?>			} );
2883
 
2884
<.*?>			search = '^(?=.*?'+a.join( ')(?=.*?' )+').*$';
2885
<.*?>		}
2886
 
2887
<.*?>		return new RegExp( search, caseInsensitive ? 'i' : '' );
2888
<.*?>	}
2889
 
2890
 
2891
<.*?>	/**
2892
<.*?>	 * scape a string such that it can be used in a regular expression
2893
<.*?>	 *  @param {string} sVal string to escape
2894
<.*?>	 *  @returns {string} escaped string
2895
<.*?>	 *  @memberof DataTable#oApi
2896
<.*?>	 */
2897
<.*?>	function _fnEscapeRegex ( sVal )
2898
<.*?>	{
2899
<.*?>		return sVal.replace( _re_escape_regex, '\\$1' );
2900
<.*?>	}
2901
 
2902
 
2903
 
2904
<.*?>	var __filter_div = $('<div>')[0];
2905
<.*?>	var __filter_div_textContent = __filter_div.textContent !== undefined;
2906
 
2907
<.*?>	// Update the filtering data for each row if needed (by invalidation or first run)
2908
<.*?>	function _fnFilterData ( settings )
2909
<.*?>	{
2910
<.*?>		var columns = settings.aoColumns;
2911
<.*?>		var column;
2912
<.*?>		var i, j, ien, jen, filterData, cellData, row;
2913
<.*?>		var fomatters = DataTable.ext.type.search;
2914
<.*?>		var wasInvalidated = false;
2915
 
2916
<.*?>		for ( i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
2917
<.*?>			row = settings.aoData[i];
2918
 
2919
<.*?>			if ( ! row._aFilterData ) {
2920
<.*?>				filterData = [];
2921
 
2922
<.*?>				for ( j=0, jen=columns.length ; j<jen ; j++ ) {
2923
<.*?>					column = columns[j];
2924
 
2925
<.*?>					if ( column.bSearchable ) {
2926
<.*?>						cellData = _fnGetCellData( settings, i, j, 'filter' );
2927
 
2928
<.*?>						cellData = fomatters[ column.sType ] ?
2929
<.*?>							fomatters[ column.sType ]( cellData ) :
2930
<.*?>							cellData !== null ?
2931
<.*?>								cellData :
2932
<.*?>								'';
2933
<.*?>					}
2934
<.*?>					else {
2935
<.*?>						cellData = '';
2936
<.*?>					}
2937
 
2938
<.*?>					// If it looks like there is an HTML entity in the string,
2939
<.*?>					// attempt to decode it so sorting works as expected. Note that
2940
<.*?>					// we could use a single line of jQuery to do this, but the DOM
2941
<.*?>					// method used here is much faster http://jsperf.com/html-decode
2942
<.*?>					if ( cellData.indexOf && cellData.indexOf('&') !== -1 ) {
2943
<.*?>						__filter_div.innerHTML = cellData;
2944
<.*?>						cellData = __filter_div_textContent ?
2945
<.*?>							__filter_div.textContent :
2946
<.*?>							__filter_div.innerText;
2947
<.*?>					}
2948
 
2949
<.*?>					if ( cellData.replace ) {
2950
<.*?>						cellData = cellData.replace(/[\r\n]/g, '');
2951
<.*?>					}
2952
 
2953
<.*?>					filterData.push( cellData );
2954
<.*?>				}
2955
 
2956
<.*?>				row._aFilterData = filterData;
2957
<.*?>				row._sFilterRow = filterData.join('  ');
2958
<.*?>				wasInvalidated = true;
2959
<.*?>			}
2960
<.*?>		}
2961
 
2962
<.*?>		return wasInvalidated;
2963
<.*?>	}
2964
 
2965
<.*?>	/**
2966
<.*?>	 * Generate the node required for the info display
2967
<.*?>	 *  @param {object} oSettings dataTables settings object
2968
<.*?>	 *  @returns {node} Information element
2969
<.*?>	 *  @memberof DataTable#oApi
2970
<.*?>	 */
2971
<.*?>	function _fnFeatureHtmlInfo ( settings )
2972
<.*?>	{
2973
<.*?>		var
2974
<.*?>			tid = settings.sTableId,
2975
<.*?>			nodes = settings.aanFeatures.i,
2976
<.*?>			n = $('<div/>', {
2977
<.*?>				'class': settings.oClasses.sInfo,
2978
<.*?>				'id': ! nodes ? tid+'_info' : null
2979
<.*?>			} );
2980
 
2981
<.*?>		if ( ! nodes ) {
2982
<.*?>			// Update display on each draw
2983
<.*?>			settings.aoDrawCallback.push( {
2984
<.*?>				"fn": _fnUpdateInfo,
2985
<.*?>				"sName": "information"
2986
<.*?>			} );
2987
 
2988
<.*?>			n
2989
<.*?>				.attr( 'role', 'status' )
2990
<.*?>				.attr( 'aria-live', 'polite' );
2991
 
2992
<.*?>			// Table is described by our info div
2993
<.*?>			$(settings.nTable).attr( 'aria-describedby', tid+'_info' );
2994
<.*?>		}
2995
 
2996
<.*?>		return n[0];
2997
<.*?>	}
2998
 
2999
 
3000
<.*?>	/**
3001
<.*?>	 * Update the information elements in the display
3002
<.*?>	 *  @param {object} settings dataTables settings object
3003
<.*?>	 *  @memberof DataTable#oApi
3004
<.*?>	 */
3005
<.*?>	function _fnUpdateInfo ( settings )
3006
<.*?>	{
3007
<.*?>		/* Show information about the table */
3008
<.*?>		var nodes = settings.aanFeatures.i;
3009
<.*?>		if ( nodes.length === 0 ) {
3010
<.*?>			return;
3011
<.*?>		}
3012
 
3013
<.*?>		var
3014
<.*?>			lang  = settings.oLanguage,
3015
<.*?>			start = settings._iDisplayStart+1,
3016
<.*?>			end   = settings.fnDisplayEnd(),
3017
<.*?>			max   = settings.fnRecordsTotal(),
3018
<.*?>			total = settings.fnRecordsDisplay(),
3019
<.*?>			out   = total ?
3020
<.*?>				lang.sInfo :
3021
<.*?>				lang.sInfoEmpty;
3022
 
3023
<.*?>		if ( total !== max ) {
3024
<.*?>			/* Record set after filtering */
3025
<.*?>			out += ' ' + lang.sInfoFiltered;
3026
<.*?>		}
3027
 
3028
<.*?>		// Convert the macros
3029
<.*?>		out += lang.sInfoPostFix;
3030
<.*?>		out = _fnInfoMacros( settings, out );
3031
 
3032
<.*?>		var callback = lang.fnInfoCallback;
3033
<.*?>		if ( callback !== null ) {
3034
<.*?>			out = callback.call( settings.oInstance,
3035
<.*?>				settings, start, end, max, total, out
3036
<.*?>			);
3037
<.*?>		}
3038
 
3039
<.*?>		$(nodes).html( out );
3040
<.*?>	}
3041
 
3042
 
3043
<.*?>	function _fnInfoMacros ( settings, str )
3044
<.*?>	{
3045
<.*?>		// When infinite scrolling, we are always starting at 1. _iDisplayStart is used only
3046
<.*?>		// internally
3047
<.*?>		var
3048
<.*?>			formatter  = settings.fnFormatNumber,
3049
<.*?>			start      = settings._iDisplayStart+1,
3050
<.*?>			len        = settings._iDisplayLength,
3051
<.*?>			vis        = settings.fnRecordsDisplay(),
3052
<.*?>			all        = len === -1;
3053
 
3054
<.*?>		return str.
3055
<.*?>			replace(/_START_/g, formatter.call( settings, start ) ).
3056
<.*?>			replace(/_END_/g,   formatter.call( settings, settings.fnDisplayEnd() ) ).
3057
<.*?>			replace(/_MAX_/g,   formatter.call( settings, settings.fnRecordsTotal() ) ).
3058
<.*?>			replace(/_TOTAL_/g, formatter.call( settings, vis ) ).
3059
<.*?>			replace(/_PAGE_/g,  formatter.call( settings, all ? 1 : Math.ceil( start / len ) ) ).
3060
<.*?>			replace(/_PAGES_/g, formatter.call( settings, all ? 1 : Math.ceil( vis / len ) ) );
3061
<.*?>	}
3062
 
3063
 
3064
 
3065
<.*?>	/**
3066
<.*?>	 * Draw the table for the first time, adding all required features
3067
<.*?>	 *  @param {object} settings dataTables settings object
3068
<.*?>	 *  @memberof DataTable#oApi
3069
<.*?>	 */
3070
<.*?>	function _fnInitialise ( settings )
3071
<.*?>	{
3072
<.*?>		var i, iLen, iAjaxStart=settings.iInitDisplayStart;
3073
<.*?>		var columns = settings.aoColumns, column;
3074
<.*?>		var features = settings.oFeatures;
3075
 
3076
<.*?>		/* Ensure that the table data is fully initialised */
3077
<.*?>		if ( ! settings.bInitialised ) {
3078
<.*?>			setTimeout( function(){ _fnInitialise( settings ); }, 200 );
3079
<.*?>			return;
3080
<.*?>		}
3081
 
3082
<.*?>		/* Show the display HTML options */
3083
<.*?>		_fnAddOptionsHtml( settings );
3084
 
3085
<.*?>		/* Build and draw the header / footer for the table */
3086
<.*?>		_fnBuildHead( settings );
3087
<.*?>		_fnDrawHead( settings, settings.aoHeader );
3088
<.*?>		_fnDrawHead( settings, settings.aoFooter );
3089
 
3090
<.*?>		/* Okay to show that something is going on now */
3091
<.*?>		_fnProcessingDisplay( settings, true );
3092
 
3093
<.*?>		/* Calculate sizes for columns */
3094
<.*?>		if ( features.bAutoWidth ) {
3095
<.*?>			_fnCalculateColumnWidths( settings );
3096
<.*?>		}
3097
 
3098
<.*?>		for ( i=0, iLen=columns.length ; i<iLen ; i++ ) {
3099
<.*?>			column = columns[i];
3100
 
3101
<.*?>			if ( column.sWidth ) {
3102
<.*?>				column.nTh.style.width = _fnStringToCss( column.sWidth );
3103
<.*?>			}
3104
<.*?>		}
3105
 
3106
<.*?>		// If there is default sorting required - let's do it. The sort function
3107
<.*?>		// will do the drawing for us. Otherwise we draw the table regardless of the
3108
<.*?>		// Ajax source - this allows the table to look initialised for Ajax sourcing
3109
<.*?>		// data (show 'loading' message possibly)
3110
<.*?>		_fnReDraw( settings );
3111
 
3112
<.*?>		// Server-side processing init complete is done by _fnAjaxUpdateDraw
3113
<.*?>		var dataSrc = _fnDataSource( settings );
3114
<.*?>		if ( dataSrc != 'ssp' ) {
3115
<.*?>			// if there is an ajax source load the data
3116
<.*?>			if ( dataSrc == 'ajax' ) {
3117
<.*?>				_fnBuildAjax( settings, [], function(json) {
3118
<.*?>					var aData = _fnAjaxDataSrc( settings, json );
3119
 
3120
<.*?>					// Got the data - add it to the table
3121
<.*?>					for ( i=0 ; i<aData.length ; i++ ) {
3122
<.*?>						_fnAddData( settings, aData[i] );
3123
<.*?>					}
3124
 
3125
<.*?>					// Reset the init display for cookie saving. We've already done
3126
<.*?>					// a filter, and therefore cleared it before. So we need to make
3127
<.*?>					// it appear 'fresh'
3128
<.*?>					settings.iInitDisplayStart = iAjaxStart;
3129
 
3130
<.*?>					_fnReDraw( settings );
3131
 
3132
<.*?>					_fnProcessingDisplay( settings, false );
3133
<.*?>					_fnInitComplete( settings, json );
3134
<.*?>				}, settings );
3135
<.*?>			}
3136
<.*?>			else {
3137
<.*?>				_fnProcessingDisplay( settings, false );
3138
<.*?>				_fnInitComplete( settings );
3139
<.*?>			}
3140
<.*?>		}
3141
<.*?>	}
3142
 
3143
 
3144
<.*?>	/**
3145
<.*?>	 * Draw the table for the first time, adding all required features
3146
<.*?>	 *  @param {object} oSettings dataTables settings object
3147
<.*?>	 *  @param {object} [json] JSON from the server that completed the table, if using Ajax source
3148
<.*?>	 *    with client-side processing (optional)
3149
<.*?>	 *  @memberof DataTable#oApi
3150
<.*?>	 */
3151
<.*?>	function _fnInitComplete ( settings, json )
3152
<.*?>	{
3153
<.*?>		settings._bInitComplete = true;
3154
 
3155
<.*?>		// On an Ajax load we now have data and therefore want to apply the column
3156
<.*?>		// sizing
3157
<.*?>		if ( json ) {
3158
<.*?>			_fnAdjustColumnSizing( settings );
3159
<.*?>		}
3160
 
3161
<.*?>		_fnCallbackFire( settings, 'aoInitComplete', 'init', [settings, json] );
3162
<.*?>	}
3163
 
3164
 
3165
<.*?>	function _fnLengthChange ( settings, val )
3166
<.*?>	{
3167
<.*?>		var len = parseInt( val, 10 );
3168
<.*?>		settings._iDisplayLength = len;
3169
 
3170
<.*?>		_fnLengthOverflow( settings );
3171
 
3172
<.*?>		// Fire length change event
3173
<.*?>		_fnCallbackFire( settings, null, 'length', [settings, len] );
3174
<.*?>	}
3175
 
3176
 
3177
<.*?>	/**
3178
<.*?>	 * Generate the node required for user display length changing
3179
<.*?>	 *  @param {object} settings dataTables settings object
3180
<.*?>	 *  @returns {node} Display length feature node
3181
<.*?>	 *  @memberof DataTable#oApi
3182
<.*?>	 */
3183
<.*?>	function _fnFeatureHtmlLength ( settings )
3184
<.*?>	{
3185
<.*?>		var
3186
<.*?>			classes  = settings.oClasses,
3187
<.*?>			tableId  = settings.sTableId,
3188
<.*?>			menu     = settings.aLengthMenu,
3189
<.*?>			d2       = $.isArray( menu[0] ),
3190
<.*?>			lengths  = d2 ? menu[0] : menu,
3191
<.*?>			language = d2 ? menu[1] : menu;
3192
 
3193
<.*?>		var select = $('<select/>', {
3194
<.*?>			'name':          tableId+'_length',
3195
<.*?>			'aria-controls': tableId,
3196
<.*?>			'class':         classes.sLengthSelect
3197
<.*?>		} );
3198
 
3199
<.*?>		for ( var i=0, ien=lengths.length ; i<ien ; i++ ) {
3200
<.*?>			select[0][ i ] = new Option( language[i], lengths[i] );
3201
<.*?>		}
3202
 
3203
<.*?>		var div = $('<div><label/></div>').addClass( classes.sLength );
3204
<.*?>		if ( ! settings.aanFeatures.l ) {
3205
<.*?>			div[0].id = tableId+'_length';
3206
<.*?>		}
3207
 
3208
<.*?>		var a = settings.oLanguage.sLengthMenu.split(/(_MENU_)/);
3209
<.*?>		div.children().append( a.length > 1 ?
3210
<.*?>			[ a[0], select, a[2] ] :
3211
<.*?>			a[0]
3212
<.*?>		);
3213
 
3214
<.*?>		// Can't use `select` variable, as user might provide their own select menu
3215
<.*?>		$('select', div)
3216
<.*?>			.val( settings._iDisplayLength )
3217
<.*?>			.bind( 'change.DT', function(e) {
3218
<.*?>				_fnLengthChange( settings, $(this).val() );
3219
<.*?>				_fnDraw( settings );
3220
<.*?>			} );
3221
 
3222
<.*?>		// Update node value whenever anything changes the table's length
3223
<.*?>		$(settings.nTable).bind( 'length.dt.DT', function (e, s, len) {
3224
<.*?>			$('select', div).val( len );
3225
<.*?>		} );
3226
 
3227
<.*?>		return div[0];
3228
<.*?>	}
3229
 
3230
 
3231
 
3232
<.*?>	/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3233
<.*?>	 * Note that most of the paging logic is done in
3234
<.*?>	 * DataTable.ext.pager
3235
<.*?>	 */
3236
 
3237
<.*?>	/**
3238
<.*?>	 * Generate the node required for default pagination
3239
<.*?>	 *  @param {object} oSettings dataTables settings object
3240
<.*?>	 *  @returns {node} Pagination feature node
3241
<.*?>	 *  @memberof DataTable#oApi
3242
<.*?>	 */
3243
<.*?>	function _fnFeatureHtmlPaginate ( settings )
3244
<.*?>	{
3245
<.*?>		var
3246
<.*?>			type   = settings.sPaginationType,
3247
<.*?>			plugin = DataTable.ext.pager[ type ],
3248
<.*?>			modern = typeof plugin === 'function',
3249
<.*?>			redraw = function( settings ) {
3250
<.*?>				_fnDraw( settings );
3251
<.*?>			},
3252
<.*?>			node = $('<div/>').addClass( settings.oClasses.sPaging + type )[0],
3253
<.*?>			features = settings.aanFeatures;
3254
 
3255
<.*?>		if ( ! modern ) {
3256
<.*?>			plugin.fnInit( settings, node, redraw );
3257
<.*?>		}
3258
 
3259
<.*?>		/* Add a draw callback for the pagination on first instance, to update the paging display */
3260
<.*?>		if ( ! features.p )
3261
<.*?>		{
3262
<.*?>			node.id = settings.sTableId+'_paginate';
3263
 
3264
<.*?>			settings.aoDrawCallback.push( {
3265
<.*?>				"fn": function( settings ) {
3266
<.*?>					if ( modern ) {
3267
<.*?>						var
3268
<.*?>							start      = settings._iDisplayStart,
3269
<.*?>							len        = settings._iDisplayLength,
3270
<.*?>							visRecords = settings.fnRecordsDisplay(),
3271
<.*?>							all        = len === -1,
3272
<.*?>							page = all ? 0 : Math.ceil( start / len ),
3273
<.*?>							pages = all ? 1 : Math.ceil( visRecords / len ),
3274
<.*?>							buttons = plugin(page, pages),
3275
<.*?>							i, ien;
3276
 
3277
<.*?>						for ( i=0, ien=features.p.length ; i<ien ; i++ ) {
3278
<.*?>							_fnRenderer( settings, 'pageButton' )(
3279
<.*?>								settings, features.p[i], i, buttons, page, pages
3280
<.*?>							);
3281
<.*?>						}
3282
<.*?>					}
3283
<.*?>					else {
3284
<.*?>						plugin.fnUpdate( settings, redraw );
3285
<.*?>					}
3286
<.*?>				},
3287
<.*?>				"sName": "pagination"
3288
<.*?>			} );
3289
<.*?>		}
3290
 
3291
<.*?>		return node;
3292
<.*?>	}
3293
 
3294
 
3295
<.*?>	/**
3296
<.*?>	 * Alter the display settings to change the page
3297
<.*?>	 *  @param {object} settings DataTables settings object
3298
<.*?>	 *  @param {string|int} action Paging action to take: "first", "previous",
3299
<.*?>	 *    "next" or "last" or page number to jump to (integer)
3300
<.*?>	 *  @param [bool] redraw Automatically draw the update or not
3301
<.*?>	 *  @returns {bool} true page has changed, false - no change
3302
<.*?>	 *  @memberof DataTable#oApi
3303
<.*?>	 */
3304
<.*?>	function _fnPageChange ( settings, action, redraw )
3305
<.*?>	{
3306
<.*?>		var
3307
<.*?>			start     = settings._iDisplayStart,
3308
<.*?>			len       = settings._iDisplayLength,
3309
<.*?>			records   = settings.fnRecordsDisplay();
3310
 
3311
<.*?>		if ( records === 0 || len === -1 )
3312
<.*?>		{
3313
<.*?>			start = 0;
3314
<.*?>		}
3315
<.*?>		else if ( typeof action === "number" )
3316
<.*?>		{
3317
<.*?>			start = action * len;
3318
 
3319
<.*?>			if ( start > records )
3320
<.*?>			{
3321
<.*?>				start = 0;
3322
<.*?>			}
3323
<.*?>		}
3324
<.*?>		else if ( action == "first" )
3325
<.*?>		{
3326
<.*?>			start = 0;
3327
<.*?>		}
3328
<.*?>		else if ( action == "previous" )
3329
<.*?>		{
3330
<.*?>			start = len >= 0 ?
3331
<.*?>				start - len :
3332
<.*?>				0;
3333
 
3334
<.*?>			if ( start < 0 )
3335
<.*?>			{
3336
<.*?>			  start = 0;
3337
<.*?>			}
3338
<.*?>		}
3339
<.*?>		else if ( action == "next" )
3340
<.*?>		{
3341
<.*?>			if ( start + len < records )
3342
<.*?>			{
3343
<.*?>				start += len;
3344
<.*?>			}
3345
<.*?>		}
3346
<.*?>		else if ( action == "last" )
3347
<.*?>		{
3348
<.*?>			start = Math.floor( (records-1) / len) * len;
3349
<.*?>		}
3350
<.*?>		else
3351
<.*?>		{
3352
<.*?>			_fnLog( settings, 0, "Unknown paging action: "+action, 5 );
3353
<.*?>		}
3354
 
3355
<.*?>		var changed = settings._iDisplayStart !== start;
3356
<.*?>		settings._iDisplayStart = start;
3357
 
3358
<.*?>		if ( changed ) {
3359
<.*?>			_fnCallbackFire( settings, null, 'page', [settings] );
3360
 
3361
<.*?>			if ( redraw ) {
3362
<.*?>				_fnDraw( settings );
3363
<.*?>			}
3364
<.*?>		}
3365
 
3366
<.*?>		return changed;
3367
<.*?>	}
3368
 
3369
 
3370
 
3371
<.*?>	/**
3372
<.*?>	 * Generate the node required for the processing node
3373
<.*?>	 *  @param {object} settings dataTables settings object
3374
<.*?>	 *  @returns {node} Processing element
3375
<.*?>	 *  @memberof DataTable#oApi
3376
<.*?>	 */
3377
<.*?>	function _fnFeatureHtmlProcessing ( settings )
3378
<.*?>	{
3379
<.*?>		return $('
>', {
3380
<.*?>
'id': ! settings.aanFeatures.r ? settings.sTableId+'_processing' : null,
3381
<.*?>
'class': settings.oClasses.sProcessing
3382
<.*?>
} )
3383
<.*?>
.html( settings.oLanguage.sProcessing )
3384
<.*?>
.insertBefore( settings.nTable )[0];
3385
<.*?>
}
3386
 
3387
 
3388
<.*?>
/**
3389
<.*?>
* Display or hide the processing indicator
3390
<.*?>
* @param {object} settings dataTables settings object
3391
<.*?>
* @param {bool} show Show the processing indicator (true) or not (false)
3392
<.*?>
* @memberof DataTable#oApi
3393
<.*?>
*/
3394
<.*?>
function _fnProcessingDisplay ( settings, show )
3395
<.*?>
{
3396
<.*?>
if ( settings.oFeatures.bProcessing ) {
3397
<.*?>
$(settings.aanFeatures.r).css( 'display', show ? 'block' : 'none' );
3398
<.*?>
}
3399
 
3400
<.*?>
_fnCallbackFire( settings, null, 'processing', [settings, show] );
3401
<.*?>
}
3402
 
3403
<.*?>
/**
3404
<.*?>
* Add any control elements for the table - specifically scrolling
3405
<.*?>
* @param {object} settings dataTables settings object
3406
<.*?>
* @returns {node} Node to add to the DOM
3407
<.*?>
* @memberof DataTable#oApi
3408
<.*?>
*/
3409
<.*?>
function _fnFeatureHtmlTable ( settings )
3410
<.*?>
{
3411
<.*?>
var table = $(settings.nTable);
3412
 
3413
<.*?>
// Add the ARIA grid role to the table
3414
<.*?>
table.attr( 'role', 'grid' );
3415
 
3416
<.*?>
// Scrolling from here on in
3417
<.*?>
var scroll = settings.oScroll;
3418
 
3419
<.*?>
if ( scroll.sX === '' && scroll.sY === '' ) {
3420
<.*?>
return settings.nTable;
3421
<.*?>
}
3422
 
3423
<.*?>
var scrollX = scroll.sX;
3424
<.*?>
var scrollY = scroll.sY;
3425
<.*?>
var classes = settings.oClasses;
3426
<.*?>
var caption = table.children('caption');
3427
<.*?>
var captionSide = caption.length ? caption[0]._captionSide : null;
3428
<.*?>
var headerClone = $( table[0].cloneNode(false) );
3429
<.*?>
var footerClone = $( table[0].cloneNode(false) );
3430
<.*?>
var footer = table.children('tfoot');
3431
<.*?>
var _div = '<div/>';
3432
<.*?>
var size = function ( s ) {
3433
<.*?>
return !s ? null : _fnStringToCss( s );
3434
<.*?>
};
3435
 
3436
<.*?>
// This is fairly messy, but with x scrolling enabled, if the table has a
3437
<.*?>
// width attribute, regardless of any width applied using the column width
3438
<.*?>
// options, the browser will shrink or grow the table as needed to fit into
3439
<.*?>
// that 100%. That would make the width options useless. So we remove it.
3440
<.*?>
// This is okay, under the assumption that width:100% is applied to the
3441
<.*?>
// table in CSS (it is in the default stylesheet) which will set the table
3442
<.*?>
// width as appropriate (the attribute and css behave differently...)
3443
<.*?>
if ( scroll.sX && table.attr('width') === '100%' ) {
3444
<.*?>
table.removeAttr('width');
3445
<.*?>
}
3446
 
3447
<.*?>
if ( ! footer.length ) {
3448
<.*?>
footer = null;
3449
<.*?>
}
3450
 
3451
<.*?>
/*
3452
<.*?>
* The HTML structure that we want to generate in this function is:
3453
<.*?>
* div - scroller
3454
<.*?>
* div - scroll head
3455
<.*?>
* div - scroll head inner
3456
<.*?>
* table - scroll head table
3457
<.*?>
* thead - thead
3458
<.*?>
* div - scroll body
3459
<.*?>
* table - table (master table)
3460
<.*?>
* thead - thead clone for sizing
3461
<.*?>
* tbody - tbody
3462
<.*?>
* div - scroll foot
3463
<.*?>
* div - scroll foot inner
3464
<.*?>
* table - scroll foot table
3465
<.*?>
* tfoot - tfoot
3466
<.*?>
*/
3467
<.*?>
var scroller = $( _div, { 'class': classes.sScrollWrapper } )
3468
<.*?>
.append(
3469
<.*?>
$(_div, { 'class': classes.sScrollHead } )
3470
<.*?>
.css( {
3471
<.*?>
overflow: 'hidden',
3472
<.*?>
position: 'relative',
3473
<.*?>
border: 0,
3474
<.*?>
width: scrollX ? size(scrollX) : '100%'
3475
<.*?>
} )
3476
<.*?>
.append(
3477
<.*?>
$(_div, { 'class': classes.sScrollHeadInner } )
3478
<.*?>
.css( {
3479
<.*?>
'box-sizing': 'content-box',
3480
<.*?>
width: scroll.sXInner || '100%'
3481
<.*?>
} )
3482
<.*?>
.append(
3483
<.*?>
headerClone
3484
<.*?>
.removeAttr('id')
3485
<.*?>
.css( 'margin-left', 0 )
3486
<.*?>
.append(
3487
<.*?>
table.children('thead')
3488
<.*?>
)
3489
<.*?>
)
3490
<.*?>
)
3491
<.*?>
.append( captionSide === 'top' ? caption : null )
3492
<.*?>
)
3493
<.*?>
.append(
3494
<.*?>
$(_div, { 'class': classes.sScrollBody } )
3495
<.*?>
.css( {
3496
<.*?>
overflow: 'auto',
3497
<.*?>
height: size( scrollY ),
3498
<.*?>
width: size( scrollX )
3499
<.*?>
} )
3500
<.*?>
.append( table )
3501
<.*?>
);
3502
 
3503
<.*?>
if ( footer ) {
3504
<.*?>
scroller.append(
3505
<.*?>
$(_div, { 'class': classes.sScrollFoot } )
3506
<.*?>
.css( {
3507
<.*?>
overflow: 'hidden',
3508
<.*?>
border: 0,
3509
<.*?>
width: scrollX ? size(scrollX) : '100%'
3510
<.*?>
} )
3511
<.*?>
.append(
3512
<.*?>
$(_div, { 'class': classes.sScrollFootInner } )
3513
<.*?>
.append(
3514
<.*?>
footerClone
3515
<.*?>
.removeAttr('id')
3516
<.*?>
.css( 'margin-left', 0 )
3517
<.*?>
.append(
3518
<.*?>
table.children('tfoot')
3519
<.*?>
)
3520
<.*?>
)
3521
<.*?>
)
3522
<.*?>
.append( captionSide === 'bottom' ? caption : null )
3523
<.*?>
);
3524
<.*?>
}
3525
 
3526
<.*?>
var children = scroller.children();
3527
<.*?>
var scrollHead = children[0];
3528
<.*?>
var scrollBody = children[1];
3529
<.*?>
var scrollFoot = footer ? children[2] : null;
3530
 
3531
<.*?>
// When the body is scrolled, then we also want to scroll the headers
3532
<.*?>
if ( scrollX ) {
3533
<.*?>
$(scrollBody).scroll( function (e) {
3534
<.*?>
var scrollLeft = this.scrollLeft;
3535
 
3536
<.*?>
scrollHead.scrollLeft = scrollLeft;
3537
 
3538
<.*?>
if ( footer ) {
3539
<.*?>
scrollFoot.scrollLeft = scrollLeft;
3540
<.*?>
}
3541
<.*?>
} );
3542
<.*?>
}
3543
 
3544
<.*?>
settings.nScrollHead = scrollHead;
3545
<.*?>
settings.nScrollBody = scrollBody;
3546
<.*?>
settings.nScrollFoot = scrollFoot;
3547
 
3548
<.*?>
// On redraw - align columns
3549
<.*?>
settings.aoDrawCallback.push( {
3550
<.*?>
"fn": _fnScrollDraw,
3551
<.*?>
"sName": "scrolling"
3552
<.*?>
} );
3553
 
3554
<.*?>
return scroller[0];
3555
<.*?>
}
3556
 
3557
 
3558
 
3559
<.*?>
/**
3560
<.*?>
* Update the header, footer and body tables for resizing - i.e. column
3561
<.*?>
* alignment.
3562
<.*?>
*
3563
<.*?>
* Welcome to the most horrible function DataTables. The process that this
3564
<.*?>
* function follows is basically:
3565
<.*?>
* 1. Re-create the table inside the scrolling div
3566
<.*?>
* 2. Take live measurements from the DOM
3567
<.*?>
* 3. Apply the measurements to align the columns
3568
<.*?>
* 4. Clean up
3569
<.*?>
*
3570
<.*?>
* @param {object} settings dataTables settings object
3571
<.*?>
* @memberof DataTable#oApi
3572
<.*?>
*/
3573
<.*?>
function _fnScrollDraw ( settings )
3574
<.*?>
{
3575
<.*?>
// Given that this is such a monster function, a lot of variables are use
3576
<.*?>
// to try and keep the minimised size as small as possible
3577
<.*?>
var
3578
<.*?>
scroll = settings.oScroll,
3579
<.*?>
scrollX = scroll.sX,
3580
<.*?>
scrollXInner = scroll.sXInner,
3581
<.*?>
scrollY = scroll.sY,
3582
<.*?>
barWidth = scroll.iBarWidth,
3583
<.*?>
divHeader = $(settings.nScrollHead),
3584
<.*?>
divHeaderStyle = divHeader[0].style,
3585
<.*?>
divHeaderInner = divHeader.children('div'),
3586
<.*?>
divHeaderInnerStyle = divHeaderInner[0].style,
3587
<.*?>
divHeaderTable = divHeaderInner.children('table'),
3588
<.*?>
divBodyEl = settings.nScrollBody,
3589
<.*?>
divBody = $(divBodyEl),
3590
<.*?>
divBodyStyle = divBodyEl.style,
3591
<.*?>
divFooter = $(settings.nScrollFoot),
3592
<.*?>
divFooterInner = divFooter.children('div'),
3593
<.*?>
divFooterTable = divFooterInner.children('table'),
3594
<.*?>
header = $(settings.nTHead),
3595
<.*?>
table = $(settings.nTable),
3596
<.*?>
tableEl = table[0],
3597
<.*?>
tableStyle = tableEl.style,
3598
<.*?>
footer = settings.nTFoot ? $(settings.nTFoot) : null,
3599
<.*?>
browser = settings.oBrowser,
3600
<.*?>
ie67 = browser.bScrollOversize,
3601
<.*?>
headerTrgEls, footerTrgEls,
3602
<.*?>
headerSrcEls, footerSrcEls,
3603
<.*?>
headerCopy, footerCopy,
3604
<.*?>
headerWidths=[], footerWidths=[],
3605
<.*?>
headerContent=[],
3606
<.*?>
idx, correction, sanityWidth,
3607
<.*?>
zeroOut = function(nSizer) {
3608
<.*?>
var style = nSizer.style;
3609
<.*?>
style.paddingTop = "0";
3610
<.*?>
style.paddingBottom = "0";
3611
<.*?>
style.borderTopWidth = "0";
3612
<.*?>
style.borderBottomWidth = "0";
3613
<.*?>
style.height = 0;
3614
<.*?>
};
3615
 
3616
<.*?>
/*
3617
<.*?>
* 1. Re-create the table inside the scrolling div
3618
<.*?>
*/
3619
 
3620
<.*?>
// Remove the old minimised thead and tfoot elements in the inner table
3621
<.*?>
table.children('thead, tfoot').remove();
3622
 
3623
<.*?>
// Clone the current header and footer elements and then place it into the inner table
3624
<.*?>
headerCopy = header.clone().prependTo( table );
3625
<.*?>
headerTrgEls = header.find('tr'); // original header is in its own table
3626
<.*?>
headerSrcEls = headerCopy.find('tr');
3627
<.*?>
headerCopy.find('th, td').removeAttr('tabindex');
3628
 
3629
<.*?>
if ( footer ) {
3630
<.*?>
footerCopy = footer.clone().prependTo( table );
3631
<.*?>
footerTrgEls = footer.find('tr'); // the original tfoot is in its own table and must be sized
3632
<.*?>
footerSrcEls = footerCopy.find('tr');
3633
<.*?>
}
3634
 
3635
 
3636
<.*?>
/*
3637
<.*?>
* 2. Take live measurements from the DOM - do not alter the DOM itself!
3638
<.*?>
*/
3639
 
3640
<.*?>
// Remove old sizing and apply the calculated column widths
3641
<.*?>
// Get the unique column headers in the newly created (cloned) header. We want to apply the
3642
<.*?>
// calculated sizes to this header
3643
<.*?>
if ( ! scrollX )
3644
<.*?>
{
3645
<.*?>
divBodyStyle.width = '100%';
3646
<.*?>
divHeader[0].style.width = '100%';
3647
<.*?>
}
3648
 
3649
<.*?>
$.each( _fnGetUniqueThs( settings, headerCopy ), function ( i, el ) {
3650
<.*?>
idx = _fnVisibleToColumnIndex( settings, i );
3651
<.*?>
el.style.width = settings.aoColumns[idx].sWidth;
3652
<.*?>
} );
3653
 
3654
<.*?>
if ( footer ) {
3655
<.*?>
_fnApplyToChildren( function(n) {
3656
<.*?>
n.style.width = "";
3657
<.*?>
}, footerSrcEls );
3658
<.*?>
}
3659
 
3660
<.*?>
// If scroll collapse is enabled, when we put the headers back into the body for sizing, we
3661
<.*?>
// will end up forcing the scrollbar to appear, making our measurements wrong for when we
3662
<.*?>
// then hide it (end of this function), so add the header height to the body scroller.
3663
<.*?>
if ( scroll.bCollapse && scrollY !== "" ) {
3664
<.*?>
divBodyStyle.height = (divBody[0].offsetHeight + header[0].offsetHeight)+"px";
3665
<.*?>
}
3666
 
3667
<.*?>
// Size the table as a whole
3668
<.*?>
sanityWidth = table.outerWidth();
3669
<.*?>
if ( scrollX === "" ) {
3670
<.*?>
// No x scrolling
3671
<.*?>
tableStyle.width = "100%";
3672
 
3673
<.*?>
// IE7 will make the width of the table when 100% include the scrollbar
3674
<.*?>
// - which is shouldn't. When there is a scrollbar we need to take this
3675
<.*?>
// into account.
3676
<.*?>
if ( ie67 && (table.find('tbody').height() > divBodyEl.offsetHeight ||
3677
<.*?>
divBody.css('overflow-y') == "scroll")
3678
<.*?>
) {
3679
<.*?>
tableStyle.width = _fnStringToCss( table.outerWidth() - barWidth);
3680
<.*?>
}
3681
<.*?>
}
3682
<.*?>
else
3683
<.*?>
{
3684
<.*?>
// x scrolling
3685
<.*?>
if ( scrollXInner !== "" ) {
3686
<.*?>
// x scroll inner has been given - use it
3687
<.*?>
tableStyle.width = _fnStringToCss(scrollXInner);
3688
<.*?>
}
3689
<.*?>
else if ( sanityWidth == divBody.width() && divBody.height() < table.height() ) {
3690
<.*?>
< table.height() ) { // There is y-scrolling - try to take account of the y scroll bar
3691
<.*?>
< table.height() ) { tableStyle.width = _fnStringToCss( sanityWidth-barWidth );
3692
<.*?>
< table.height() ) { if ( table.outerWidth() > sanityWidth-barWidth ) {
3693
<.*?>
< table.height() ) { // Not possible to take account of it
3694
<.*?>
< table.height() ) { tableStyle.width = _fnStringToCss( sanityWidth );
3695
<.*?>
< table.height() ) { }
3696
<.*?>
< table.height() ) { }
3697
<.*?>
< table.height() ) { else {
3698
<.*?>
< table.height() ) { // When all else fails
3699
<.*?>
< table.height() ) { tableStyle.width = _fnStringToCss( sanityWidth );
3700
<.*?>
< table.height() ) { }
3701
<.*?>
< table.height() ) { }
3702
 
3703
<.*?>
< table.height() ) { // Recalculate the sanity width - now that we've applied the required width,
3704
<.*?>
< table.height() ) { // before it was a temporary variable. This is required because the column
3705
<.*?>
< table.height() ) { // width calculation is done before this table DOM is created.
3706
<.*?>
< table.height() ) { sanityWidth = table.outerWidth();
3707
 
3708
<.*?>
< table.height() ) { // Hidden header should have zero height, so remove padding and borders. Then
3709
<.*?>
< table.height() ) { // set the width based on the real headers
3710
 
3711
<.*?>
< table.height() ) { // Apply all styles in one pass
3712
<.*?>
< table.height() ) { _fnApplyToChildren( zeroOut, headerSrcEls );
3713
 
3714
<.*?>
< table.height() ) { // Read all widths in next pass
3715
<.*?>
< table.height() ) { _fnApplyToChildren( function(nSizer) {
3716
<.*?>
< table.height() ) { headerContent.push( nSizer.innerHTML );
3717
<.*?>
< table.height() ) { headerWidths.push( _fnStringToCss( $(nSizer).css('width') ) );
3718
<.*?>
< table.height() ) { }, headerSrcEls );
3719
 
3720
<.*?>
< table.height() ) { // Apply all widths in final pass
3721
<.*?>
< table.height() ) { _fnApplyToChildren( function(nToSize, i) {
3722
<.*?>
< table.height() ) { nToSize.style.width = headerWidths[i];
3723
<.*?>
< table.height() ) { }, headerTrgEls );
3724
 
3725
<.*?>
< table.height() ) { $(headerSrcEls).height(0);
3726
 
3727
<.*?>
< table.height() ) { /* Same again with the footer if we have one */
3728
<.*?>
< table.height() ) { if ( footer )
3729
<.*?>
< table.height() ) { {
3730
<.*?>
< table.height() ) { _fnApplyToChildren( zeroOut, footerSrcEls );
3731
 
3732
<.*?>
< table.height() ) { _fnApplyToChildren( function(nSizer) {
3733
<.*?>
< table.height() ) { footerWidths.push( _fnStringToCss( $(nSizer).css('width') ) );
3734
<.*?>
< table.height() ) { }, footerSrcEls );
3735
 
3736
<.*?>
< table.height() ) { _fnApplyToChildren( function(nToSize, i) {
3737
<.*?>
< table.height() ) { nToSize.style.width = footerWidths[i];
3738
<.*?>
< table.height() ) { }, footerTrgEls );
3739
 
3740
<.*?>
< table.height() ) { $(footerSrcEls).height(0);
3741
<.*?>
< table.height() ) { }
3742
 
3743
 
3744
<.*?>
< table.height() ) { /*
3745
<.*?>
< table.height() ) { * 3. Apply the measurements
3746
<.*?>
< table.height() ) { */
3747
 
3748
<.*?>
< table.height() ) { // "Hide" the header and footer that we used for the sizing. We need to keep
3749
<.*?>
< table.height() ) { // the content of the cell so that the width applied to the header and body
3750
<.*?>
< table.height() ) { // both match, but we want to hide it completely. We want to also fix their
3751
<.*?>
< table.height() ) { // width to what they currently are
3752
<.*?>
< table.height() ) { _fnApplyToChildren( function(nSizer, i) {
3753
<.*?>
< table.height() ) { nSizer.innerHTML = '
'+headerContent[i]+'div>';
3754
<.*?>
< table.height() ) {
nSizer.style.width = headerWidths[i];
3755
<.*?>
< table.height() ) {
}, headerSrcEls );
3756
 
3757
<.*?>
< table.height() ) {
if ( footer )
3758
<.*?>
< table.height() ) {
{
3759
<.*?>
< table.height() ) {
_fnApplyToChildren( function(nSizer, i) {
3760
<.*?>
< table.height() ) {
nSizer.innerHTML = "";
3761
<.*?>
< table.height() ) {
nSizer.style.width = footerWidths[i];
3762
<.*?>
< table.height() ) {
}, footerSrcEls );
3763
<.*?>
< table.height() ) {
}
3764
 
3765
<.*?>
< table.height() ) {
// Sanity check that the table is of a sensible width. If not then we are going to get
3766
<.*?>
< table.height() ) {
// misalignment - try to prevent this by not allowing the table to shrink below its min width
3767
<.*?>
< table.height() ) {
if ( table.outerWidth() < sanityWidth )
3768
<.*?>
< table.height() ) {
{
3769
<.*?>
< table.height() ) {
// The min width depends upon if we have a vertical scrollbar visible or not */
3770
<.*?>
< table.height() ) {
correction = ((divBodyEl.scrollHeight > divBodyEl.offsetHeight ||
3771
<.*?>
< table.height() ) {
divBody.css('overflow-y') == "scroll")) ?
3772
<.*?>
< table.height() ) {
sanityWidth+barWidth :
3773
<.*?>
< table.height() ) {
sanityWidth;
3774
 
3775
<.*?>
< table.height() ) {
// IE6/7 are a law unto themselves...
3776
<.*?>
< table.height() ) {
if ( ie67 && (divBodyEl.scrollHeight >
3777
<.*?>
< table.height() ) {
divBodyEl.offsetHeight || divBody.css('overflow-y') == "scroll")
3778
<.*?>
< table.height() ) {
) {
3779
<.*?>
< table.height() ) {
tableStyle.width = _fnStringToCss( correction-barWidth );
3780
<.*?>
< table.height() ) {
}
3781
 
3782
<.*?>
< table.height() ) {
// And give the user a warning that we've stopped the table getting too small
3783
<.*?>
< table.height() ) {
if ( scrollX === "" || scrollXInner !== "" ) {
3784
<.*?>
< table.height() ) {
_fnLog( settings, 1, 'Possible column misalignment', 6 );
3785
<.*?>
< table.height() ) {
}
3786
<.*?>
< table.height() ) {
}
3787
<.*?>
< table.height() ) {
else
3788
<.*?>
< table.height() ) {
{
3789
<.*?>
< table.height() ) {
correction = '100%';
3790
<.*?>
< table.height() ) {
}
3791
 
3792
<.*?>
< table.height() ) {
// Apply to the container elements
3793
<.*?>
< table.height() ) {
divBodyStyle.width = _fnStringToCss( correction );
3794
<.*?>
< table.height() ) {
divHeaderStyle.width = _fnStringToCss( correction );
3795
 
3796
<.*?>
< table.height() ) {
if ( footer ) {
3797
<.*?>
< table.height() ) {
settings.nScrollFoot.style.width = _fnStringToCss( correction );
3798
<.*?>
< table.height() ) {
}
3799
 
3800
 
3801
<.*?>
< table.height() ) {
/*
3802
<.*?>
< table.height() ) {
* 4. Clean up
3803
<.*?>
< table.height() ) {
*/
3804
<.*?>
< table.height() ) {
if ( ! scrollY ) {
3805
<.*?>
< table.height() ) {
/* IE7< puts a vertical scrollbar in place (when it shouldn't be) due to subtracting
3806
<.*?>
< table.height() ) {
* the scrollbar height from the visible display, rather than adding it on. We need to
3807
<.*?>
< table.height() ) {
* set the height in order to sort this. Don't want to do it in any other browsers.
3808
<.*?>
< table.height() ) {
*/
3809
<.*?>
< table.height() ) {
if ( ie67 ) {
3810
<.*?>
< table.height() ) {
divBodyStyle.height = _fnStringToCss( tableEl.offsetHeight+barWidth );
3811
<.*?>
< table.height() ) {
}
3812
<.*?>
< table.height() ) {
}
3813
 
3814
<.*?>
< table.height() ) {
if ( scrollY && scroll.bCollapse ) {
3815
<.*?>
< table.height() ) {
divBodyStyle.height = _fnStringToCss( scrollY );
3816
 
3817
<.*?>
< table.height() ) {
var iExtra = (scrollX && tableEl.offsetWidth > divBodyEl.offsetWidth) ?
3818
<.*?>
< table.height() ) {
barWidth :
3819
<.*?>
< table.height() ) {
0;
3820
 
3821
<.*?>
< table.height() ) {
if ( tableEl.offsetHeight < divBodyEl.offsetHeight ) {
3822
<.*?>
< table.height() ) {
divBodyStyle.height = _fnStringToCss( tableEl.offsetHeight+iExtra );
3823
<.*?>
< table.height() ) {
}
3824
<.*?>
< table.height() ) {
}
3825
 
3826
<.*?>
< table.height() ) {
/* Finally set the width's of the header and footer tables */
3827
<.*?>
< table.height() ) {
var iOuterWidth = table.outerWidth();
3828
<.*?>
< table.height() ) {
divHeaderTable[0].style.width = _fnStringToCss( iOuterWidth );
3829
<.*?>
< table.height() ) {
divHeaderInnerStyle.width = _fnStringToCss( iOuterWidth );
3830
 
3831
<.*?>
< table.height() ) {
// Figure out if there are scrollbar present - if so then we need a the header and footer to
3832
<.*?>
< table.height() ) {
// provide a bit more space to allow "overflow" scrolling (i.e. past the scrollbar)
3833
<.*?>
< table.height() ) {
var bScrolling = table.height() > divBodyEl.clientHeight || divBody.css('overflow-y') == "scroll";
3834
<.*?>
< table.height() ) {
var padding = 'padding' + (browser.bScrollbarLeft ? 'Left' : 'Right' );
3835
<.*?>
< table.height() ) {
divHeaderInnerStyle[ padding ] = bScrolling ? barWidth+"px" : "0px";
3836
 
3837
<.*?>
< table.height() ) {
if ( footer ) {
3838
<.*?>
< table.height() ) {
divFooterTable[0].style.width = _fnStringToCss( iOuterWidth );
3839
<.*?>
< table.height() ) {
divFooterInner[0].style.width = _fnStringToCss( iOuterWidth );
3840
<.*?>
< table.height() ) {
divFooterInner[0].style[padding] = bScrolling ? barWidth+"px" : "0px";
3841
<.*?>
< table.height() ) {
}
3842
 
3843
<.*?>
< table.height() ) {
/* Adjust the position of the header in case we loose the y-scrollbar */
3844
<.*?>
< table.height() ) {
divBody.scroll();
3845
 
3846
<.*?>
< table.height() ) {
/* If sorting or filtering has occurred, jump the scrolling back to the top */
3847
<.*?>
< table.height() ) {
if ( settings.bSorted || settings.bFiltered ) {
3848
<.*?>
< table.height() ) {
divBodyEl.scrollTop = 0;
3849
<.*?>
< table.height() ) {
}
3850
<.*?>
< table.height() ) {
}
3851
 
3852
 
3853
 
3854
<.*?>
< table.height() ) {
/**
3855
<.*?>
< table.height() ) {
* Apply a given function to the display child nodes of an element array (typically
3856
<.*?>
< table.height() ) {
* TD children of TR rows
3857
<.*?>
< table.height() ) {
* @param {function} fn Method to apply to the objects
3858
<.*?>
< table.height() ) {
* @param array {nodes} an1 List of elements to look through for display children
3859
<.*?>
< table.height() ) {
* @param array {nodes} an2 Another list (identical structure to the first) - optional
3860
<.*?>
< table.height() ) {
* @memberof DataTable#oApi
3861
<.*?>
< table.height() ) {
*/
3862
<.*?>
< table.height() ) {
function _fnApplyToChildren( fn, an1, an2 )
3863
<.*?>
< table.height() ) {
{
3864
<.*?>
< table.height() ) {
var index=0, i=0, iLen=an1.length;
3865
<.*?>
< table.height() ) {
var nNode1, nNode2;
3866
 
3867
<.*?>
< table.height() ) {
while ( i < iLen ) {
3868
<.*?>
< table.height() ) {
nNode1 = an1[i].firstChild;
3869
<.*?>
< table.height() ) {
nNode2 = an2 ? an2[i].firstChild : null;
3870
 
3871
<.*?>
< table.height() ) {
while ( nNode1 ) {
3872
<.*?>
< table.height() ) {
if ( nNode1.nodeType === 1 ) {
3873
<.*?>
< table.height() ) {
if ( an2 ) {
3874
<.*?>
< table.height() ) {
fn( nNode1, nNode2, index );
3875
<.*?>
< table.height() ) {
}
3876
<.*?>
< table.height() ) {
else {
3877
<.*?>
< table.height() ) {
fn( nNode1, index );
3878
<.*?>
< table.height() ) {
}
3879
 
3880
<.*?>
< table.height() ) {
index++;
3881
<.*?>
< table.height() ) {
}
3882
 
3883
<.*?>
< table.height() ) {
nNode1 = nNode1.nextSibling;
3884
<.*?>
< table.height() ) {
nNode2 = an2 ? nNode2.nextSibling : null;
3885
<.*?>
< table.height() ) {
}
3886
 
3887
<.*?>
< table.height() ) {
i++;
3888
<.*?>
< table.height() ) {
}
3889
<.*?>
< table.height() ) {
}
3890
 
3891
 
3892
 
3893
<.*?>
< table.height() ) {
var __re_html_remove = /<.*?>/g;
3894
 
3895
 
3896
<.*?>
< table.height() ) {
<.*?> /**
3897
<.*?>
< table.height() ) {
<.*?> * Calculate the width of columns for the table
3898
<.*?>
< table.height() ) {
<.*?> * @param {object} oSettings dataTables settings object
3899
<.*?>
< table.height() ) {
<.*?> * @memberof DataTable#oApi
3900
<.*?>
< table.height() ) {
<.*?> */
3901
<.*?>
< table.height() ) {
<.*?> function _fnCalculateColumnWidths ( oSettings )
3902
<.*?>
< table.height() ) {
<.*?> {
3903
<.*?>
< table.height() ) {
<.*?> var
3904
<.*?>
< table.height() ) {
<.*?> table = oSettings.nTable,
3905
<.*?>
< table.height() ) {
<.*?> columns = oSettings.aoColumns,
3906
<.*?>
< table.height() ) {
<.*?> scroll = oSettings.oScroll,
3907
<.*?>
< table.height() ) {
<.*?> scrollY = scroll.sY,
3908
<.*?>
< table.height() ) {
<.*?> scrollX = scroll.sX,
3909
<.*?>
< table.height() ) {
<.*?> scrollXInner = scroll.sXInner,
3910
<.*?>
< table.height() ) {
<.*?> columnCount = columns.length,
3911
<.*?>
< table.height() ) {
<.*?> visibleColumns = _fnGetColumns( oSettings, 'bVisible' ),
3912
<.*?>
< table.height() ) {
<.*?> headerCells = $('th', oSettings.nTHead),
3913
<.*?>
< table.height() ) {
<.*?> tableWidthAttr = table.getAttribute('width'),
3914
<.*?>
< table.height() ) {
<.*?> tableContainer = table.parentNode,
3915
<.*?>
< table.height() ) {
<.*?> userInputs = false,
3916
<.*?>
< table.height() ) {
<.*?> i, column, columnIdx, width, outerWidth;
3917
 
3918
<.*?>
< table.height() ) {
<.*?> /* Convert any user input sizes into pixel sizes */
3919
<.*?>
< table.height() ) {
<.*?> for ( i=0 ; i<visibleColumns.length ; i++ ) {
3920
<.*?>
< table.height() ) {
<.*?> column = columns[ visibleColumns[i] ];
3921
 
3922
<.*?>
< table.height() ) {
<.*?> if ( column.sWidth !== null ) {
3923
<.*?>
< table.height() ) {
<.*?> column.sWidth = _fnConvertToWidth( column.sWidthOrig, tableContainer );
3924
 
3925
<.*?>
< table.height() ) {
<.*?> userInputs = true;
3926
<.*?>
< table.height() ) {
<.*?> }
3927
<.*?>
< table.height() ) {
<.*?> }
3928
 
3929
<.*?>
< table.height() ) {
<.*?> /* If the number of columns in the DOM equals the number that we have to
3930
<.*?>
< table.height() ) {
<.*?> * process in DataTables, then we can use the offsets that are created by
3931
<.*?>
< table.height() ) {
<.*?> * the web- browser. No custom sizes can be set in order for this to happen,
3932
<.*?>
< table.height() ) {
<.*?> * nor scrolling used
3933
<.*?>
< table.height() ) {
<.*?> */
3934
<.*?>
< table.height() ) {
<.*?> if ( ! userInputs && ! scrollX && ! scrollY &&
3935
<.*?>
< table.height() ) {
<.*?> columnCount == _fnVisbleColumns( oSettings ) &&
3936
<.*?>
< table.height() ) {
<.*?> columnCount == headerCells.length
3937
<.*?>
< table.height() ) {
<.*?> ) {
3938
<.*?>
< table.height() ) {
<.*?> for ( i=0 ; i<columnCount ; i++ ) {
3939
<.*?>
< table.height() ) {
<.*?> columns[i].sWidth = _fnStringToCss( headerCells.eq(i).width() );
3940
<.*?>
< table.height() ) {
<.*?> }
3941
<.*?>
< table.height() ) {
<.*?> }
3942
<.*?>
< table.height() ) {
<.*?> else
3943
<.*?>
< table.height() ) {
<.*?> {
3944
<.*?>
< table.height() ) {
<.*?> // Otherwise construct a single row table with the widest node in the
3945
<.*?>
< table.height() ) {
<.*?> // data, assign any user defined widths, then insert it into the DOM and
3946
<.*?>
< table.height() ) {
<.*?> // allow the browser to do all the hard work of calculating table widths
3947
<.*?>
< table.height() ) {
<.*?> var tmpTable = $( table.cloneNode( false ) )
3948
<.*?>
< table.height() ) {
<.*?> .css( 'visibility', 'hidden' )
3949
<.*?>
< table.height() ) {
<.*?> .removeAttr( 'id' )
3950
<.*?>
< table.height() ) {
<.*?> .append( $(oSettings.nTHead).clone( false ) )
3951
<.*?>
< table.height() ) {
<.*?> .append( $(oSettings.nTFoot).clone( false ) )
3952
<.*?>
< table.height() ) {
<.*?> .append( $('<tbody><tr/></tbody>') );
3953
 
3954
<.*?>
< table.height() ) {
<.*?> // Remove any assigned widths from the footer (from scrolling)
3955
<.*?>
< table.height() ) {
<.*?> tmpTable.find('tfoot th, tfoot td').css('width', '');
3956
 
3957
<.*?>
< table.height() ) {
<.*?> var tr = tmpTable.find( 'tbody tr' );
3958
 
3959
<.*?>
< table.height() ) {
<.*?> // Apply custom sizing to the cloned header
3960
<.*?>
< table.height() ) {
<.*?> headerCells = _fnGetUniqueThs( oSettings, tmpTable.find('thead')[0] );
3961
 
3962
<.*?>
< table.height() ) {
<.*?> for ( i=0 ; i<visibleColumns.length ; i++ ) {
3963
<.*?>
< table.height() ) {
<.*?> column = columns[ visibleColumns[i] ];
3964
 
3965
<.*?>
< table.height() ) {
<.*?> headerCells[i].style.width = column.sWidthOrig !== null && column.sWidthOrig !== '' ?
3966
<.*?>
< table.height() ) {
<.*?> _fnStringToCss( column.sWidthOrig ) :
3967
<.*?>
< table.height() ) {
<.*?> '';
3968
<.*?>
< table.height() ) {
<.*?> }
3969
 
3970
<.*?>
< table.height() ) {
<.*?> // Find the widest cell for each column and put it into the table
3971
<.*?>
< table.height() ) {
<.*?> if ( oSettings.aoData.length ) {
3972
<.*?>
< table.height() ) {
<.*?> for ( i=0 ; i<visibleColumns.length ; i++ ) {
3973
<.*?>
< table.height() ) {
<.*?> columnIdx = visibleColumns[i];
3974
<.*?>
< table.height() ) {
<.*?> column = columns[ columnIdx ];
3975
 
3976
<.*?>
< table.height() ) {
<.*?> $( _fnGetWidestNode( oSettings, columnIdx ) )
3977
<.*?>
< table.height() ) {
<.*?> .clone( false )
3978
<.*?>
< table.height() ) {
<.*?> .append( column.sContentPadding )
3979
<.*?>
< table.height() ) {
<.*?> .appendTo( tr );
3980
<.*?>
< table.height() ) {
<.*?> }
3981
<.*?>
< table.height() ) {
<.*?> }
3982
 
3983
<.*?>
< table.height() ) {
<.*?> // Table has been built, attach to the document so we can work with it
3984
<.*?>
< table.height() ) {
<.*?> tmpTable.appendTo( tableContainer );
3985
 
3986
<.*?>
< table.height() ) {
<.*?> // When scrolling (X or Y) we want to set the width of the table as
3987
<.*?>
< table.height() ) {
<.*?> // appropriate. However, when not scrolling leave the table width as it
3988
<.*?>
< table.height() ) {
<.*?> // is. This results in slightly different, but I think correct behaviour
3989
<.*?>
< table.height() ) {
<.*?> if ( scrollX && scrollXInner ) {
3990
<.*?>
< table.height() ) {
<.*?> tmpTable.width( scrollXInner );
3991
<.*?>
< table.height() ) {
<.*?> }
3992
<.*?>
< table.height() ) {
<.*?> else if ( scrollX ) {
3993
<.*?>
< table.height() ) {
<.*?> tmpTable.css( 'width', 'auto' );
3994
 
3995
<.*?>
< table.height() ) {
<.*?> if ( tmpTable.width() < tableContainer.offsetWidth ) {
3996
<.*?>
< table.height() ) {
<.*?> tmpTable.width( tableContainer.offsetWidth );
3997
<.*?>
< table.height() ) {
<.*?> }
3998
<.*?>
< table.height() ) {
<.*?> }
3999
<.*?>
< table.height() ) {
<.*?> else if ( scrollY ) {
4000
<.*?>
< table.height() ) {
<.*?> tmpTable.width( tableContainer.offsetWidth );
4001
<.*?>
< table.height() ) {
<.*?> }
4002
<.*?>
< table.height() ) {
<.*?> else if ( tableWidthAttr ) {
4003
<.*?>
< table.height() ) {
<.*?> tmpTable.width( tableWidthAttr );
4004
<.*?>
< table.height() ) {
<.*?> }
4005
 
4006
<.*?>
< table.height() ) {
<.*?> // Take into account the y scrollbar
4007
<.*?>
< table.height() ) {
<.*?> _fnScrollingWidthAdjust( oSettings, tmpTable[0] );
4008
 
4009
<.*?>
< table.height() ) {
<.*?> // Browsers need a bit of a hand when a width is assigned to any columns
4010
<.*?>
< table.height() ) {
<.*?> // when x-scrolling as they tend to collapse the table to the min-width,
4011
<.*?>
< table.height() ) {
<.*?> // even if we sent the column widths. So we need to keep track of what
4012
<.*?>
< table.height() ) {
<.*?> // the table width should be by summing the user given values, and the
4013
<.*?>
< table.height() ) {
<.*?> // automatic values
4014
<.*?>
< table.height() ) {
<.*?> if ( scrollX )
4015
<.*?>
< table.height() ) {
<.*?> {
4016
<.*?>
< table.height() ) {
<.*?> var total = 0;
4017
 
4018
<.*?>
< table.height() ) {
<.*?> for ( i=0 ; i<visibleColumns.length ; i++ ) {
4019
<.*?>
< table.height() ) {
<.*?> column = columns[ visibleColumns[i] ];
4020
<.*?>
< table.height() ) {
<.*?> outerWidth = $(headerCells[i]).outerWidth();
4021
 
4022
<.*?>
< table.height() ) {
<.*?> total += column.sWidthOrig === null ?
4023
<.*?>
< table.height() ) {
<.*?> outerWidth :
4024
<.*?>
< table.height() ) {
<.*?> parseInt( column.sWidth, 10 ) + outerWidth - $(headerCells[i]).width();
4025
<.*?>
< table.height() ) {
<.*?> }
4026
 
4027
<.*?>
< table.height() ) {
<.*?> tmpTable.width( _fnStringToCss( total ) );
4028
<.*?>
< table.height() ) {
<.*?> table.style.width = _fnStringToCss( total );
4029
<.*?>
< table.height() ) {
<.*?> }
4030
 
4031
<.*?>
< table.height() ) {
<.*?> // Get the width of each column in the constructed table
4032
<.*?>
< table.height() ) {
<.*?> for ( i=0 ; i<visibleColumns.length ; i++ ) {
4033
<.*?>
< table.height() ) {
<.*?> column = columns[ visibleColumns[i] ];
4034
<.*?>
< table.height() ) {
<.*?> width = $(headerCells[i]).width();
4035
 
4036
<.*?>
< table.height() ) {
<.*?> if ( width ) {
4037
<.*?>
< table.height() ) {
<.*?> column.sWidth = _fnStringToCss( width );
4038
<.*?>
< table.height() ) {
<.*?> }
4039
<.*?>
< table.height() ) {
<.*?> }
4040
 
4041
<.*?>
< table.height() ) {
<.*?> table.style.width = _fnStringToCss( tmpTable.css('width') );
4042
 
4043
<.*?>
< table.height() ) {
<.*?> // Finished with the table - ditch it
4044
<.*?>
< table.height() ) {
<.*?> tmpTable.remove();
4045
<.*?>
< table.height() ) {
<.*?> }
4046
 
4047
<.*?>
< table.height() ) {
<.*?> // If there is a width attr, we want to attach an event listener which
4048
<.*?>
< table.height() ) {
<.*?> // allows the table sizing to automatically adjust when the window is
4049
<.*?>
< table.height() ) {
<.*?> // resized. Use the width attr rather than CSS, since we can't know if the
4050
<.*?>
< table.height() ) {
<.*?> // CSS is a relative value or absolute - DOM read is always px.
4051
<.*?>
< table.height() ) {
<.*?> if ( tableWidthAttr ) {
4052
<.*?>
< table.height() ) {
<.*?> table.style.width = _fnStringToCss( tableWidthAttr );
4053
<.*?>
< table.height() ) {
<.*?> }
4054
 
4055
<.*?>
< table.height() ) {
<.*?> if ( (tableWidthAttr || scrollX) && ! oSettings._reszEvt ) {
4056
<.*?>
< table.height() ) {
<.*?> $(window).bind('resize.DT-'+oSettings.sInstance, _fnThrottle( function () {
4057
<.*?>
< table.height() ) {
<.*?> _fnAdjustColumnSizing( oSettings );
4058
<.*?>
< table.height() ) {
<.*?> } ) );
4059
 
4060
<.*?>
< table.height() ) {
<.*?> oSettings._reszEvt = true;
4061
<.*?>
< table.height() ) {
<.*?> }
4062
<.*?>
< table.height() ) {
<.*?> }
4063
 
4064
 
4065
<.*?>
< table.height() ) {
<.*?> /**
4066
<.*?>
< table.height() ) {
<.*?> * Throttle the calls to a function. Arguments and context are maintained for
4067
<.*?>
< table.height() ) {
<.*?> * the throttled function
4068
<.*?>
< table.height() ) {
<.*?> * @param {function} fn Function to be called
4069
<.*?>
< table.height() ) {
<.*?> * @param {int} [freq=200] call frequency in mS
4070
<.*?>
< table.height() ) {
<.*?> * @returns {function} wrapped function
4071
<.*?>
< table.height() ) {
<.*?> * @memberof DataTable#oApi
4072
<.*?>
< table.height() ) {
<.*?> */
4073
<.*?>
< table.height() ) {
<.*?> function _fnThrottle( fn, freq ) {
4074
<.*?>
< table.height() ) {
<.*?> var
4075
<.*?>
< table.height() ) {
<.*?> frequency = freq || 200,
4076
<.*?>
< table.height() ) {
<.*?> last,
4077
<.*?>
< table.height() ) {
<.*?> timer;
4078
 
4079
<.*?>
< table.height() ) {
<.*?> return function () {
4080
<.*?>
< table.height() ) {
<.*?> var
4081
<.*?>
< table.height() ) {
<.*?> that = this,
4082
<.*?>
< table.height() ) {
<.*?> now = +new Date(),
4083
<.*?>
< table.height() ) {
<.*?> args = arguments;
4084
 
4085
<.*?>
< table.height() ) {
<.*?> if ( last && now < last + frequency ) {
4086
<.*?>
< table.height() ) {
<.*?> clearTimeout( timer );
4087
 
4088
<.*?>
< table.height() ) {
<.*?> timer = setTimeout( function () {
4089
<.*?>
< table.height() ) {
<.*?> last = undefined;
4090
<.*?>
< table.height() ) {
<.*?> fn.apply( that, args );
4091
<.*?>
< table.height() ) {
<.*?> }, frequency );
4092
<.*?>
< table.height() ) {
<.*?> }
4093
<.*?>
< table.height() ) {
<.*?> else if ( last ) {
4094
<.*?>
< table.height() ) {
<.*?> last = now;
4095
<.*?>
< table.height() ) {
<.*?> fn.apply( that, args );
4096
<.*?>
< table.height() ) {
<.*?> }
4097
<.*?>
< table.height() ) {
<.*?> else {
4098
<.*?>
< table.height() ) {
<.*?> last = now;
4099
<.*?>
< table.height() ) {
<.*?> }
4100
<.*?>
< table.height() ) {
<.*?> };
4101
<.*?>
< table.height() ) {
<.*?> }
4102
 
4103
 
4104
<.*?>
< table.height() ) {
<.*?> /**
4105
<.*?>
< table.height() ) {
<.*?> * Convert a CSS unit width to pixels (e.g. 2em)
4106
<.*?>
< table.height() ) {
<.*?> * @param {string} width width to be converted
4107
<.*?>
< table.height() ) {
<.*?> * @param {node} parent parent to get the with for (required for relative widths) - optional
4108
<.*?>
< table.height() ) {
<.*?> * @returns {int} width in pixels
4109
<.*?>
< table.height() ) {
<.*?> * @memberof DataTable#oApi
4110
<.*?>
< table.height() ) {
<.*?> */
4111
<.*?>
< table.height() ) {
<.*?> function _fnConvertToWidth ( width, parent )
4112
<.*?>
< table.height() ) {
<.*?> {
4113
<.*?>
< table.height() ) {
<.*?> if ( ! width ) {
4114
<.*?>
< table.height() ) {
<.*?> return 0;
4115
<.*?>
< table.height() ) {
<.*?> }
4116
 
4117
<.*?>
< table.height() ) {
<.*?> var n = $('<div/>')
4118
<.*?>
< table.height() ) {
<.*?> .css( 'width', _fnStringToCss( width ) )
4119
<.*?>
< table.height() ) {
<.*?> .appendTo( parent || document.body );
4120
 
4121
<.*?>
< table.height() ) {
<.*?> var val = n[0].offsetWidth;
4122
<.*?>
< table.height() ) {
<.*?> n.remove();
4123
 
4124
<.*?>
< table.height() ) {
<.*?> return val;
4125
<.*?>
< table.height() ) {
<.*?> }
4126
 
4127
 
4128
<.*?>
< table.height() ) {
<.*?> /**
4129
<.*?>
< table.height() ) {
<.*?> * Adjust a table's width to take account of vertical scroll bar
4130
<.*?>
< table.height() ) {
<.*?> * @param {object} oSettings dataTables settings object
4131
<.*?>
< table.height() ) {
<.*?> * @param {node} n table node
4132
<.*?>
< table.height() ) {
<.*?> * @memberof DataTable#oApi
4133
<.*?>
< table.height() ) {
<.*?> */
4134
 
4135
<.*?>
< table.height() ) {
<.*?> function _fnScrollingWidthAdjust ( settings, n )
4136
<.*?>
< table.height() ) {
<.*?> {
4137
<.*?>
< table.height() ) {
<.*?> var scroll = settings.oScroll;
4138
 
4139
<.*?>
< table.height() ) {
<.*?> if ( scroll.sX || scroll.sY ) {
4140
<.*?>
< table.height() ) {
<.*?> // When y-scrolling only, we want to remove the width of the scroll bar
4141
<.*?>
< table.height() ) {
<.*?> // so the table + scroll bar will fit into the area available, otherwise
4142
<.*?>
< table.height() ) {
<.*?> // we fix the table at its current size with no adjustment
4143
<.*?>
< table.height() ) {
<.*?> var correction = ! scroll.sX ? scroll.iBarWidth : 0;
4144
<.*?>
< table.height() ) {
<.*?> n.style.width = _fnStringToCss( $(n).outerWidth() - correction );
4145
<.*?>
< table.height() ) {
<.*?> }
4146
<.*?>
< table.height() ) {
<.*?> }
4147
 
4148
 
4149
<.*?>
< table.height() ) {
<.*?> /**
4150
<.*?>
< table.height() ) {
<.*?> * Get the widest node
4151
<.*?>
< table.height() ) {
<.*?> * @param {object} settings dataTables settings object
4152
<.*?>
< table.height() ) {
<.*?> * @param {int} colIdx column of interest
4153
<.*?>
< table.height() ) {
<.*?> * @returns {node} widest table node
4154
<.*?>
< table.height() ) {
<.*?> * @memberof DataTable#oApi
4155
<.*?>
< table.height() ) {
<.*?> */
4156
<.*?>
< table.height() ) {
<.*?> function _fnGetWidestNode( settings, colIdx )
4157
<.*?>
< table.height() ) {
<.*?> {
4158
<.*?>
< table.height() ) {
<.*?> var idx = _fnGetMaxLenString( settings, colIdx );
4159
<.*?>
< table.height() ) {
<.*?> if ( idx < 0 ) {
4160
<.*?>
< table.height() ) {
<.*?> return null;
4161
<.*?>
< table.height() ) {
<.*?> }
4162
 
4163
<.*?>
< table.height() ) {
<.*?> var data = settings.aoData[ idx ];
4164
<.*?>
< table.height() ) {
<.*?> return ! data.nTr ? // Might not have been created when deferred rendering
4165
<.*?>
< table.height() ) {
<.*?> $('<td/>').html( _fnGetCellData( settings, idx, colIdx, 'display' ) )[0] :
4166
<.*?>
< table.height() ) {
<.*?> data.anCells[ colIdx ];
4167
<.*?>
< table.height() ) {
<.*?> }
4168
 
4169
 
4170
<.*?>
< table.height() ) {
<.*?> /**
4171
<.*?>
< table.height() ) {
<.*?> * Get the maximum strlen for each data column
4172
<.*?>
< table.height() ) {
<.*?> * @param {object} settings dataTables settings object
4173
<.*?>
< table.height() ) {
<.*?> * @param {int} colIdx column of interest
4174
<.*?>
< table.height() ) {
<.*?> * @returns {string} max string length for each column
4175
<.*?>
< table.height() ) {
<.*?> * @memberof DataTable#oApi
4176
<.*?>
< table.height() ) {
<.*?> */
4177
<.*?>
< table.height() ) {
<.*?> function _fnGetMaxLenString( settings, colIdx )
4178
<.*?>
< table.height() ) {
<.*?> {
4179
<.*?>
< table.height() ) {
<.*?> var s, max=-1, maxIdx = -1;
4180
 
4181
<.*?>
< table.height() ) {
<.*?> for ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
4182
<.*?>
< table.height() ) {
<.*?> s = _fnGetCellData( settings, i, colIdx, 'display' )+'';
4183
<.*?>
< table.height() ) {
<.*?> s = s.replace( __re_html_remove, '' );
4184
 
4185
<.*?>
< table.height() ) {
<.*?> if ( s.length > max ) {
4186
<.*?>
< table.height() ) {
<.*?> max = s.length;
4187
<.*?>
< table.height() ) {
<.*?> maxIdx = i;
4188
<.*?>
< table.height() ) {
<.*?> }
4189
<.*?>
< table.height() ) {
<.*?> }
4190
 
4191
<.*?>
< table.height() ) {
<.*?> return maxIdx;
4192
<.*?>
< table.height() ) {
<.*?> }
4193
 
4194
 
4195
<.*?>
< table.height() ) {
<.*?> /**
4196
<.*?>
< table.height() ) {
<.*?> * Append a CSS unit (only if required) to a string
4197
<.*?>
< table.height() ) {
<.*?> * @param {string} value to css-ify
4198
<.*?>
< table.height() ) {
<.*?> * @returns {string} value with css unit
4199
<.*?>
< table.height() ) {
<.*?> * @memberof DataTable#oApi
4200
<.*?>
< table.height() ) {
<.*?> */
4201
<.*?>
< table.height() ) {
<.*?> function _fnStringToCss( s )
4202
<.*?>
< table.height() ) {
<.*?> {
4203
<.*?>
< table.height() ) {
<.*?> if ( s === null ) {
4204
<.*?>
< table.height() ) {
<.*?> return '0px';
4205
<.*?>
< table.height() ) {
<.*?> }
4206
 
4207
<.*?>
< table.height() ) {
<.*?> if ( typeof s == 'number' ) {
4208
<.*?>
< table.height() ) {
<.*?> return s < 0 ?
4209
<.*?>
< table.height() ) {
<.*?> '0px' :
4210
<.*?>
< table.height() ) {
<.*?> s+'px';
4211
<.*?>
< table.height() ) {
<.*?> }
4212
 
4213
<.*?>
< table.height() ) {
<.*?> // Check it has a unit character already
4214
<.*?>
< table.height() ) {
<.*?> return s.match(/\d$/) ?
4215
<.*?>
< table.height() ) {
<.*?> s+'px' :
4216
<.*?>
< table.height() ) {
<.*?> s;
4217
<.*?>
< table.height() ) {
<.*?> }
4218
 
4219
 
4220
<.*?>
< table.height() ) {
<.*?> /**
4221
<.*?>
< table.height() ) {
<.*?> * Get the width of a scroll bar in this browser being used
4222
<.*?>
< table.height() ) {
<.*?> * @returns {int} width in pixels
4223
<.*?>
< table.height() ) {
<.*?> * @memberof DataTable#oApi
4224
<.*?>
< table.height() ) {
<.*?> */
4225
<.*?>
< table.height() ) {
<.*?> function _fnScrollBarWidth ()
4226
<.*?>
< table.height() ) {
<.*?> {
4227
<.*?>
< table.height() ) {
<.*?> // On first run a static variable is set, since this is only needed once.
4228
<.*?>
< table.height() ) {
<.*?> // Subsequent runs will just use the previously calculated value
4229
<.*?>
< table.height() ) {
<.*?> if ( ! DataTable.__scrollbarWidth ) {
4230
<.*?>
< table.height() ) {
<.*?> var inner = $('<p/>').css( {
4231
<.*?>
< table.height() ) {
<.*?> width: '100%',
4232
<.*?>
< table.height() ) {
<.*?> height: 200,
4233
<.*?>
< table.height() ) {
<.*?> padding: 0
4234
<.*?>
< table.height() ) {
<.*?> } )[0];
4235
 
4236
<.*?>
< table.height() ) {
<.*?> var outer = $('<div/>')
4237
<.*?>
< table.height() ) {
<.*?> .css( {
4238
<.*?>
< table.height() ) {
<.*?> position: 'absolute',
4239
<.*?>
< table.height() ) {
<.*?> top: 0,
4240
<.*?>
< table.height() ) {
<.*?> left: 0,
4241
<.*?>
< table.height() ) {
<.*?> width: 200,
4242
<.*?>
< table.height() ) {
<.*?> height: 150,
4243
<.*?>
< table.height() ) {
<.*?> padding: 0,
4244
<.*?>
< table.height() ) {
<.*?> overflow: 'hidden',
4245
<.*?>
< table.height() ) {
<.*?> visibility: 'hidden'
4246
<.*?>
< table.height() ) {
<.*?> } )
4247
<.*?>
< table.height() ) {
<.*?> .append( inner )
4248
<.*?>
< table.height() ) {
<.*?> .appendTo( 'body' );
4249
 
4250
<.*?>
< table.height() ) {
<.*?> var w1 = inner.offsetWidth;
4251
<.*?>
< table.height() ) {
<.*?> outer.css( 'overflow', 'scroll' );
4252
<.*?>
< table.height() ) {
<.*?> var w2 = inner.offsetWidth;
4253
 
4254
<.*?>
< table.height() ) {
<.*?> if ( w1 === w2 ) {
4255
<.*?>
< table.height() ) {
<.*?> w2 = outer[0].clientWidth;
4256
<.*?>
< table.height() ) {
<.*?> }
4257
 
4258
<.*?>
< table.height() ) {
<.*?> outer.remove();
4259
 
4260
<.*?>
< table.height() ) {
<.*?> DataTable.__scrollbarWidth = w1 - w2;
4261
<.*?>
< table.height() ) {
<.*?> }
4262
 
4263
<.*?>
< table.height() ) {
<.*?> return DataTable.__scrollbarWidth;
4264
<.*?>
< table.height() ) {
<.*?> }
4265
 
4266
 
4267
 
4268
<.*?>
< table.height() ) {
<.*?> function _fnSortFlatten ( settings )
4269
<.*?>
< table.height() ) {
<.*?> {
4270
<.*?>
< table.height() ) {
<.*?> var
4271
<.*?>
< table.height() ) {
<.*?> i, iLen, k, kLen,
4272
<.*?>
< table.height() ) {
<.*?> aSort = [],
4273
<.*?>
< table.height() ) {
<.*?> aiOrig = [],
4274
<.*?>
< table.height() ) {
<.*?> aoColumns = settings.aoColumns,
4275
<.*?>
< table.height() ) {
<.*?> aDataSort, iCol, sType, srcCol,
4276
<.*?>
< table.height() ) {
<.*?> fixed = settings.aaSortingFixed,
4277
<.*?>
< table.height() ) {
<.*?> fixedObj = $.isPlainObject( fixed ),
4278
<.*?>
< table.height() ) {
<.*?> nestedSort = [],
4279
<.*?>
< table.height() ) {
<.*?> add = function ( a ) {
4280
<.*?>
< table.height() ) {
<.*?> if ( a.length && ! $.isArray( a[0] ) ) {
4281
<.*?>
< table.height() ) {
<.*?> // 1D array
4282
<.*?>
< table.height() ) {
<.*?> nestedSort.push( a );
4283
<.*?>
< table.height() ) {
<.*?> }
4284
<.*?>
< table.height() ) {
<.*?> else {
4285
<.*?>
< table.height() ) {
<.*?> // 2D array
4286
<.*?>
< table.height() ) {
<.*?> nestedSort.push.apply( nestedSort, a );
4287
<.*?>
< table.height() ) {
<.*?> }
4288
<.*?>
< table.height() ) {
<.*?> };
4289
 
4290
<.*?>
< table.height() ) {
<.*?> // Build the sort array, with pre-fix and post-fix options if they have been
4291
<.*?>
< table.height() ) {
<.*?> // specified
4292
<.*?>
< table.height() ) {
<.*?> if ( $.isArray( fixed ) ) {
4293
<.*?>
< table.height() ) {
<.*?> add( fixed );
4294
<.*?>
< table.height() ) {
<.*?> }
4295
 
4296
<.*?>
< table.height() ) {
<.*?> if ( fixedObj && fixed.pre ) {
4297
<.*?>
< table.height() ) {
<.*?> add( fixed.pre );
4298
<.*?>
< table.height() ) {
<.*?> }
4299
 
4300
<.*?>
< table.height() ) {
<.*?> add( settings.aaSorting );
4301
 
4302
<.*?>
< table.height() ) {
<.*?> if (fixedObj && fixed.post ) {
4303
<.*?>
< table.height() ) {
<.*?> add( fixed.post );
4304
<.*?>
< table.height() ) {
<.*?> }
4305
 
4306
<.*?>
< table.height() ) {
<.*?> for ( i=0 ; i<nestedSort.length ; i++ )
4307
<.*?>
< table.height() ) {
<.*?> {
4308
<.*?>
< table.height() ) {
<.*?> srcCol = nestedSort[i][0];
4309
<.*?>
< table.height() ) {
<.*?> aDataSort = aoColumns[ srcCol ].aDataSort;
4310
 
4311
<.*?>
< table.height() ) {
<.*?> for ( k=0, kLen=aDataSort.length ; k<kLen ; k++ )
4312
<.*?>
< table.height() ) {
<.*?> {
4313
<.*?>
< table.height() ) {
<.*?> iCol = aDataSort[k];
4314
<.*?>
< table.height() ) {
<.*?> sType = aoColumns[ iCol ].sType || 'string';
4315
 
4316
<.*?>
< table.height() ) {
<.*?> aSort.push( {
4317
<.*?>
< table.height() ) {
<.*?> src: srcCol,
4318
<.*?>
< table.height() ) {
<.*?> col: iCol,
4319
<.*?>
< table.height() ) {
<.*?> dir: nestedSort[i][1],
4320
<.*?>
< table.height() ) {
<.*?> index: nestedSort[i][2],
4321
<.*?>
< table.height() ) {
<.*?> type: sType,
4322
<.*?>
< table.height() ) {
<.*?> formatter: DataTable.ext.type.order[ sType+"-pre" ]
4323
<.*?>
< table.height() ) {
<.*?> } );
4324
<.*?>
< table.height() ) {
<.*?> }
4325
<.*?>
< table.height() ) {
<.*?> }
4326
 
4327
<.*?>
< table.height() ) {
<.*?> return aSort;
4328
<.*?>
< table.height() ) {
<.*?> }
4329
 
4330
<.*?>
< table.height() ) {
<.*?> /**
4331
<.*?>
< table.height() ) {
<.*?> * Change the order of the table
4332
<.*?>
< table.height() ) {
<.*?> * @param {object} oSettings dataTables settings object
4333
<.*?>
< table.height() ) {
<.*?> * @memberof DataTable#oApi
4334
<.*?>
< table.height() ) {
<.*?> * @todo This really needs split up!
4335
<.*?>
< table.height() ) {
<.*?> */
4336
<.*?>
< table.height() ) {
<.*?> function _fnSort ( oSettings )
4337
<.*?>
< table.height() ) {
<.*?> {
4338
<.*?>
< table.height() ) {
<.*?> var
4339
<.*?>
< table.height() ) {
<.*?> i, ien, iLen, j, jLen, k, kLen,
4340
<.*?>
< table.height() ) {
<.*?> sDataType, nTh,
4341
<.*?>
< table.height() ) {
<.*?> aiOrig = [],
4342
<.*?>
< table.height() ) {
<.*?> oExtSort = DataTable.ext.type.order,
4343
<.*?>
< table.height() ) {
<.*?> aoData = oSettings.aoData,
4344
<.*?>
< table.height() ) {
<.*?> aoColumns = oSettings.aoColumns,
4345
<.*?>
< table.height() ) {
<.*?> aDataSort, data, iCol, sType, oSort,
4346
<.*?>
< table.height() ) {
<.*?> formatters = 0,
4347
<.*?>
< table.height() ) {
<.*?> sortCol,
4348
<.*?>
< table.height() ) {
<.*?> displayMaster = oSettings.aiDisplayMaster,
4349
<.*?>
< table.height() ) {
<.*?> aSort;
4350
 
4351
<.*?>
< table.height() ) {
<.*?> // Resolve any column types that are unknown due to addition or invalidation
4352
<.*?>
< table.height() ) {
<.*?> // @todo Can this be moved into a 'data-ready' handler which is called when
4353
<.*?>
< table.height() ) {
<.*?> // data is going to be used in the table?
4354
<.*?>
< table.height() ) {
<.*?> _fnColumnTypes( oSettings );
4355
 
4356
<.*?>
< table.height() ) {
<.*?> aSort = _fnSortFlatten( oSettings );
4357
 
4358
<.*?>
< table.height() ) {
<.*?> for ( i=0, ien=aSort.length ; i<ien ; i++ ) {
4359
<.*?>
< table.height() ) {
<.*?> sortCol = aSort[i];
4360
 
4361
<.*?>
< table.height() ) {
<.*?> // Track if we can use the fast sort algorithm
4362
<.*?>
< table.height() ) {
<.*?> if ( sortCol.formatter ) {
4363
<.*?>
< table.height() ) {
<.*?> formatters++;
4364
<.*?>
< table.height() ) {
<.*?> }
4365
 
4366
<.*?>
< table.height() ) {
<.*?> // Load the data needed for the sort, for each cell
4367
<.*?>
< table.height() ) {
<.*?> _fnSortData( oSettings, sortCol.col );
4368
<.*?>
< table.height() ) {
<.*?> }
4369
 
4370
<.*?>
< table.height() ) {
<.*?> /* No sorting required if server-side or no sorting array */
4371
<.*?>
< table.height() ) {
<.*?> if ( _fnDataSource( oSettings ) != 'ssp' && aSort.length !== 0 )
4372
<.*?>
< table.height() ) {
<.*?> {
4373
<.*?>
< table.height() ) {
<.*?> // Create a value - key array of the current row positions such that we can use their
4374
<.*?>
< table.height() ) {
<.*?> // current position during the sort, if values match, in order to perform stable sorting
4375
<.*?>
< table.height() ) {
<.*?> for ( i=0, iLen=displayMaster.length ; i<iLen ; i++ ) {
4376
<.*?>
< table.height() ) {
<.*?> aiOrig[ displayMaster[i] ] = i;
4377
<.*?>
< table.height() ) {
<.*?> }
4378
 
4379
<.*?>
< table.height() ) {
<.*?> /* Do the sort - here we want multi-column sorting based on a given data source (column)
4380
<.*?>
< table.height() ) {
<.*?> * and sorting function (from oSort) in a certain direction. It's reasonably complex to
4381
<.*?>
< table.height() ) {
<.*?> * follow on it's own, but this is what we want (example two column sorting):
4382
<.*?>
< table.height() ) {
<.*?> * fnLocalSorting = function(a,b){
4383
<.*?>
< table.height() ) {
<.*?> * var iTest;
4384
<.*?>
< table.height() ) {
<.*?> * iTest = oSort['string-asc']('data11', 'data12');
4385
<.*?>
< table.height() ) {
<.*?> * if (iTest !== 0)
4386
<.*?>
< table.height() ) {
<.*?> * return iTest;
4387
<.*?>
< table.height() ) {
<.*?> * iTest = oSort['numeric-desc']('data21', 'data22');
4388
<.*?>
< table.height() ) {
<.*?> * if (iTest !== 0)
4389
<.*?>
< table.height() ) {
<.*?> * return iTest;
4390
<.*?>
< table.height() ) {
<.*?> * return oSort['numeric-asc']( aiOrig[a], aiOrig[b] );
4391
<.*?>
< table.height() ) {
<.*?> * }
4392
<.*?>
< table.height() ) {
<.*?> * Basically we have a test for each sorting column, if the data in that column is equal,
4393
<.*?>
< table.height() ) {
<.*?> * test the next column. If all columns match, then we use a numeric sort on the row
4394
<.*?>
< table.height() ) {
<.*?> * positions in the original data array to provide a stable sort.
4395
<.*?>
< table.height() ) {
<.*?> *
4396
<.*?>
< table.height() ) {
<.*?> * Note - I know it seems excessive to have two sorting methods, but the first is around
4397
<.*?>
< table.height() ) {
<.*?> * 15% faster, so the second is only maintained for backwards compatibility with sorting
4398
<.*?>
< table.height() ) {
<.*?> * methods which do not have a pre-sort formatting function.
4399
<.*?>
< table.height() ) {
<.*?> */
4400
<.*?>
< table.height() ) {
<.*?> if ( formatters === aSort.length ) {
4401
<.*?>
< table.height() ) {
<.*?> // All sort types have formatting functions
4402
<.*?>
< table.height() ) {
<.*?> displayMaster.sort( function ( a, b ) {
4403
<.*?>
< table.height() ) {
<.*?> var
4404
<.*?>
< table.height() ) {
<.*?> x, y, k, test, sort,
4405
<.*?>
< table.height() ) {
<.*?> len=aSort.length,
4406
<.*?>
< table.height() ) {
<.*?> dataA = aoData[a]._aSortData,
4407
<.*?>
< table.height() ) {
<.*?> dataB = aoData[b]._aSortData;
4408
 
4409
<.*?>
< table.height() ) {
<.*?> for ( k=0 ; k<len ; k++ ) {
4410
<.*?>
< table.height() ) {
<.*?> sort = aSort[k];
4411
 
4412
<.*?>
< table.height() ) {
<.*?> x = dataA[ sort.col ];
4413
<.*?>
< table.height() ) {
<.*?> y = dataB[ sort.col ];
4414
 
4415
<.*?>
< table.height() ) {
<.*?> test = x<y ? -1 : x>y ? 1 : 0;
4416
<.*?>
< table.height() ) {
<.*?> if ( test !== 0 ) {
4417
<.*?>
< table.height() ) {
<.*?> return sort.dir === 'asc' ? test : -test;
4418
<.*?>
< table.height() ) {
<.*?> }
4419
<.*?>
< table.height() ) {
<.*?> }
4420
 
4421
<.*?>
< table.height() ) {
<.*?> x = aiOrig[a];
4422
<.*?>
< table.height() ) {
<.*?> y = aiOrig[b];
4423
<.*?>
< table.height() ) {
<.*?> return x<y ? -1 : x>y ? 1 : 0;
4424
<.*?>
< table.height() ) {
<.*?> } );
4425
<.*?>
< table.height() ) {
<.*?> }
4426
<.*?>
< table.height() ) {
<.*?> else {
4427
<.*?>
< table.height() ) {
<.*?> // Depreciated - remove in 1.11 (providing a plug-in option)
4428
<.*?>
< table.height() ) {
<.*?> // Not all sort types have formatting methods, so we have to call their sorting
4429
<.*?>
< table.height() ) {
<.*?> // methods.
4430
<.*?>
< table.height() ) {
<.*?> displayMaster.sort( function ( a, b ) {
4431
<.*?>
< table.height() ) {
<.*?> var
4432
<.*?>
< table.height() ) {
<.*?> x, y, k, l, test, sort, fn,
4433
<.*?>
< table.height() ) {
<.*?> len=aSort.length,
4434
<.*?>
< table.height() ) {
<.*?> dataA = aoData[a]._aSortData,
4435
<.*?>
< table.height() ) {
<.*?> dataB = aoData[b]._aSortData;
4436
 
4437
<.*?>
< table.height() ) {
<.*?> for ( k=0 ; k<len ; k++ ) {
4438
<.*?>
< table.height() ) {
<.*?> sort = aSort[k];
4439
 
4440
<.*?>
< table.height() ) {
<.*?> x = dataA[ sort.col ];
4441
<.*?>
< table.height() ) {
<.*?> y = dataB[ sort.col ];
4442
 
4443
<.*?>
< table.height() ) {
<.*?> fn = oExtSort[ sort.type+"-"+sort.dir ] || oExtSort[ "string-"+sort.dir ];
4444
<.*?>
< table.height() ) {
<.*?> test = fn( x, y );
4445
<.*?>
< table.height() ) {
<.*?> if ( test !== 0 ) {
4446
<.*?>
< table.height() ) {
<.*?> return test;
4447
<.*?>
< table.height() ) {
<.*?> }
4448
<.*?>
< table.height() ) {
<.*?> }
4449
 
4450
<.*?>
< table.height() ) {
<.*?> x = aiOrig[a];
4451
<.*?>
< table.height() ) {
<.*?> y = aiOrig[b];
4452
<.*?>
< table.height() ) {
<.*?> return x<y ? -1 : x>y ? 1 : 0;
4453
<.*?>
< table.height() ) {
<.*?> } );
4454
<.*?>
< table.height() ) {
<.*?> }
4455
<.*?>
< table.height() ) {
<.*?> }
4456
 
4457
<.*?>
< table.height() ) {
<.*?> /* Tell the draw function that we have sorted the data */
4458
<.*?>
< table.height() ) {
<.*?> oSettings.bSorted = true;
4459
<.*?>
< table.height() ) {
<.*?> }
4460
 
4461
 
4462
<.*?>
< table.height() ) {
<.*?> function _fnSortAria ( settings )
4463
<.*?>
< table.height() ) {
<.*?> {
4464
<.*?>
< table.height() ) {
<.*?> var label;
4465
<.*?>
< table.height() ) {
<.*?> var nextSort;
4466
<.*?>
< table.height() ) {
<.*?> var columns = settings.aoColumns;
4467
<.*?>
< table.height() ) {
<.*?> var aSort = _fnSortFlatten( settings );
4468
<.*?>
< table.height() ) {
<.*?> var oAria = settings.oLanguage.oAria;
4469
 
4470
<.*?>
< table.height() ) {
<.*?> // ARIA attributes - need to loop all columns, to update all (removing old
4471
<.*?>
< table.height() ) {
<.*?> // attributes as needed)
4472
<.*?>
< table.height() ) {
<.*?> for ( var i=0, iLen=columns.length ; i<iLen ; i++ )
4473
<.*?>
< table.height() ) {
<.*?> {
4474
<.*?>
< table.height() ) {
<.*?> var col = columns[i];
4475
<.*?>
< table.height() ) {
<.*?> var asSorting = col.asSorting;
4476
<.*?>
< table.height() ) {
<.*?> var sTitle = col.sTitle.replace( /<.*?>/g, "" );
4477
<.*?>
< table.height() ) {
<.*?><.*?> var th = col.nTh;
4478
 
4479
<.*?>
< table.height() ) {
<.*?><.*?> // IE7 is throwing an error when setting these properties with jQuery's
4480
<.*?>
< table.height() ) {
<.*?><.*?> // attr() and removeAttr() methods...
4481
<.*?>
< table.height() ) {
<.*?><.*?> th.removeAttribute('aria-sort');
4482
 
4483
<.*?>
< table.height() ) {
<.*?><.*?> /* In ARIA only the first sorting column can be marked as sorting - no multi-sort option */
4484
<.*?>
< table.height() ) {
<.*?><.*?> if ( col.bSortable ) {
4485
<.*?>
< table.height() ) {
<.*?><.*?> if ( aSort.length > 0 && aSort[0].col == i ) {
4486
<.*?>
< table.height() ) {
<.*?><.*?> th.setAttribute('aria-sort', aSort[0].dir=="asc" ? "ascending" : "descending" );
4487
<.*?>
< table.height() ) {
<.*?><.*?> nextSort = asSorting[ aSort[0].index+1 ] || asSorting[0];
4488
<.*?>
< table.height() ) {
<.*?><.*?> }
4489
<.*?>
< table.height() ) {
<.*?><.*?> else {
4490
<.*?>
< table.height() ) {
<.*?><.*?> nextSort = asSorting[0];
4491
<.*?>
< table.height() ) {
<.*?><.*?> }
4492
 
4493
<.*?>
< table.height() ) {
<.*?><.*?> label = sTitle + ( nextSort === "asc" ?
4494
<.*?>
< table.height() ) {
<.*?><.*?> oAria.sSortAscending :
4495
<.*?>
< table.height() ) {
<.*?><.*?> oAria.sSortDescending
4496
<.*?>
< table.height() ) {
<.*?><.*?> );
4497
<.*?>
< table.height() ) {
<.*?><.*?> }
4498
<.*?>
< table.height() ) {
<.*?><.*?> else {
4499
<.*?>
< table.height() ) {
<.*?><.*?> label = sTitle;
4500
<.*?>
< table.height() ) {
<.*?><.*?> }
4501
 
4502
<.*?>
< table.height() ) {
<.*?><.*?> th.setAttribute('aria-label', label);
4503
<.*?>
< table.height() ) {
<.*?><.*?> }
4504
<.*?>
< table.height() ) {
<.*?><.*?> }
4505
 
4506
 
4507
<.*?>
< table.height() ) {
<.*?><.*?> /**
4508
<.*?>
< table.height() ) {
<.*?><.*?> * Function to run on user sort request
4509
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} settings dataTables settings object
4510
<.*?>
< table.height() ) {
<.*?><.*?> * @param {node} attachTo node to attach the handler to
4511
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} colIdx column sorting index
4512
<.*?>
< table.height() ) {
<.*?><.*?> * @param {boolean} [append=false] Append the requested sort to the existing
4513
<.*?>
< table.height() ) {
<.*?><.*?> * sort if true (i.e. multi-column sort)
4514
<.*?>
< table.height() ) {
<.*?><.*?> * @param {function} [callback] callback function
4515
<.*?>
< table.height() ) {
<.*?><.*?> * @memberof DataTable#oApi
4516
<.*?>
< table.height() ) {
<.*?><.*?> */
4517
<.*?>
< table.height() ) {
<.*?><.*?> function _fnSortListener ( settings, colIdx, append, callback )
4518
<.*?>
< table.height() ) {
<.*?><.*?> {
4519
<.*?>
< table.height() ) {
<.*?><.*?> var col = settings.aoColumns[ colIdx ];
4520
<.*?>
< table.height() ) {
<.*?><.*?> var sorting = settings.aaSorting;
4521
<.*?>
< table.height() ) {
<.*?><.*?> var asSorting = col.asSorting;
4522
<.*?>
< table.height() ) {
<.*?><.*?> var nextSortIdx;
4523
<.*?>
< table.height() ) {
<.*?><.*?> var next = function ( a ) {
4524
<.*?>
< table.height() ) {
<.*?><.*?> var idx = a._idx;
4525
<.*?>
< table.height() ) {
<.*?><.*?> if ( idx === undefined ) {
4526
<.*?>
< table.height() ) {
<.*?><.*?> idx = $.inArray( a[1], asSorting );
4527
<.*?>
< table.height() ) {
<.*?><.*?> }
4528
 
4529
<.*?>
< table.height() ) {
<.*?><.*?> return idx+1 >= asSorting.length ? 0 : idx+1;
4530
<.*?>
< table.height() ) {
<.*?><.*?> };
4531
 
4532
<.*?>
< table.height() ) {
<.*?><.*?> // If appending the sort then we are multi-column sorting
4533
<.*?>
< table.height() ) {
<.*?><.*?> if ( append && settings.oFeatures.bSortMulti ) {
4534
<.*?>
< table.height() ) {
<.*?><.*?> // Are we already doing some kind of sort on this column?
4535
<.*?>
< table.height() ) {
<.*?><.*?> var sortIdx = $.inArray( colIdx, _pluck(sorting, '0') );
4536
 
4537
<.*?>
< table.height() ) {
<.*?><.*?> if ( sortIdx !== -1 ) {
4538
<.*?>
< table.height() ) {
<.*?><.*?> // Yes, modify the sort
4539
<.*?>
< table.height() ) {
<.*?><.*?> nextSortIdx = next( sorting[sortIdx] );
4540
 
4541
<.*?>
< table.height() ) {
<.*?><.*?> sorting[sortIdx][1] = asSorting[ nextSortIdx ];
4542
<.*?>
< table.height() ) {
<.*?><.*?> sorting[sortIdx]._idx = nextSortIdx;
4543
<.*?>
< table.height() ) {
<.*?><.*?> }
4544
<.*?>
< table.height() ) {
<.*?><.*?> else {
4545
<.*?>
< table.height() ) {
<.*?><.*?> // No sort on this column yet
4546
<.*?>
< table.height() ) {
<.*?><.*?> sorting.push( [ colIdx, asSorting[0], 0 ] );
4547
<.*?>
< table.height() ) {
<.*?><.*?> sorting[sorting.length-1]._idx = 0;
4548
<.*?>
< table.height() ) {
<.*?><.*?> }
4549
<.*?>
< table.height() ) {
<.*?><.*?> }
4550
<.*?>
< table.height() ) {
<.*?><.*?> else if ( sorting.length && sorting[0][0] == colIdx ) {
4551
<.*?>
< table.height() ) {
<.*?><.*?> // Single column - already sorting on this column, modify the sort
4552
<.*?>
< table.height() ) {
<.*?><.*?> nextSortIdx = next( sorting[0] );
4553
 
4554
<.*?>
< table.height() ) {
<.*?><.*?> sorting.length = 1;
4555
<.*?>
< table.height() ) {
<.*?><.*?> sorting[0][1] = asSorting[ nextSortIdx ];
4556
<.*?>
< table.height() ) {
<.*?><.*?> sorting[0]._idx = nextSortIdx;
4557
<.*?>
< table.height() ) {
<.*?><.*?> }
4558
<.*?>
< table.height() ) {
<.*?><.*?> else {
4559
<.*?>
< table.height() ) {
<.*?><.*?> // Single column - sort only on this column
4560
<.*?>
< table.height() ) {
<.*?><.*?> sorting.length = 0;
4561
<.*?>
< table.height() ) {
<.*?><.*?> sorting.push( [ colIdx, asSorting[0] ] );
4562
<.*?>
< table.height() ) {
<.*?><.*?> sorting[0]._idx = 0;
4563
<.*?>
< table.height() ) {
<.*?><.*?> }
4564
 
4565
<.*?>
< table.height() ) {
<.*?><.*?> // Run the sort by calling a full redraw
4566
<.*?>
< table.height() ) {
<.*?><.*?> _fnReDraw( settings );
4567
 
4568
<.*?>
< table.height() ) {
<.*?><.*?> // callback used for async user interaction
4569
<.*?>
< table.height() ) {
<.*?><.*?> if ( typeof callback == 'function' ) {
4570
<.*?>
< table.height() ) {
<.*?><.*?> callback( settings );
4571
<.*?>
< table.height() ) {
<.*?><.*?> }
4572
<.*?>
< table.height() ) {
<.*?><.*?> }
4573
 
4574
 
4575
<.*?>
< table.height() ) {
<.*?><.*?> /**
4576
<.*?>
< table.height() ) {
<.*?><.*?> * Attach a sort handler (click) to a node
4577
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} settings dataTables settings object
4578
<.*?>
< table.height() ) {
<.*?><.*?> * @param {node} attachTo node to attach the handler to
4579
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} colIdx column sorting index
4580
<.*?>
< table.height() ) {
<.*?><.*?> * @param {function} [callback] callback function
4581
<.*?>
< table.height() ) {
<.*?><.*?> * @memberof DataTable#oApi
4582
<.*?>
< table.height() ) {
<.*?><.*?> */
4583
<.*?>
< table.height() ) {
<.*?><.*?> function _fnSortAttachListener ( settings, attachTo, colIdx, callback )
4584
<.*?>
< table.height() ) {
<.*?><.*?> {
4585
<.*?>
< table.height() ) {
<.*?><.*?> var col = settings.aoColumns[ colIdx ];
4586
 
4587
<.*?>
< table.height() ) {
<.*?><.*?> _fnBindAction( attachTo, {}, function (e) {
4588
<.*?>
< table.height() ) {
<.*?><.*?> /* If the column is not sortable - don't to anything */
4589
<.*?>
< table.height() ) {
<.*?><.*?> if ( col.bSortable === false ) {
4590
<.*?>
< table.height() ) {
<.*?><.*?> return;
4591
<.*?>
< table.height() ) {
<.*?><.*?> }
4592
 
4593
<.*?>
< table.height() ) {
<.*?><.*?> // If processing is enabled use a timeout to allow the processing
4594
<.*?>
< table.height() ) {
<.*?><.*?> // display to be shown - otherwise to it synchronously
4595
<.*?>
< table.height() ) {
<.*?><.*?> if ( settings.oFeatures.bProcessing ) {
4596
<.*?>
< table.height() ) {
<.*?><.*?> _fnProcessingDisplay( settings, true );
4597
 
4598
<.*?>
< table.height() ) {
<.*?><.*?> setTimeout( function() {
4599
<.*?>
< table.height() ) {
<.*?><.*?> _fnSortListener( settings, colIdx, e.shiftKey, callback );
4600
 
4601
<.*?>
< table.height() ) {
<.*?><.*?> // In server-side processing, the draw callback will remove the
4602
<.*?>
< table.height() ) {
<.*?><.*?> // processing display
4603
<.*?>
< table.height() ) {
<.*?><.*?> if ( _fnDataSource( settings ) !== 'ssp' ) {
4604
<.*?>
< table.height() ) {
<.*?><.*?> _fnProcessingDisplay( settings, false );
4605
<.*?>
< table.height() ) {
<.*?><.*?> }
4606
<.*?>
< table.height() ) {
<.*?><.*?> }, 0 );
4607
<.*?>
< table.height() ) {
<.*?><.*?> }
4608
<.*?>
< table.height() ) {
<.*?><.*?> else {
4609
<.*?>
< table.height() ) {
<.*?><.*?> _fnSortListener( settings, colIdx, e.shiftKey, callback );
4610
<.*?>
< table.height() ) {
<.*?><.*?> }
4611
<.*?>
< table.height() ) {
<.*?><.*?> } );
4612
<.*?>
< table.height() ) {
<.*?><.*?> }
4613
 
4614
 
4615
<.*?>
< table.height() ) {
<.*?><.*?> /**
4616
<.*?>
< table.height() ) {
<.*?><.*?> * Set the sorting classes on table's body, Note: it is safe to call this function
4617
<.*?>
< table.height() ) {
<.*?><.*?> * when bSort and bSortClasses are false
4618
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} oSettings dataTables settings object
4619
<.*?>
< table.height() ) {
<.*?><.*?> * @memberof DataTable#oApi
4620
<.*?>
< table.height() ) {
<.*?><.*?> */
4621
<.*?>
< table.height() ) {
<.*?><.*?> function _fnSortingClasses( settings )
4622
<.*?>
< table.height() ) {
<.*?><.*?> {
4623
<.*?>
< table.height() ) {
<.*?><.*?> var oldSort = settings.aLastSort;
4624
<.*?>
< table.height() ) {
<.*?><.*?> var sortClass = settings.oClasses.sSortColumn;
4625
<.*?>
< table.height() ) {
<.*?><.*?> var sort = _fnSortFlatten( settings );
4626
<.*?>
< table.height() ) {
<.*?><.*?> var features = settings.oFeatures;
4627
<.*?>
< table.height() ) {
<.*?><.*?> var i, ien, colIdx;
4628
 
4629
<.*?>
< table.height() ) {
<.*?><.*?> if ( features.bSort && features.bSortClasses ) {
4630
<.*?>
< table.height() ) {
<.*?><.*?> // Remove old sorting classes
4631
<.*?>
< table.height() ) {
<.*?><.*?> for ( i=0, ien=oldSort.length ; i<ien ; i++ ) {
4632
<.*?>
< table.height() ) {
<.*?><.*?> colIdx = oldSort[i].src;
4633
 
4634
<.*?>
< table.height() ) {
<.*?><.*?> // Remove column sorting
4635
<.*?>
< table.height() ) {
<.*?><.*?> $( _pluck( settings.aoData, 'anCells', colIdx ) )
4636
<.*?>
< table.height() ) {
<.*?><.*?> .removeClass( sortClass + (i<2 ? i+1 : 3) );
4637
<.*?>
< table.height() ) {
<.*?><.*?> }
4638
 
4639
<.*?>
< table.height() ) {
<.*?><.*?> // Add new column sorting
4640
<.*?>
< table.height() ) {
<.*?><.*?> for ( i=0, ien=sort.length ; i<ien ; i++ ) {
4641
<.*?>
< table.height() ) {
<.*?><.*?> colIdx = sort[i].src;
4642
 
4643
<.*?>
< table.height() ) {
<.*?><.*?> $( _pluck( settings.aoData, 'anCells', colIdx ) )
4644
<.*?>
< table.height() ) {
<.*?><.*?> .addClass( sortClass + (i<2 ? i+1 : 3) );
4645
<.*?>
< table.height() ) {
<.*?><.*?> }
4646
<.*?>
< table.height() ) {
<.*?><.*?> }
4647
 
4648
<.*?>
< table.height() ) {
<.*?><.*?> settings.aLastSort = sort;
4649
<.*?>
< table.height() ) {
<.*?><.*?> }
4650
 
4651
 
4652
<.*?>
< table.height() ) {
<.*?><.*?> // Get the data to sort a column, be it from cache, fresh (populating the
4653
<.*?>
< table.height() ) {
<.*?><.*?> // cache), or from a sort formatter
4654
<.*?>
< table.height() ) {
<.*?><.*?> function _fnSortData( settings, idx )
4655
<.*?>
< table.height() ) {
<.*?><.*?> {
4656
<.*?>
< table.height() ) {
<.*?><.*?> // Custom sorting function - provided by the sort data type
4657
<.*?>
< table.height() ) {
<.*?><.*?> var column = settings.aoColumns[ idx ];
4658
<.*?>
< table.height() ) {
<.*?><.*?> var customSort = DataTable.ext.order[ column.sSortDataType ];
4659
<.*?>
< table.height() ) {
<.*?><.*?> var customData;
4660
 
4661
<.*?>
< table.height() ) {
<.*?><.*?> if ( customSort ) {
4662
<.*?>
< table.height() ) {
<.*?><.*?> customData = customSort.call( settings.oInstance, settings, idx,
4663
<.*?>
< table.height() ) {
<.*?><.*?> _fnColumnIndexToVisible( settings, idx )
4664
<.*?>
< table.height() ) {
<.*?><.*?> );
4665
<.*?>
< table.height() ) {
<.*?><.*?> }
4666
 
4667
<.*?>
< table.height() ) {
<.*?><.*?> // Use / populate cache
4668
<.*?>
< table.height() ) {
<.*?><.*?> var row, cellData;
4669
<.*?>
< table.height() ) {
<.*?><.*?> var formatter = DataTable.ext.type.order[ column.sType+"-pre" ];
4670
 
4671
<.*?>
< table.height() ) {
<.*?><.*?> for ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
4672
<.*?>
< table.height() ) {
<.*?><.*?> row = settings.aoData[i];
4673
 
4674
<.*?>
< table.height() ) {
<.*?><.*?> if ( ! row._aSortData ) {
4675
<.*?>
< table.height() ) {
<.*?><.*?> row._aSortData = [];
4676
<.*?>
< table.height() ) {
<.*?><.*?> }
4677
 
4678
<.*?>
< table.height() ) {
<.*?><.*?> if ( ! row._aSortData[idx] || customSort ) {
4679
<.*?>
< table.height() ) {
<.*?><.*?> cellData = customSort ?
4680
<.*?>
< table.height() ) {
<.*?><.*?> customData[i] : // If there was a custom sort function, use data from there
4681
<.*?>
< table.height() ) {
<.*?><.*?> _fnGetCellData( settings, i, idx, 'sort' );
4682
 
4683
<.*?>
< table.height() ) {
<.*?><.*?> row._aSortData[ idx ] = formatter ?
4684
<.*?>
< table.height() ) {
<.*?><.*?> formatter( cellData ) :
4685
<.*?>
< table.height() ) {
<.*?><.*?> cellData;
4686
<.*?>
< table.height() ) {
<.*?><.*?> }
4687
<.*?>
< table.height() ) {
<.*?><.*?> }
4688
<.*?>
< table.height() ) {
<.*?><.*?> }
4689
 
4690
 
4691
 
4692
<.*?>
< table.height() ) {
<.*?><.*?> /**
4693
<.*?>
< table.height() ) {
<.*?><.*?> * Save the state of a table
4694
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} oSettings dataTables settings object
4695
<.*?>
< table.height() ) {
<.*?><.*?> * @memberof DataTable#oApi
4696
<.*?>
< table.height() ) {
<.*?><.*?> */
4697
<.*?>
< table.height() ) {
<.*?><.*?> function _fnSaveState ( oSettings )
4698
<.*?>
< table.height() ) {
<.*?><.*?> {
4699
<.*?>
< table.height() ) {
<.*?><.*?> if ( !oSettings.oFeatures.bStateSave || oSettings.bDestroying )
4700
<.*?>
< table.height() ) {
<.*?><.*?> {
4701
<.*?>
< table.height() ) {
<.*?><.*?> return;
4702
<.*?>
< table.height() ) {
<.*?><.*?> }
4703
 
4704
<.*?>
< table.height() ) {
<.*?><.*?> /* Store the interesting variables */
4705
<.*?>
< table.height() ) {
<.*?><.*?> var i, iLen;
4706
<.*?>
< table.height() ) {
<.*?><.*?> var oState = {
4707
<.*?>
< table.height() ) {
<.*?><.*?> "iCreate": +new Date(),
4708
<.*?>
< table.height() ) {
<.*?><.*?> "iStart": oSettings._iDisplayStart,
4709
<.*?>
< table.height() ) {
<.*?><.*?> "iLength": oSettings._iDisplayLength,
4710
<.*?>
< table.height() ) {
<.*?><.*?> "aaSorting": $.extend( true, [], oSettings.aaSorting ),
4711
<.*?>
< table.height() ) {
<.*?><.*?> "oSearch": $.extend( true, {}, oSettings.oPreviousSearch ),
4712
<.*?>
< table.height() ) {
<.*?><.*?> "aoSearchCols": $.extend( true, [], oSettings.aoPreSearchCols ),
4713
<.*?>
< table.height() ) {
<.*?><.*?> "abVisCols": _pluck( oSettings.aoColumns, 'bVisible' )
4714
<.*?>
< table.height() ) {
<.*?><.*?> };
4715
 
4716
<.*?>
< table.height() ) {
<.*?><.*?> _fnCallbackFire( oSettings, "aoStateSaveParams", 'stateSaveParams', [oSettings, oState] );
4717
 
4718
<.*?>
< table.height() ) {
<.*?><.*?> oSettings.fnStateSaveCallback.call( oSettings.oInstance, oSettings, oState );
4719
<.*?>
< table.height() ) {
<.*?><.*?> }
4720
 
4721
 
4722
<.*?>
< table.height() ) {
<.*?><.*?> /**
4723
<.*?>
< table.height() ) {
<.*?><.*?> * Attempt to load a saved table state
4724
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} oSettings dataTables settings object
4725
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} oInit DataTables init object so we can override settings
4726
<.*?>
< table.height() ) {
<.*?><.*?> * @memberof DataTable#oApi
4727
<.*?>
< table.height() ) {
<.*?><.*?> */
4728
<.*?>
< table.height() ) {
<.*?><.*?> function _fnLoadState ( oSettings, oInit )
4729
<.*?>
< table.height() ) {
<.*?><.*?> {
4730
<.*?>
< table.height() ) {
<.*?><.*?> var i, ien;
4731
<.*?>
< table.height() ) {
<.*?><.*?> var columns = oSettings.aoColumns;
4732
 
4733
<.*?>
< table.height() ) {
<.*?><.*?> if ( ! oSettings.oFeatures.bStateSave ) {
4734
<.*?>
< table.height() ) {
<.*?><.*?> return;
4735
<.*?>
< table.height() ) {
<.*?><.*?> }
4736
 
4737
<.*?>
< table.height() ) {
<.*?><.*?> var oData = oSettings.fnStateLoadCallback.call( oSettings.oInstance, oSettings );
4738
<.*?>
< table.height() ) {
<.*?><.*?> if ( !oData ) {
4739
<.*?>
< table.height() ) {
<.*?><.*?> return;
4740
<.*?>
< table.height() ) {
<.*?><.*?> }
4741
 
4742
<.*?>
< table.height() ) {
<.*?><.*?> /* Allow custom and plug-in manipulation functions to alter the saved data set and
4743
<.*?>
< table.height() ) {
<.*?><.*?> * cancelling of loading by returning false
4744
<.*?>
< table.height() ) {
<.*?><.*?> */
4745
<.*?>
< table.height() ) {
<.*?><.*?> var abStateLoad = _fnCallbackFire( oSettings, 'aoStateLoadParams', 'stateLoadParams', [oSettings, oData] );
4746
<.*?>
< table.height() ) {
<.*?><.*?> if ( $.inArray( false, abStateLoad ) !== -1 ) {
4747
<.*?>
< table.height() ) {
<.*?><.*?> return;
4748
<.*?>
< table.height() ) {
<.*?><.*?> }
4749
 
4750
<.*?>
< table.height() ) {
<.*?><.*?> /* Reject old data */
4751
<.*?>
< table.height() ) {
<.*?><.*?> var duration = oSettings.iStateDuration;
4752
<.*?>
< table.height() ) {
<.*?><.*?> if ( duration > 0 && oData.iCreate < +new Date() - (duration*1000) ) {
4753
<.*?>
< table.height() ) {
<.*?><.*?> return;
4754
<.*?>
< table.height() ) {
<.*?><.*?> }
4755
 
4756
<.*?>
< table.height() ) {
<.*?><.*?> // Number of columns have changed - all bets are off, no restore of settings
4757
<.*?>
< table.height() ) {
<.*?><.*?> if ( columns.length !== oData.aoSearchCols.length ) {
4758
<.*?>
< table.height() ) {
<.*?><.*?> return;
4759
<.*?>
< table.height() ) {
<.*?><.*?> }
4760
 
4761
<.*?>
< table.height() ) {
<.*?><.*?> /* Store the saved state so it might be accessed at any time */
4762
<.*?>
< table.height() ) {
<.*?><.*?> oSettings.oLoadedState = $.extend( true, {}, oData );
4763
 
4764
<.*?>
< table.height() ) {
<.*?><.*?> /* Restore key features */
4765
<.*?>
< table.height() ) {
<.*?><.*?> oSettings._iDisplayStart = oData.iStart;
4766
<.*?>
< table.height() ) {
<.*?><.*?> oSettings.iInitDisplayStart = oData.iStart;
4767
<.*?>
< table.height() ) {
<.*?><.*?> oSettings._iDisplayLength = oData.iLength;
4768
<.*?>
< table.height() ) {
<.*?><.*?> oSettings.aaSorting = $.map( oData.aaSorting, function ( col, i ) {
4769
<.*?>
< table.height() ) {
<.*?><.*?> return col[0] >= columns.length ?
4770
<.*?>
< table.height() ) {
<.*?><.*?> [ 0, col[1] ] :
4771
<.*?>
< table.height() ) {
<.*?><.*?> col;
4772
<.*?>
< table.height() ) {
<.*?><.*?> } );
4773
 
4774
<.*?>
< table.height() ) {
<.*?><.*?> /* Search filtering */
4775
<.*?>
< table.height() ) {
<.*?><.*?> $.extend( oSettings.oPreviousSearch, oData.oSearch );
4776
<.*?>
< table.height() ) {
<.*?><.*?> $.extend( true, oSettings.aoPreSearchCols, oData.aoSearchCols );
4777
 
4778
<.*?>
< table.height() ) {
<.*?><.*?> /* Column visibility state */
4779
<.*?>
< table.height() ) {
<.*?><.*?> var visColumns = oData.abVisCols;
4780
<.*?>
< table.height() ) {
<.*?><.*?> for ( i=0, ien=visColumns.length ; i<ien ; i++ ) {
4781
<.*?>
< table.height() ) {
<.*?><.*?> columns[i].bVisible = visColumns[i];
4782
<.*?>
< table.height() ) {
<.*?><.*?> }
4783
 
4784
<.*?>
< table.height() ) {
<.*?><.*?> _fnCallbackFire( oSettings, 'aoStateLoaded', 'stateLoaded', [oSettings, oData] );
4785
<.*?>
< table.height() ) {
<.*?><.*?> }
4786
 
4787
 
4788
<.*?>
< table.height() ) {
<.*?><.*?> /**
4789
<.*?>
< table.height() ) {
<.*?><.*?> * Return the settings object for a particular table
4790
<.*?>
< table.height() ) {
<.*?><.*?> * @param {node} table table we are using as a dataTable
4791
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {object} Settings object - or null if not found
4792
<.*?>
< table.height() ) {
<.*?><.*?> * @memberof DataTable#oApi
4793
<.*?>
< table.height() ) {
<.*?><.*?> */
4794
<.*?>
< table.height() ) {
<.*?><.*?> function _fnSettingsFromNode ( table )
4795
<.*?>
< table.height() ) {
<.*?><.*?> {
4796
<.*?>
< table.height() ) {
<.*?><.*?> var settings = DataTable.settings;
4797
<.*?>
< table.height() ) {
<.*?><.*?> var idx = $.inArray( table, _pluck( settings, 'nTable' ) );
4798
 
4799
<.*?>
< table.height() ) {
<.*?><.*?> return idx !== -1 ?
4800
<.*?>
< table.height() ) {
<.*?><.*?> settings[ idx ] :
4801
<.*?>
< table.height() ) {
<.*?><.*?> null;
4802
<.*?>
< table.height() ) {
<.*?><.*?> }
4803
 
4804
 
4805
<.*?>
< table.height() ) {
<.*?><.*?> /**
4806
<.*?>
< table.height() ) {
<.*?><.*?> * Log an error message
4807
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} settings dataTables settings object
4808
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} level log error messages, or display them to the user
4809
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string} msg error message
4810
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} tn Technical note id to get more information about the error.
4811
<.*?>
< table.height() ) {
<.*?><.*?> * @memberof DataTable#oApi
4812
<.*?>
< table.height() ) {
<.*?><.*?> */
4813
<.*?>
< table.height() ) {
<.*?><.*?> function _fnLog( settings, level, msg, tn )
4814
<.*?>
< table.height() ) {
<.*?><.*?> {
4815
<.*?>
< table.height() ) {
<.*?><.*?> msg = 'DataTables warning: '+
4816
<.*?>
< table.height() ) {
<.*?><.*?> (settings!==null ? 'table id='+settings.sTableId+' - ' : '')+msg;
4817
 
4818
<.*?>
< table.height() ) {
<.*?><.*?> if ( tn ) {
4819
<.*?>
< table.height() ) {
<.*?><.*?> msg += '. For more information about this error, please see '+
4820
<.*?>
< table.height() ) {
<.*?><.*?> 'http://datatables.net/tn/'+tn;
4821
<.*?>
< table.height() ) {
<.*?><.*?> }
4822
 
4823
<.*?>
< table.height() ) {
<.*?><.*?> if ( ! level ) {
4824
<.*?>
< table.height() ) {
<.*?><.*?> // Backwards compatibility pre 1.10
4825
<.*?>
< table.height() ) {
<.*?><.*?> var ext = DataTable.ext;
4826
<.*?>
< table.height() ) {
<.*?><.*?> var type = ext.sErrMode || ext.errMode;
4827
 
4828
<.*?>
< table.height() ) {
<.*?><.*?> if ( type == 'alert' ) {
4829
<.*?>
< table.height() ) {
<.*?><.*?> alert( msg );
4830
<.*?>
< table.height() ) {
<.*?><.*?> }
4831
<.*?>
< table.height() ) {
<.*?><.*?> else {
4832
<.*?>
< table.height() ) {
<.*?><.*?> throw new Error(msg);
4833
<.*?>
< table.height() ) {
<.*?><.*?> }
4834
<.*?>
< table.height() ) {
<.*?><.*?> }
4835
<.*?>
< table.height() ) {
<.*?><.*?> else if ( window.console && console.log ) {
4836
<.*?>
< table.height() ) {
<.*?><.*?> console.log( msg );
4837
<.*?>
< table.height() ) {
<.*?><.*?> }
4838
<.*?>
< table.height() ) {
<.*?><.*?> }
4839
 
4840
 
4841
<.*?>
< table.height() ) {
<.*?><.*?> /**
4842
<.*?>
< table.height() ) {
<.*?><.*?> * See if a property is defined on one object, if so assign it to the other object
4843
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} ret target object
4844
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} src source object
4845
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string} name property
4846
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string} [mappedName] name to map too - optional, name used if not given
4847
<.*?>
< table.height() ) {
<.*?><.*?> * @memberof DataTable#oApi
4848
<.*?>
< table.height() ) {
<.*?><.*?> */
4849
<.*?>
< table.height() ) {
<.*?><.*?> function _fnMap( ret, src, name, mappedName )
4850
<.*?>
< table.height() ) {
<.*?><.*?> {
4851
<.*?>
< table.height() ) {
<.*?><.*?> if ( $.isArray( name ) ) {
4852
<.*?>
< table.height() ) {
<.*?><.*?> $.each( name, function (i, val) {
4853
<.*?>
< table.height() ) {
<.*?><.*?> if ( $.isArray( val ) ) {
4854
<.*?>
< table.height() ) {
<.*?><.*?> _fnMap( ret, src, val[0], val[1] );
4855
<.*?>
< table.height() ) {
<.*?><.*?> }
4856
<.*?>
< table.height() ) {
<.*?><.*?> else {
4857
<.*?>
< table.height() ) {
<.*?><.*?> _fnMap( ret, src, val );
4858
<.*?>
< table.height() ) {
<.*?><.*?> }
4859
<.*?>
< table.height() ) {
<.*?><.*?> } );
4860
 
4861
<.*?>
< table.height() ) {
<.*?><.*?> return;
4862
<.*?>
< table.height() ) {
<.*?><.*?> }
4863
 
4864
<.*?>
< table.height() ) {
<.*?><.*?> if ( mappedName === undefined ) {
4865
<.*?>
< table.height() ) {
<.*?><.*?> mappedName = name;
4866
<.*?>
< table.height() ) {
<.*?><.*?> }
4867
 
4868
<.*?>
< table.height() ) {
<.*?><.*?> if ( src[name] !== undefined ) {
4869
<.*?>
< table.height() ) {
<.*?><.*?> ret[mappedName] = src[name];
4870
<.*?>
< table.height() ) {
<.*?><.*?> }
4871
<.*?>
< table.height() ) {
<.*?><.*?> }
4872
 
4873
 
4874
<.*?>
< table.height() ) {
<.*?><.*?> /**
4875
<.*?>
< table.height() ) {
<.*?><.*?> * Extend objects - very similar to jQuery.extend, but deep copy objects, and
4876
<.*?>
< table.height() ) {
<.*?><.*?> * shallow copy arrays. The reason we need to do this, is that we don't want to
4877
<.*?>
< table.height() ) {
<.*?><.*?> * deep copy array init values (such as aaSorting) since the dev wouldn't be
4878
<.*?>
< table.height() ) {
<.*?><.*?> * able to override them, but we do want to deep copy arrays.
4879
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} out Object to extend
4880
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} extender Object from which the properties will be applied to
4881
<.*?>
< table.height() ) {
<.*?><.*?> * out
4882
<.*?>
< table.height() ) {
<.*?><.*?> * @param {boolean} breakRefs If true, then arrays will be sliced to take an
4883
<.*?>
< table.height() ) {
<.*?><.*?> * independent copy with the exception of the `data` or `aaData` parameters
4884
<.*?>
< table.height() ) {
<.*?><.*?> * if they are present. This is so you can pass in a collection to
4885
<.*?>
< table.height() ) {
<.*?><.*?> * DataTables and have that used as your data source without breaking the
4886
<.*?>
< table.height() ) {
<.*?><.*?> * references
4887
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {object} out Reference, just for convenience - out === the return.
4888
<.*?>
< table.height() ) {
<.*?><.*?> * @memberof DataTable#oApi
4889
<.*?>
< table.height() ) {
<.*?><.*?> * @todo This doesn't take account of arrays inside the deep copied objects.
4890
<.*?>
< table.height() ) {
<.*?><.*?> */
4891
<.*?>
< table.height() ) {
<.*?><.*?> function _fnExtend( out, extender, breakRefs )
4892
<.*?>
< table.height() ) {
<.*?><.*?> {
4893
<.*?>
< table.height() ) {
<.*?><.*?> var val;
4894
 
4895
<.*?>
< table.height() ) {
<.*?><.*?> for ( var prop in extender ) {
4896
<.*?>
< table.height() ) {
<.*?><.*?> if ( extender.hasOwnProperty(prop) ) {
4897
<.*?>
< table.height() ) {
<.*?><.*?> val = extender[prop];
4898
 
4899
<.*?>
< table.height() ) {
<.*?><.*?> if ( $.isPlainObject( val ) ) {
4900
<.*?>
< table.height() ) {
<.*?><.*?> if ( ! $.isPlainObject( out[prop] ) ) {
4901
<.*?>
< table.height() ) {
<.*?><.*?> out[prop] = {};
4902
<.*?>
< table.height() ) {
<.*?><.*?> }
4903
<.*?>
< table.height() ) {
<.*?><.*?> $.extend( true, out[prop], val );
4904
<.*?>
< table.height() ) {
<.*?><.*?> }
4905
<.*?>
< table.height() ) {
<.*?><.*?> else if ( breakRefs && prop !== 'data' && prop !== 'aaData' && $.isArray(val) ) {
4906
<.*?>
< table.height() ) {
<.*?><.*?> out[prop] = val.slice();
4907
<.*?>
< table.height() ) {
<.*?><.*?> }
4908
<.*?>
< table.height() ) {
<.*?><.*?> else {
4909
<.*?>
< table.height() ) {
<.*?><.*?> out[prop] = val;
4910
<.*?>
< table.height() ) {
<.*?><.*?> }
4911
<.*?>
< table.height() ) {
<.*?><.*?> }
4912
<.*?>
< table.height() ) {
<.*?><.*?> }
4913
 
4914
<.*?>
< table.height() ) {
<.*?><.*?> return out;
4915
<.*?>
< table.height() ) {
<.*?><.*?> }
4916
 
4917
 
4918
<.*?>
< table.height() ) {
<.*?><.*?> /**
4919
<.*?>
< table.height() ) {
<.*?><.*?> * Bind an event handers to allow a click or return key to activate the callback.
4920
<.*?>
< table.height() ) {
<.*?><.*?> * This is good for accessibility since a return on the keyboard will have the
4921
<.*?>
< table.height() ) {
<.*?><.*?> * same effect as a click, if the element has focus.
4922
<.*?>
< table.height() ) {
<.*?><.*?> * @param {element} n Element to bind the action to
4923
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} oData Data object to pass to the triggered function
4924
<.*?>
< table.height() ) {
<.*?><.*?> * @param {function} fn Callback function for when the event is triggered
4925
<.*?>
< table.height() ) {
<.*?><.*?> * @memberof DataTable#oApi
4926
<.*?>
< table.height() ) {
<.*?><.*?> */
4927
<.*?>
< table.height() ) {
<.*?><.*?> function _fnBindAction( n, oData, fn )
4928
<.*?>
< table.height() ) {
<.*?><.*?> {
4929
<.*?>
< table.height() ) {
<.*?><.*?> $(n)
4930
<.*?>
< table.height() ) {
<.*?><.*?> .bind( 'click.DT', oData, function (e) {
4931
<.*?>
< table.height() ) {
<.*?><.*?> n.blur(); // Remove focus outline for mouse users
4932
<.*?>
< table.height() ) {
<.*?><.*?> fn(e);
4933
<.*?>
< table.height() ) {
<.*?><.*?> } )
4934
<.*?>
< table.height() ) {
<.*?><.*?> .bind( 'keypress.DT', oData, function (e){
4935
<.*?>
< table.height() ) {
<.*?><.*?> if ( e.which === 13 ) {
4936
<.*?>
< table.height() ) {
<.*?><.*?> e.preventDefault();
4937
<.*?>
< table.height() ) {
<.*?><.*?> fn(e);
4938
<.*?>
< table.height() ) {
<.*?><.*?> }
4939
<.*?>
< table.height() ) {
<.*?><.*?> } )
4940
<.*?>
< table.height() ) {
<.*?><.*?> .bind( 'selectstart.DT', function () {
4941
<.*?>
< table.height() ) {
<.*?><.*?> /* Take the brutal approach to cancelling text selection */
4942
<.*?>
< table.height() ) {
<.*?><.*?> return false;
4943
<.*?>
< table.height() ) {
<.*?><.*?> } );
4944
<.*?>
< table.height() ) {
<.*?><.*?> }
4945
 
4946
 
4947
<.*?>
< table.height() ) {
<.*?><.*?> /**
4948
<.*?>
< table.height() ) {
<.*?><.*?> * Register a callback function. Easily allows a callback function to be added to
4949
<.*?>
< table.height() ) {
<.*?><.*?> * an array store of callback functions that can then all be called together.
4950
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} oSettings dataTables settings object
4951
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string} sStore Name of the array storage for the callbacks in oSettings
4952
<.*?>
< table.height() ) {
<.*?><.*?> * @param {function} fn Function to be called back
4953
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string} sName Identifying name for the callback (i.e. a label)
4954
<.*?>
< table.height() ) {
<.*?><.*?> * @memberof DataTable#oApi
4955
<.*?>
< table.height() ) {
<.*?><.*?> */
4956
<.*?>
< table.height() ) {
<.*?><.*?> function _fnCallbackReg( oSettings, sStore, fn, sName )
4957
<.*?>
< table.height() ) {
<.*?><.*?> {
4958
<.*?>
< table.height() ) {
<.*?><.*?> if ( fn )
4959
<.*?>
< table.height() ) {
<.*?><.*?> {
4960
<.*?>
< table.height() ) {
<.*?><.*?> oSettings[sStore].push( {
4961
<.*?>
< table.height() ) {
<.*?><.*?> "fn": fn,
4962
<.*?>
< table.height() ) {
<.*?><.*?> "sName": sName
4963
<.*?>
< table.height() ) {
<.*?><.*?> } );
4964
<.*?>
< table.height() ) {
<.*?><.*?> }
4965
<.*?>
< table.height() ) {
<.*?><.*?> }
4966
 
4967
 
4968
<.*?>
< table.height() ) {
<.*?><.*?> /**
4969
<.*?>
< table.height() ) {
<.*?><.*?> * Fire callback functions and trigger events. Note that the loop over the
4970
<.*?>
< table.height() ) {
<.*?><.*?> * callback array store is done backwards! Further note that you do not want to
4971
<.*?>
< table.height() ) {
<.*?><.*?> * fire off triggers in time sensitive applications (for example cell creation)
4972
<.*?>
< table.height() ) {
<.*?><.*?> * as its slow.
4973
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} settings dataTables settings object
4974
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string} callbackArr Name of the array storage for the callbacks in
4975
<.*?>
< table.height() ) {
<.*?><.*?> * oSettings
4976
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string} event Name of the jQuery custom event to trigger. If null no
4977
<.*?>
< table.height() ) {
<.*?><.*?> * trigger is fired
4978
<.*?>
< table.height() ) {
<.*?><.*?> * @param {array} args Array of arguments to pass to the callback function /
4979
<.*?>
< table.height() ) {
<.*?><.*?> * trigger
4980
<.*?>
< table.height() ) {
<.*?><.*?> * @memberof DataTable#oApi
4981
<.*?>
< table.height() ) {
<.*?><.*?> */
4982
<.*?>
< table.height() ) {
<.*?><.*?> function _fnCallbackFire( settings, callbackArr, event, args )
4983
<.*?>
< table.height() ) {
<.*?><.*?> {
4984
<.*?>
< table.height() ) {
<.*?><.*?> var ret = [];
4985
 
4986
<.*?>
< table.height() ) {
<.*?><.*?> if ( callbackArr ) {
4987
<.*?>
< table.height() ) {
<.*?><.*?> ret = $.map( settings[callbackArr].slice().reverse(), function (val, i) {
4988
<.*?>
< table.height() ) {
<.*?><.*?> return val.fn.apply( settings.oInstance, args );
4989
<.*?>
< table.height() ) {
<.*?><.*?> } );
4990
<.*?>
< table.height() ) {
<.*?><.*?> }
4991
 
4992
<.*?>
< table.height() ) {
<.*?><.*?> if ( event !== null ) {
4993
<.*?>
< table.height() ) {
<.*?><.*?> $(settings.nTable).trigger( event+'.dt', args );
4994
<.*?>
< table.height() ) {
<.*?><.*?> }
4995
 
4996
<.*?>
< table.height() ) {
<.*?><.*?> return ret;
4997
<.*?>
< table.height() ) {
<.*?><.*?> }
4998
 
4999
 
5000
<.*?>
< table.height() ) {
<.*?><.*?> function _fnLengthOverflow ( settings )
5001
<.*?>
< table.height() ) {
<.*?><.*?> {
5002
<.*?>
< table.height() ) {
<.*?><.*?> var
5003
<.*?>
< table.height() ) {
<.*?><.*?> start = settings._iDisplayStart,
5004
<.*?>
< table.height() ) {
<.*?><.*?> end = settings.fnDisplayEnd(),
5005
<.*?>
< table.height() ) {
<.*?><.*?> len = settings._iDisplayLength;
5006
 
5007
<.*?>
< table.height() ) {
<.*?><.*?> /* If we have space to show extra rows (backing up from the end point - then do so */
5008
<.*?>
< table.height() ) {
<.*?><.*?> if ( end === settings.fnRecordsDisplay() )
5009
<.*?>
< table.height() ) {
<.*?><.*?> {
5010
<.*?>
< table.height() ) {
<.*?><.*?> start = end - len;
5011
<.*?>
< table.height() ) {
<.*?><.*?> }
5012
 
5013
<.*?>
< table.height() ) {
<.*?><.*?> if ( len === -1 || start < 0 )
5014
<.*?>
< table.height() ) {
<.*?><.*?> {
5015
<.*?>
< table.height() ) {
<.*?><.*?> start = 0;
5016
<.*?>
< table.height() ) {
<.*?><.*?> }
5017
 
5018
<.*?>
< table.height() ) {
<.*?><.*?> settings._iDisplayStart = start;
5019
<.*?>
< table.height() ) {
<.*?><.*?> }
5020
 
5021
 
5022
<.*?>
< table.height() ) {
<.*?><.*?> function _fnRenderer( settings, type )
5023
<.*?>
< table.height() ) {
<.*?><.*?> {
5024
<.*?>
< table.height() ) {
<.*?><.*?> var renderer = settings.renderer;
5025
<.*?>
< table.height() ) {
<.*?><.*?> var host = DataTable.ext.renderer[type];
5026
 
5027
<.*?>
< table.height() ) {
<.*?><.*?> if ( $.isPlainObject( renderer ) && renderer[type] ) {
5028
<.*?>
< table.height() ) {
<.*?><.*?> // Specific renderer for this type. If available use it, otherwise use
5029
<.*?>
< table.height() ) {
<.*?><.*?> // the default.
5030
<.*?>
< table.height() ) {
<.*?><.*?> return host[renderer[type]] || host._;
5031
<.*?>
< table.height() ) {
<.*?><.*?> }
5032
<.*?>
< table.height() ) {
<.*?><.*?> else if ( typeof renderer === 'string' ) {
5033
<.*?>
< table.height() ) {
<.*?><.*?> // Common renderer - if there is one available for this type use it,
5034
<.*?>
< table.height() ) {
<.*?><.*?> // otherwise use the default
5035
<.*?>
< table.height() ) {
<.*?><.*?> return host[renderer] || host._;
5036
<.*?>
< table.height() ) {
<.*?><.*?> }
5037
 
5038
<.*?>
< table.height() ) {
<.*?><.*?> // Use the default
5039
<.*?>
< table.height() ) {
<.*?><.*?> return host._;
5040
<.*?>
< table.height() ) {
<.*?><.*?> }
5041
 
5042
 
5043
<.*?>
< table.height() ) {
<.*?><.*?> /**
5044
<.*?>
< table.height() ) {
<.*?><.*?> * Detect the data source being used for the table. Used to simplify the code
5045
<.*?>
< table.height() ) {
<.*?><.*?> * a little (ajax) and to make it compress a little smaller.
5046
<.*?>
< table.height() ) {
<.*?><.*?> *
5047
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} settings dataTables settings object
5048
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {string} Data source
5049
<.*?>
< table.height() ) {
<.*?><.*?> * @memberof DataTable#oApi
5050
<.*?>
< table.height() ) {
<.*?><.*?> */
5051
<.*?>
< table.height() ) {
<.*?><.*?> function _fnDataSource ( settings )
5052
<.*?>
< table.height() ) {
<.*?><.*?> {
5053
<.*?>
< table.height() ) {
<.*?><.*?> if ( settings.oFeatures.bServerSide ) {
5054
<.*?>
< table.height() ) {
<.*?><.*?> return 'ssp';
5055
<.*?>
< table.height() ) {
<.*?><.*?> }
5056
<.*?>
< table.height() ) {
<.*?><.*?> else if ( settings.ajax || settings.sAjaxSource ) {
5057
<.*?>
< table.height() ) {
<.*?><.*?> return 'ajax';
5058
<.*?>
< table.height() ) {
<.*?><.*?> }
5059
<.*?>
< table.height() ) {
<.*?><.*?> return 'dom';
5060
<.*?>
< table.height() ) {
<.*?><.*?> }
5061
 
5062
 
5063
<.*?>
< table.height() ) {
<.*?><.*?> DataTable = function( options )
5064
<.*?>
< table.height() ) {
<.*?><.*?> {
5065
<.*?>
< table.height() ) {
<.*?><.*?> /**
5066
<.*?>
< table.height() ) {
<.*?><.*?> * Perform a jQuery selector action on the table's TR elements (from the tbody) and
5067
<.*?>
< table.height() ) {
<.*?><.*?> * return the resulting jQuery object.
5068
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string|node|jQuery} sSelector jQuery selector or node collection to act on
5069
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} [oOpts] Optional parameters for modifying the rows to be included
5070
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string} [oOpts.filter=none] Select TR elements that meet the current filter
5071
<.*?>
< table.height() ) {
<.*?><.*?> * criterion ("applied") or all TR elements (i.e. no filter).
5072
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string} [oOpts.order=current] Order of the TR elements in the processed array.
5073
<.*?>
< table.height() ) {
<.*?><.*?> * Can be either 'current', whereby the current sorting of the table is used, or
5074
<.*?>
< table.height() ) {
<.*?><.*?> * 'original' whereby the original order the data was read into the table is used.
5075
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string} [oOpts.page=all] Limit the selection to the currently displayed page
5076
<.*?>
< table.height() ) {
<.*?><.*?> * ("current") or not ("all"). If 'current' is given, then order is assumed to be
5077
<.*?>
< table.height() ) {
<.*?><.*?> * 'current' and filter is 'applied', regardless of what they might be given as.
5078
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {object} jQuery object, filtered by the given selector.
5079
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API
5080
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
5081
<.*?>
< table.height() ) {
<.*?><.*?> *
5082
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5083
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5084
<.*?>
< table.height() ) {
<.*?><.*?> * var oTable = $('#example').dataTable();
5085
<.*?>
< table.height() ) {
<.*?><.*?> *
5086
<.*?>
< table.height() ) {
<.*?><.*?> * // Highlight every second row
5087
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.$('tr:odd').css('backgroundColor', 'blue');
5088
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5089
<.*?>
< table.height() ) {
<.*?><.*?> *
5090
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5091
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5092
<.*?>
< table.height() ) {
<.*?><.*?> * var oTable = $('#example').dataTable();
5093
<.*?>
< table.height() ) {
<.*?><.*?> *
5094
<.*?>
< table.height() ) {
<.*?><.*?> * // Filter to rows with 'Webkit' in them, add a background colour and then
5095
<.*?>
< table.height() ) {
<.*?><.*?> * // remove the filter, thus highlighting the 'Webkit' rows only.
5096
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.fnFilter('Webkit');
5097
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.$('tr', {"search": "applied"}).css('backgroundColor', 'blue');
5098
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.fnFilter('');
5099
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5100
<.*?>
< table.height() ) {
<.*?><.*?> */
5101
<.*?>
< table.height() ) {
<.*?><.*?> this.$ = function ( sSelector, oOpts )
5102
<.*?>
< table.height() ) {
<.*?><.*?> {
5103
<.*?>
< table.height() ) {
<.*?><.*?> return this.api(true).$( sSelector, oOpts );
5104
<.*?>
< table.height() ) {
<.*?><.*?> };
5105
 
5106
 
5107
<.*?>
< table.height() ) {
<.*?><.*?> /**
5108
<.*?>
< table.height() ) {
<.*?><.*?> * Almost identical to $ in operation, but in this case returns the data for the matched
5109
<.*?>
< table.height() ) {
<.*?><.*?> * rows - as such, the jQuery selector used should match TR row nodes or TD/TH cell nodes
5110
<.*?>
< table.height() ) {
<.*?><.*?> * rather than any descendants, so the data can be obtained for the row/cell. If matching
5111
<.*?>
< table.height() ) {
<.*?><.*?> * rows are found, the data returned is the original data array/object that was used to
5112
<.*?>
< table.height() ) {
<.*?><.*?> * create the row (or a generated array if from a DOM source).
5113
<.*?>
< table.height() ) {
<.*?><.*?> *
5114
<.*?>
< table.height() ) {
<.*?><.*?> * This method is often useful in-combination with $ where both functions are given the
5115
<.*?>
< table.height() ) {
<.*?><.*?> * same parameters and the array indexes will match identically.
5116
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string|node|jQuery} sSelector jQuery selector or node collection to act on
5117
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} [oOpts] Optional parameters for modifying the rows to be included
5118
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string} [oOpts.filter=none] Select elements that meet the current filter
5119
<.*?>
< table.height() ) {
<.*?><.*?> * criterion ("applied") or all elements (i.e. no filter).
5120
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string} [oOpts.order=current] Order of the data in the processed array.
5121
<.*?>
< table.height() ) {
<.*?><.*?> * Can be either 'current', whereby the current sorting of the table is used, or
5122
<.*?>
< table.height() ) {
<.*?><.*?> * 'original' whereby the original order the data was read into the table is used.
5123
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string} [oOpts.page=all] Limit the selection to the currently displayed page
5124
<.*?>
< table.height() ) {
<.*?><.*?> * ("current") or not ("all"). If 'current' is given, then order is assumed to be
5125
<.*?>
< table.height() ) {
<.*?><.*?> * 'current' and filter is 'applied', regardless of what they might be given as.
5126
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {array} Data for the matched elements. If any elements, as a result of the
5127
<.*?>
< table.height() ) {
<.*?><.*?> * selector, were not TR, TD or TH elements in the DataTable, they will have a null
5128
<.*?>
< table.height() ) {
<.*?><.*?> * entry in the array.
5129
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API
5130
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
5131
<.*?>
< table.height() ) {
<.*?><.*?> *
5132
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5133
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5134
<.*?>
< table.height() ) {
<.*?><.*?> * var oTable = $('#example').dataTable();
5135
<.*?>
< table.height() ) {
<.*?><.*?> *
5136
<.*?>
< table.height() ) {
<.*?><.*?> * // Get the data from the first row in the table
5137
<.*?>
< table.height() ) {
<.*?><.*?> * var data = oTable._('tr:first');
5138
<.*?>
< table.height() ) {
<.*?><.*?> *
5139
<.*?>
< table.height() ) {
<.*?><.*?> * // Do something useful with the data
5140
<.*?>
< table.height() ) {
<.*?><.*?> * alert( "First cell is: "+data[0] );
5141
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5142
<.*?>
< table.height() ) {
<.*?><.*?> *
5143
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5144
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5145
<.*?>
< table.height() ) {
<.*?><.*?> * var oTable = $('#example').dataTable();
5146
<.*?>
< table.height() ) {
<.*?><.*?> *
5147
<.*?>
< table.height() ) {
<.*?><.*?> * // Filter to 'Webkit' and get all data for
5148
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.fnFilter('Webkit');
5149
<.*?>
< table.height() ) {
<.*?><.*?> * var data = oTable._('tr', {"search": "applied"});
5150
<.*?>
< table.height() ) {
<.*?><.*?> *
5151
<.*?>
< table.height() ) {
<.*?><.*?> * // Do something with the data
5152
<.*?>
< table.height() ) {
<.*?><.*?> * alert( data.length+" rows matched the search" );
5153
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5154
<.*?>
< table.height() ) {
<.*?><.*?> */
5155
<.*?>
< table.height() ) {
<.*?><.*?> this._ = function ( sSelector, oOpts )
5156
<.*?>
< table.height() ) {
<.*?><.*?> {
5157
<.*?>
< table.height() ) {
<.*?><.*?> return this.api(true).rows( sSelector, oOpts ).data();
5158
<.*?>
< table.height() ) {
<.*?><.*?> };
5159
 
5160
 
5161
<.*?>
< table.height() ) {
<.*?><.*?> /**
5162
<.*?>
< table.height() ) {
<.*?><.*?> * Create a DataTables Api instance, with the currently selected tables for
5163
<.*?>
< table.height() ) {
<.*?><.*?> * the Api's context.
5164
<.*?>
< table.height() ) {
<.*?><.*?> * @param {boolean} [traditional=false] Set the API instance's context to be
5165
<.*?>
< table.height() ) {
<.*?><.*?> * only the table referred to by the `DataTable.ext.iApiIndex` option, as was
5166
<.*?>
< table.height() ) {
<.*?><.*?> * used in the API presented by DataTables 1.9- (i.e. the traditional mode),
5167
<.*?>
< table.height() ) {
<.*?><.*?> * or if all tables captured in the jQuery object should be used.
5168
<.*?>
< table.height() ) {
<.*?><.*?> * @return {DataTables.Api}
5169
<.*?>
< table.height() ) {
<.*?><.*?> */
5170
<.*?>
< table.height() ) {
<.*?><.*?> this.api = function ( traditional )
5171
<.*?>
< table.height() ) {
<.*?><.*?> {
5172
<.*?>
< table.height() ) {
<.*?><.*?> return traditional ?
5173
<.*?>
< table.height() ) {
<.*?><.*?> new _Api(
5174
<.*?>
< table.height() ) {
<.*?><.*?> _fnSettingsFromNode( this[ _ext.iApiIndex ] )
5175
<.*?>
< table.height() ) {
<.*?><.*?> ) :
5176
<.*?>
< table.height() ) {
<.*?><.*?> new _Api( this );
5177
<.*?>
< table.height() ) {
<.*?><.*?> };
5178
 
5179
 
5180
<.*?>
< table.height() ) {
<.*?><.*?> /**
5181
<.*?>
< table.height() ) {
<.*?><.*?> * Add a single new row or multiple rows of data to the table. Please note
5182
<.*?>
< table.height() ) {
<.*?><.*?> * that this is suitable for client-side processing only - if you are using
5183
<.*?>
< table.height() ) {
<.*?><.*?> * server-side processing (i.e. "bServerSide": true), then to add data, you
5184
<.*?>
< table.height() ) {
<.*?><.*?> * must add it to the data source, i.e. the server-side, through an Ajax call.
5185
<.*?>
< table.height() ) {
<.*?><.*?> * @param {array|object} data The data to be added to the table. This can be:
5186
<.*?>
< table.height() ) {
<.*?><.*?> * <ul>
5187
<.*?>
< table.height() ) {
<.*?><.*?> * <li>1D array of data - add a single row with the data provided</li>
5188
<.*?>
< table.height() ) {
<.*?><.*?> * <li>2D array of arrays - add multiple rows in a single call</li>
5189
<.*?>
< table.height() ) {
<.*?><.*?> * <li>object - data object when using <i>mData</i></li>
5190
<.*?>
< table.height() ) {
<.*?><.*?> * <li>array of objects - multiple data objects when using <i>mData</i></li>
5191
<.*?>
< table.height() ) {
<.*?><.*?> * </ul>
5192
<.*?>
< table.height() ) {
<.*?><.*?> * @param {bool} [redraw=true] redraw the table or not
5193
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {array} An array of integers, representing the list of indexes in
5194
<.*?>
< table.height() ) {
<.*?><.*?> * <i>aoData</i> ({@link DataTable.models.oSettings}) that have been added to
5195
<.*?>
< table.height() ) {
<.*?><.*?> * the table.
5196
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API
5197
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
5198
<.*?>
< table.height() ) {
<.*?><.*?> *
5199
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5200
<.*?>
< table.height() ) {
<.*?><.*?> * // Global var for counter
5201
<.*?>
< table.height() ) {
<.*?><.*?> * var giCount = 2;
5202
<.*?>
< table.height() ) {
<.*?><.*?> *
5203
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5204
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable();
5205
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5206
<.*?>
< table.height() ) {
<.*?><.*?> *
5207
<.*?>
< table.height() ) {
<.*?><.*?> * function fnClickAddRow() {
5208
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable().fnAddData( [
5209
<.*?>
< table.height() ) {
<.*?><.*?> * giCount+".1",
5210
<.*?>
< table.height() ) {
<.*?><.*?> * giCount+".2",
5211
<.*?>
< table.height() ) {
<.*?><.*?> * giCount+".3",
5212
<.*?>
< table.height() ) {
<.*?><.*?> * giCount+".4" ]
5213
<.*?>
< table.height() ) {
<.*?><.*?> * );
5214
<.*?>
< table.height() ) {
<.*?><.*?> *
5215
<.*?>
< table.height() ) {
<.*?><.*?> * giCount++;
5216
<.*?>
< table.height() ) {
<.*?><.*?> * }
5217
<.*?>
< table.height() ) {
<.*?><.*?> */
5218
<.*?>
< table.height() ) {
<.*?><.*?> this.fnAddData = function( data, redraw )
5219
<.*?>
< table.height() ) {
<.*?><.*?> {
5220
<.*?>
< table.height() ) {
<.*?><.*?> var api = this.api( true );
5221
 
5222
<.*?>
< table.height() ) {
<.*?><.*?> /* Check if we want to add multiple rows or not */
5223
<.*?>
< table.height() ) {
<.*?><.*?> var rows = $.isArray(data) && ( $.isArray(data[0]) || $.isPlainObject(data[0]) ) ?
5224
<.*?>
< table.height() ) {
<.*?><.*?> api.rows.add( data ) :
5225
<.*?>
< table.height() ) {
<.*?><.*?> api.row.add( data );
5226
 
5227
<.*?>
< table.height() ) {
<.*?><.*?> if ( redraw === undefined || redraw ) {
5228
<.*?>
< table.height() ) {
<.*?><.*?> api.draw();
5229
<.*?>
< table.height() ) {
<.*?><.*?> }
5230
 
5231
<.*?>
< table.height() ) {
<.*?><.*?> return rows.flatten().toArray();
5232
<.*?>
< table.height() ) {
<.*?><.*?> };
5233
 
5234
 
5235
<.*?>
< table.height() ) {
<.*?><.*?> /**
5236
<.*?>
< table.height() ) {
<.*?><.*?> * This function will make DataTables recalculate the column sizes, based on the data
5237
<.*?>
< table.height() ) {
<.*?><.*?> * contained in the table and the sizes applied to the columns (in the DOM, CSS or
5238
<.*?>
< table.height() ) {
<.*?><.*?> * through the sWidth parameter). This can be useful when the width of the table's
5239
<.*?>
< table.height() ) {
<.*?><.*?> * parent element changes (for example a window resize).
5240
<.*?>
< table.height() ) {
<.*?><.*?> * @param {boolean} [bRedraw=true] Redraw the table or not, you will typically want to
5241
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API
5242
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
5243
<.*?>
< table.height() ) {
<.*?><.*?> *
5244
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5245
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5246
<.*?>
< table.height() ) {
<.*?><.*?> * var oTable = $('#example').dataTable( {
5247
<.*?>
< table.height() ) {
<.*?><.*?> * "sScrollY": "200px",
5248
<.*?>
< table.height() ) {
<.*?><.*?> * "bPaginate": false
5249
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5250
<.*?>
< table.height() ) {
<.*?><.*?> *
5251
<.*?>
< table.height() ) {
<.*?><.*?> * $(window).bind('resize', function () {
5252
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.fnAdjustColumnSizing();
5253
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5254
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5255
<.*?>
< table.height() ) {
<.*?><.*?> */
5256
<.*?>
< table.height() ) {
<.*?><.*?> this.fnAdjustColumnSizing = function ( bRedraw )
5257
<.*?>
< table.height() ) {
<.*?><.*?> {
5258
<.*?>
< table.height() ) {
<.*?><.*?> var api = this.api( true ).columns.adjust();
5259
<.*?>
< table.height() ) {
<.*?><.*?> var settings = api.settings()[0];
5260
<.*?>
< table.height() ) {
<.*?><.*?> var scroll = settings.oScroll;
5261
 
5262
<.*?>
< table.height() ) {
<.*?><.*?> if ( bRedraw === undefined || bRedraw ) {
5263
<.*?>
< table.height() ) {
<.*?><.*?> api.draw( false );
5264
<.*?>
< table.height() ) {
<.*?><.*?> }
5265
<.*?>
< table.height() ) {
<.*?><.*?> else if ( scroll.sX !== "" || scroll.sY !== "" ) {
5266
<.*?>
< table.height() ) {
<.*?><.*?> /* If not redrawing, but scrolling, we want to apply the new column sizes anyway */
5267
<.*?>
< table.height() ) {
<.*?><.*?> _fnScrollDraw( settings );
5268
<.*?>
< table.height() ) {
<.*?><.*?> }
5269
<.*?>
< table.height() ) {
<.*?><.*?> };
5270
 
5271
 
5272
<.*?>
< table.height() ) {
<.*?><.*?> /**
5273
<.*?>
< table.height() ) {
<.*?><.*?> * Quickly and simply clear a table
5274
<.*?>
< table.height() ) {
<.*?><.*?> * @param {bool} [bRedraw=true] redraw the table or not
5275
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API
5276
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
5277
<.*?>
< table.height() ) {
<.*?><.*?> *
5278
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5279
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5280
<.*?>
< table.height() ) {
<.*?><.*?> * var oTable = $('#example').dataTable();
5281
<.*?>
< table.height() ) {
<.*?><.*?> *
5282
<.*?>
< table.height() ) {
<.*?><.*?> * // Immediately 'nuke' the current rows (perhaps waiting for an Ajax callback...)
5283
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.fnClearTable();
5284
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5285
<.*?>
< table.height() ) {
<.*?><.*?> */
5286
<.*?>
< table.height() ) {
<.*?><.*?> this.fnClearTable = function( bRedraw )
5287
<.*?>
< table.height() ) {
<.*?><.*?> {
5288
<.*?>
< table.height() ) {
<.*?><.*?> var api = this.api( true ).clear();
5289
 
5290
<.*?>
< table.height() ) {
<.*?><.*?> if ( bRedraw === undefined || bRedraw ) {
5291
<.*?>
< table.height() ) {
<.*?><.*?> api.draw();
5292
<.*?>
< table.height() ) {
<.*?><.*?> }
5293
<.*?>
< table.height() ) {
<.*?><.*?> };
5294
 
5295
 
5296
<.*?>
< table.height() ) {
<.*?><.*?> /**
5297
<.*?>
< table.height() ) {
<.*?><.*?> * The exact opposite of 'opening' a row, this function will close any rows which
5298
<.*?>
< table.height() ) {
<.*?><.*?> * are currently 'open'.
5299
<.*?>
< table.height() ) {
<.*?><.*?> * @param {node} nTr the table row to 'close'
5300
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {int} 0 on success, or 1 if failed (can't find the row)
5301
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API
5302
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
5303
<.*?>
< table.height() ) {
<.*?><.*?> *
5304
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5305
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5306
<.*?>
< table.height() ) {
<.*?><.*?> * var oTable;
5307
<.*?>
< table.height() ) {
<.*?><.*?> *
5308
<.*?>
< table.height() ) {
<.*?><.*?> * // 'open' an information row when a row is clicked on
5309
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example tbody tr').click( function () {
5310
<.*?>
< table.height() ) {
<.*?><.*?> * if ( oTable.fnIsOpen(this) ) {
5311
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.fnClose( this );
5312
<.*?>
< table.height() ) {
<.*?><.*?> * } else {
5313
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.fnOpen( this, "Temporary row opened", "info_row" );
5314
<.*?>
< table.height() ) {
<.*?><.*?> * }
5315
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5316
<.*?>
< table.height() ) {
<.*?><.*?> *
5317
<.*?>
< table.height() ) {
<.*?><.*?> * oTable = $('#example').dataTable();
5318
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5319
<.*?>
< table.height() ) {
<.*?><.*?> */
5320
<.*?>
< table.height() ) {
<.*?><.*?> this.fnClose = function( nTr )
5321
<.*?>
< table.height() ) {
<.*?><.*?> {
5322
<.*?>
< table.height() ) {
<.*?><.*?> this.api( true ).row( nTr ).child.hide();
5323
<.*?>
< table.height() ) {
<.*?><.*?> };
5324
 
5325
 
5326
<.*?>
< table.height() ) {
<.*?><.*?> /**
5327
<.*?>
< table.height() ) {
<.*?><.*?> * Remove a row for the table
5328
<.*?>
< table.height() ) {
<.*?><.*?> * @param {mixed} target The index of the row from aoData to be deleted, or
5329
<.*?>
< table.height() ) {
<.*?><.*?> * the TR element you want to delete
5330
<.*?>
< table.height() ) {
<.*?><.*?> * @param {function|null} [callBack] Callback function
5331
<.*?>
< table.height() ) {
<.*?><.*?> * @param {bool} [redraw=true] Redraw the table or not
5332
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {array} The row that was deleted
5333
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API
5334
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
5335
<.*?>
< table.height() ) {
<.*?><.*?> *
5336
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5337
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5338
<.*?>
< table.height() ) {
<.*?><.*?> * var oTable = $('#example').dataTable();
5339
<.*?>
< table.height() ) {
<.*?><.*?> *
5340
<.*?>
< table.height() ) {
<.*?><.*?> * // Immediately remove the first row
5341
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.fnDeleteRow( 0 );
5342
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5343
<.*?>
< table.height() ) {
<.*?><.*?> */
5344
<.*?>
< table.height() ) {
<.*?><.*?> this.fnDeleteRow = function( target, callback, redraw )
5345
<.*?>
< table.height() ) {
<.*?><.*?> {
5346
<.*?>
< table.height() ) {
<.*?><.*?> var api = this.api( true );
5347
<.*?>
< table.height() ) {
<.*?><.*?> var rows = api.rows( target );
5348
<.*?>
< table.height() ) {
<.*?><.*?> var settings = rows.settings()[0];
5349
<.*?>
< table.height() ) {
<.*?><.*?> var data = settings.aoData[ rows[0][0] ];
5350
 
5351
<.*?>
< table.height() ) {
<.*?><.*?> rows.remove();
5352
 
5353
<.*?>
< table.height() ) {
<.*?><.*?> if ( callback ) {
5354
<.*?>
< table.height() ) {
<.*?><.*?> callback.call( this, settings, data );
5355
<.*?>
< table.height() ) {
<.*?><.*?> }
5356
 
5357
<.*?>
< table.height() ) {
<.*?><.*?> if ( redraw === undefined || redraw ) {
5358
<.*?>
< table.height() ) {
<.*?><.*?> api.draw();
5359
<.*?>
< table.height() ) {
<.*?><.*?> }
5360
 
5361
<.*?>
< table.height() ) {
<.*?><.*?> return data;
5362
<.*?>
< table.height() ) {
<.*?><.*?> };
5363
 
5364
 
5365
<.*?>
< table.height() ) {
<.*?><.*?> /**
5366
<.*?>
< table.height() ) {
<.*?><.*?> * Restore the table to it's original state in the DOM by removing all of DataTables
5367
<.*?>
< table.height() ) {
<.*?><.*?> * enhancements, alterations to the DOM structure of the table and event listeners.
5368
<.*?>
< table.height() ) {
<.*?><.*?> * @param {boolean} [remove=false] Completely remove the table from the DOM
5369
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API
5370
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
5371
<.*?>
< table.height() ) {
<.*?><.*?> *
5372
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5373
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5374
<.*?>
< table.height() ) {
<.*?><.*?> * // This example is fairly pointless in reality, but shows how fnDestroy can be used
5375
<.*?>
< table.height() ) {
<.*?><.*?> * var oTable = $('#example').dataTable();
5376
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.fnDestroy();
5377
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5378
<.*?>
< table.height() ) {
<.*?><.*?> */
5379
<.*?>
< table.height() ) {
<.*?><.*?> this.fnDestroy = function ( remove )
5380
<.*?>
< table.height() ) {
<.*?><.*?> {
5381
<.*?>
< table.height() ) {
<.*?><.*?> this.api( true ).destroy( remove );
5382
<.*?>
< table.height() ) {
<.*?><.*?> };
5383
 
5384
 
5385
<.*?>
< table.height() ) {
<.*?><.*?> /**
5386
<.*?>
< table.height() ) {
<.*?><.*?> * Redraw the table
5387
<.*?>
< table.height() ) {
<.*?><.*?> * @param {bool} [complete=true] Re-filter and resort (if enabled) the table before the draw.
5388
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API
5389
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
5390
<.*?>
< table.height() ) {
<.*?><.*?> *
5391
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5392
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5393
<.*?>
< table.height() ) {
<.*?><.*?> * var oTable = $('#example').dataTable();
5394
<.*?>
< table.height() ) {
<.*?><.*?> *
5395
<.*?>
< table.height() ) {
<.*?><.*?> * // Re-draw the table - you wouldn't want to do it here, but it's an example :-)
5396
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.fnDraw();
5397
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5398
<.*?>
< table.height() ) {
<.*?><.*?> */
5399
<.*?>
< table.height() ) {
<.*?><.*?> this.fnDraw = function( complete )
5400
<.*?>
< table.height() ) {
<.*?><.*?> {
5401
<.*?>
< table.height() ) {
<.*?><.*?> // Note that this isn't an exact match to the old call to _fnDraw - it takes
5402
<.*?>
< table.height() ) {
<.*?><.*?> // into account the new data, but can old position.
5403
<.*?>
< table.height() ) {
<.*?><.*?> this.api( true ).draw( ! complete );
5404
<.*?>
< table.height() ) {
<.*?><.*?> };
5405
 
5406
 
5407
<.*?>
< table.height() ) {
<.*?><.*?> /**
5408
<.*?>
< table.height() ) {
<.*?><.*?> * Filter the input based on data
5409
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string} sInput String to filter the table on
5410
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int|null} [iColumn] Column to limit filtering to
5411
<.*?>
< table.height() ) {
<.*?><.*?> * @param {bool} [bRegex=false] Treat as regular expression or not
5412
<.*?>
< table.height() ) {
<.*?><.*?> * @param {bool} [bSmart=true] Perform smart filtering or not
5413
<.*?>
< table.height() ) {
<.*?><.*?> * @param {bool} [bShowGlobal=true] Show the input global filter in it's input box(es)
5414
<.*?>
< table.height() ) {
<.*?><.*?> * @param {bool} [bCaseInsensitive=true] Do case-insensitive matching (true) or not (false)
5415
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API
5416
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
5417
<.*?>
< table.height() ) {
<.*?><.*?> *
5418
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5419
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5420
<.*?>
< table.height() ) {
<.*?><.*?> * var oTable = $('#example').dataTable();
5421
<.*?>
< table.height() ) {
<.*?><.*?> *
5422
<.*?>
< table.height() ) {
<.*?><.*?> * // Sometime later - filter...
5423
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.fnFilter( 'test string' );
5424
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5425
<.*?>
< table.height() ) {
<.*?><.*?> */
5426
<.*?>
< table.height() ) {
<.*?><.*?> this.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal, bCaseInsensitive )
5427
<.*?>
< table.height() ) {
<.*?><.*?> {
5428
<.*?>
< table.height() ) {
<.*?><.*?> var api = this.api( true );
5429
 
5430
<.*?>
< table.height() ) {
<.*?><.*?> if ( iColumn === null || iColumn === undefined ) {
5431
<.*?>
< table.height() ) {
<.*?><.*?> api.search( sInput, bRegex, bSmart, bCaseInsensitive );
5432
<.*?>
< table.height() ) {
<.*?><.*?> }
5433
<.*?>
< table.height() ) {
<.*?><.*?> else {
5434
<.*?>
< table.height() ) {
<.*?><.*?> api.column( iColumn ).search( sInput, bRegex, bSmart, bCaseInsensitive );
5435
<.*?>
< table.height() ) {
<.*?><.*?> }
5436
 
5437
<.*?>
< table.height() ) {
<.*?><.*?> api.draw();
5438
<.*?>
< table.height() ) {
<.*?><.*?> };
5439
 
5440
 
5441
<.*?>
< table.height() ) {
<.*?><.*?> /**
5442
<.*?>
< table.height() ) {
<.*?><.*?> * Get the data for the whole table, an individual row or an individual cell based on the
5443
<.*?>
< table.height() ) {
<.*?><.*?> * provided parameters.
5444
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int|node} [src] A TR row node, TD/TH cell node or an integer. If given as
5445
<.*?>
< table.height() ) {
<.*?><.*?> * a TR node then the data source for the whole row will be returned. If given as a
5446
<.*?>
< table.height() ) {
<.*?><.*?> * TD/TH cell node then iCol will be automatically calculated and the data for the
5447
<.*?>
< table.height() ) {
<.*?><.*?> * cell returned. If given as an integer, then this is treated as the aoData internal
5448
<.*?>
< table.height() ) {
<.*?><.*?> * data index for the row (see fnGetPosition) and the data for that row used.
5449
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} [col] Optional column index that you want the data of.
5450
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {array|object|string} If mRow is undefined, then the data for all rows is
5451
<.*?>
< table.height() ) {
<.*?><.*?> * returned. If mRow is defined, just data for that row, and is iCol is
5452
<.*?>
< table.height() ) {
<.*?><.*?> * defined, only data for the designated cell is returned.
5453
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API
5454
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
5455
<.*?>
< table.height() ) {
<.*?><.*?> *
5456
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5457
<.*?>
< table.height() ) {
<.*?><.*?> * // Row data
5458
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5459
<.*?>
< table.height() ) {
<.*?><.*?> * oTable = $('#example').dataTable();
5460
<.*?>
< table.height() ) {
<.*?><.*?> *
5461
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.$('tr').click( function () {
5462
<.*?>
< table.height() ) {
<.*?><.*?> * var data = oTable.fnGetData( this );
5463
<.*?>
< table.height() ) {
<.*?><.*?> * // ... do something with the array / object of data for the row
5464
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5465
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5466
<.*?>
< table.height() ) {
<.*?><.*?> *
5467
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5468
<.*?>
< table.height() ) {
<.*?><.*?> * // Individual cell data
5469
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5470
<.*?>
< table.height() ) {
<.*?><.*?> * oTable = $('#example').dataTable();
5471
<.*?>
< table.height() ) {
<.*?><.*?> *
5472
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.$('td').click( function () {
5473
<.*?>
< table.height() ) {
<.*?><.*?> * var sData = oTable.fnGetData( this );
5474
<.*?>
< table.height() ) {
<.*?><.*?> * alert( 'The cell clicked on had the value of '+sData );
5475
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5476
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5477
<.*?>
< table.height() ) {
<.*?><.*?> */
5478
<.*?>
< table.height() ) {
<.*?><.*?> this.fnGetData = function( src, col )
5479
<.*?>
< table.height() ) {
<.*?><.*?> {
5480
<.*?>
< table.height() ) {
<.*?><.*?> var api = this.api( true );
5481
 
5482
<.*?>
< table.height() ) {
<.*?><.*?> if ( src !== undefined ) {
5483
<.*?>
< table.height() ) {
<.*?><.*?> var type = src.nodeName ? src.nodeName.toLowerCase() : '';
5484
 
5485
<.*?>
< table.height() ) {
<.*?><.*?> return col !== undefined || type == 'td' || type == 'th' ?
5486
<.*?>
< table.height() ) {
<.*?><.*?> api.cell( src, col ).data() :
5487
<.*?>
< table.height() ) {
<.*?><.*?> api.row( src ).data() || null;
5488
<.*?>
< table.height() ) {
<.*?><.*?> }
5489
 
5490
<.*?>
< table.height() ) {
<.*?><.*?> return api.data().toArray();
5491
<.*?>
< table.height() ) {
<.*?><.*?> };
5492
 
5493
 
5494
<.*?>
< table.height() ) {
<.*?><.*?> /**
5495
<.*?>
< table.height() ) {
<.*?><.*?> * Get an array of the TR nodes that are used in the table's body. Note that you will
5496
<.*?>
< table.height() ) {
<.*?><.*?> * typically want to use the '$' API method in preference to this as it is more
5497
<.*?>
< table.height() ) {
<.*?><.*?> * flexible.
5498
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} [iRow] Optional row index for the TR element you want
5499
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {array|node} If iRow is undefined, returns an array of all TR elements
5500
<.*?>
< table.height() ) {
<.*?><.*?> * in the table's body, or iRow is defined, just the TR element requested.
5501
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API
5502
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
5503
<.*?>
< table.height() ) {
<.*?><.*?> *
5504
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5505
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5506
<.*?>
< table.height() ) {
<.*?><.*?> * var oTable = $('#example').dataTable();
5507
<.*?>
< table.height() ) {
<.*?><.*?> *
5508
<.*?>
< table.height() ) {
<.*?><.*?> * // Get the nodes from the table
5509
<.*?>
< table.height() ) {
<.*?><.*?> * var nNodes = oTable.fnGetNodes( );
5510
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5511
<.*?>
< table.height() ) {
<.*?><.*?> */
5512
<.*?>
< table.height() ) {
<.*?><.*?> this.fnGetNodes = function( iRow )
5513
<.*?>
< table.height() ) {
<.*?><.*?> {
5514
<.*?>
< table.height() ) {
<.*?><.*?> var api = this.api( true );
5515
 
5516
<.*?>
< table.height() ) {
<.*?><.*?> return iRow !== undefined ?
5517
<.*?>
< table.height() ) {
<.*?><.*?> api.row( iRow ).node() :
5518
<.*?>
< table.height() ) {
<.*?><.*?> api.rows().nodes().flatten().toArray();
5519
<.*?>
< table.height() ) {
<.*?><.*?> };
5520
 
5521
 
5522
<.*?>
< table.height() ) {
<.*?><.*?> /**
5523
<.*?>
< table.height() ) {
<.*?><.*?> * Get the array indexes of a particular cell from it's DOM element
5524
<.*?>
< table.height() ) {
<.*?><.*?> * and column index including hidden columns
5525
<.*?>
< table.height() ) {
<.*?><.*?> * @param {node} node this can either be a TR, TD or TH in the table's body
5526
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {int} If nNode is given as a TR, then a single index is returned, or
5527
<.*?>
< table.height() ) {
<.*?><.*?> * if given as a cell, an array of [row index, column index (visible),
5528
<.*?>
< table.height() ) {
<.*?><.*?> * column index (all)] is given.
5529
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API
5530
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
5531
<.*?>
< table.height() ) {
<.*?><.*?> *
5532
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5533
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5534
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example tbody td').click( function () {
5535
<.*?>
< table.height() ) {
<.*?><.*?> * // Get the position of the current data from the node
5536
<.*?>
< table.height() ) {
<.*?><.*?> * var aPos = oTable.fnGetPosition( this );
5537
<.*?>
< table.height() ) {
<.*?><.*?> *
5538
<.*?>
< table.height() ) {
<.*?><.*?> * // Get the data array for this row
5539
<.*?>
< table.height() ) {
<.*?><.*?> * var aData = oTable.fnGetData( aPos[0] );
5540
<.*?>
< table.height() ) {
<.*?><.*?> *
5541
<.*?>
< table.height() ) {
<.*?><.*?> * // Update the data array and return the value
5542
<.*?>
< table.height() ) {
<.*?><.*?> * aData[ aPos[1] ] = 'clicked';
5543
<.*?>
< table.height() ) {
<.*?><.*?> * this.innerHTML = 'clicked';
5544
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5545
<.*?>
< table.height() ) {
<.*?><.*?> *
5546
<.*?>
< table.height() ) {
<.*?><.*?> * // Init DataTables
5547
<.*?>
< table.height() ) {
<.*?><.*?> * oTable = $('#example').dataTable();
5548
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5549
<.*?>
< table.height() ) {
<.*?><.*?> */
5550
<.*?>
< table.height() ) {
<.*?><.*?> this.fnGetPosition = function( node )
5551
<.*?>
< table.height() ) {
<.*?><.*?> {
5552
<.*?>
< table.height() ) {
<.*?><.*?> var api = this.api( true );
5553
<.*?>
< table.height() ) {
<.*?><.*?> var nodeName = node.nodeName.toUpperCase();
5554
 
5555
<.*?>
< table.height() ) {
<.*?><.*?> if ( nodeName == 'TR' ) {
5556
<.*?>
< table.height() ) {
<.*?><.*?> return api.row( node ).index();
5557
<.*?>
< table.height() ) {
<.*?><.*?> }
5558
<.*?>
< table.height() ) {
<.*?><.*?> else if ( nodeName == 'TD' || nodeName == 'TH' ) {
5559
<.*?>
< table.height() ) {
<.*?><.*?> var cell = api.cell( node ).index();
5560
 
5561
<.*?>
< table.height() ) {
<.*?><.*?> return [
5562
<.*?>
< table.height() ) {
<.*?><.*?> cell.row,
5563
<.*?>
< table.height() ) {
<.*?><.*?> cell.columnVisible,
5564
<.*?>
< table.height() ) {
<.*?><.*?> cell.column
5565
<.*?>
< table.height() ) {
<.*?><.*?> ];
5566
<.*?>
< table.height() ) {
<.*?><.*?> }
5567
<.*?>
< table.height() ) {
<.*?><.*?> return null;
5568
<.*?>
< table.height() ) {
<.*?><.*?> };
5569
 
5570
 
5571
<.*?>
< table.height() ) {
<.*?><.*?> /**
5572
<.*?>
< table.height() ) {
<.*?><.*?> * Check to see if a row is 'open' or not.
5573
<.*?>
< table.height() ) {
<.*?><.*?> * @param {node} nTr the table row to check
5574
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {boolean} true if the row is currently open, false otherwise
5575
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API
5576
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
5577
<.*?>
< table.height() ) {
<.*?><.*?> *
5578
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5579
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5580
<.*?>
< table.height() ) {
<.*?><.*?> * var oTable;
5581
<.*?>
< table.height() ) {
<.*?><.*?> *
5582
<.*?>
< table.height() ) {
<.*?><.*?> * // 'open' an information row when a row is clicked on
5583
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example tbody tr').click( function () {
5584
<.*?>
< table.height() ) {
<.*?><.*?> * if ( oTable.fnIsOpen(this) ) {
5585
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.fnClose( this );
5586
<.*?>
< table.height() ) {
<.*?><.*?> * } else {
5587
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.fnOpen( this, "Temporary row opened", "info_row" );
5588
<.*?>
< table.height() ) {
<.*?><.*?> * }
5589
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5590
<.*?>
< table.height() ) {
<.*?><.*?> *
5591
<.*?>
< table.height() ) {
<.*?><.*?> * oTable = $('#example').dataTable();
5592
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5593
<.*?>
< table.height() ) {
<.*?><.*?> */
5594
<.*?>
< table.height() ) {
<.*?><.*?> this.fnIsOpen = function( nTr )
5595
<.*?>
< table.height() ) {
<.*?><.*?> {
5596
<.*?>
< table.height() ) {
<.*?><.*?> return this.api( true ).row( nTr ).child.isShown();
5597
<.*?>
< table.height() ) {
<.*?><.*?> };
5598
 
5599
 
5600
<.*?>
< table.height() ) {
<.*?><.*?> /**
5601
<.*?>
< table.height() ) {
<.*?><.*?> * This function will place a new row directly after a row which is currently
5602
<.*?>
< table.height() ) {
<.*?><.*?> * on display on the page, with the HTML contents that is passed into the
5603
<.*?>
< table.height() ) {
<.*?><.*?> * function. This can be used, for example, to ask for confirmation that a
5604
<.*?>
< table.height() ) {
<.*?><.*?> * particular record should be deleted.
5605
<.*?>
< table.height() ) {
<.*?><.*?> * @param {node} nTr The table row to 'open'
5606
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string|node|jQuery} mHtml The HTML to put into the row
5607
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string} sClass Class to give the new TD cell
5608
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {node} The row opened. Note that if the table row passed in as the
5609
<.*?>
< table.height() ) {
<.*?><.*?> * first parameter, is not found in the table, this method will silently
5610
<.*?>
< table.height() ) {
<.*?><.*?> * return.
5611
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API
5612
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
5613
<.*?>
< table.height() ) {
<.*?><.*?> *
5614
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5615
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5616
<.*?>
< table.height() ) {
<.*?><.*?> * var oTable;
5617
<.*?>
< table.height() ) {
<.*?><.*?> *
5618
<.*?>
< table.height() ) {
<.*?><.*?> * // 'open' an information row when a row is clicked on
5619
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example tbody tr').click( function () {
5620
<.*?>
< table.height() ) {
<.*?><.*?> * if ( oTable.fnIsOpen(this) ) {
5621
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.fnClose( this );
5622
<.*?>
< table.height() ) {
<.*?><.*?> * } else {
5623
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.fnOpen( this, "Temporary row opened", "info_row" );
5624
<.*?>
< table.height() ) {
<.*?><.*?> * }
5625
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5626
<.*?>
< table.height() ) {
<.*?><.*?> *
5627
<.*?>
< table.height() ) {
<.*?><.*?> * oTable = $('#example').dataTable();
5628
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5629
<.*?>
< table.height() ) {
<.*?><.*?> */
5630
<.*?>
< table.height() ) {
<.*?><.*?> this.fnOpen = function( nTr, mHtml, sClass )
5631
<.*?>
< table.height() ) {
<.*?><.*?> {
5632
<.*?>
< table.height() ) {
<.*?><.*?> return this.api( true )
5633
<.*?>
< table.height() ) {
<.*?><.*?> .row( nTr )
5634
<.*?>
< table.height() ) {
<.*?><.*?> .child( mHtml, sClass )
5635
<.*?>
< table.height() ) {
<.*?><.*?> .show()
5636
<.*?>
< table.height() ) {
<.*?><.*?> .child()[0];
5637
<.*?>
< table.height() ) {
<.*?><.*?> };
5638
 
5639
 
5640
<.*?>
< table.height() ) {
<.*?><.*?> /**
5641
<.*?>
< table.height() ) {
<.*?><.*?> * Change the pagination - provides the internal logic for pagination in a simple API
5642
<.*?>
< table.height() ) {
<.*?><.*?> * function. With this function you can have a DataTables table go to the next,
5643
<.*?>
< table.height() ) {
<.*?><.*?> * previous, first or last pages.
5644
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string|int} mAction Paging action to take: "first", "previous", "next" or "last"
5645
<.*?>
< table.height() ) {
<.*?><.*?> * or page number to jump to (integer), note that page 0 is the first page.
5646
<.*?>
< table.height() ) {
<.*?><.*?> * @param {bool} [bRedraw=true] Redraw the table or not
5647
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API
5648
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
5649
<.*?>
< table.height() ) {
<.*?><.*?> *
5650
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5651
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5652
<.*?>
< table.height() ) {
<.*?><.*?> * var oTable = $('#example').dataTable();
5653
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.fnPageChange( 'next' );
5654
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5655
<.*?>
< table.height() ) {
<.*?><.*?> */
5656
<.*?>
< table.height() ) {
<.*?><.*?> this.fnPageChange = function ( mAction, bRedraw )
5657
<.*?>
< table.height() ) {
<.*?><.*?> {
5658
<.*?>
< table.height() ) {
<.*?><.*?> var api = this.api( true ).page( mAction );
5659
 
5660
<.*?>
< table.height() ) {
<.*?><.*?> if ( bRedraw === undefined || bRedraw ) {
5661
<.*?>
< table.height() ) {
<.*?><.*?> api.draw(false);
5662
<.*?>
< table.height() ) {
<.*?><.*?> }
5663
<.*?>
< table.height() ) {
<.*?><.*?> };
5664
 
5665
 
5666
<.*?>
< table.height() ) {
<.*?><.*?> /**
5667
<.*?>
< table.height() ) {
<.*?><.*?> * Show a particular column
5668
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} iCol The column whose display should be changed
5669
<.*?>
< table.height() ) {
<.*?><.*?> * @param {bool} bShow Show (true) or hide (false) the column
5670
<.*?>
< table.height() ) {
<.*?><.*?> * @param {bool} [bRedraw=true] Redraw the table or not
5671
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API
5672
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
5673
<.*?>
< table.height() ) {
<.*?><.*?> *
5674
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5675
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5676
<.*?>
< table.height() ) {
<.*?><.*?> * var oTable = $('#example').dataTable();
5677
<.*?>
< table.height() ) {
<.*?><.*?> *
5678
<.*?>
< table.height() ) {
<.*?><.*?> * // Hide the second column after initialisation
5679
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.fnSetColumnVis( 1, false );
5680
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5681
<.*?>
< table.height() ) {
<.*?><.*?> */
5682
<.*?>
< table.height() ) {
<.*?><.*?> this.fnSetColumnVis = function ( iCol, bShow, bRedraw )
5683
<.*?>
< table.height() ) {
<.*?><.*?> {
5684
<.*?>
< table.height() ) {
<.*?><.*?> var api = this.api( true ).column( iCol ).visible( bShow );
5685
 
5686
<.*?>
< table.height() ) {
<.*?><.*?> if ( bRedraw === undefined || bRedraw ) {
5687
<.*?>
< table.height() ) {
<.*?><.*?> api.columns.adjust().draw();
5688
<.*?>
< table.height() ) {
<.*?><.*?> }
5689
<.*?>
< table.height() ) {
<.*?><.*?> };
5690
 
5691
 
5692
<.*?>
< table.height() ) {
<.*?><.*?> /**
5693
<.*?>
< table.height() ) {
<.*?><.*?> * Get the settings for a particular table for external manipulation
5694
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {object} DataTables settings object. See
5695
<.*?>
< table.height() ) {
<.*?><.*?> * {@link DataTable.models.oSettings}
5696
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API
5697
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
5698
<.*?>
< table.height() ) {
<.*?><.*?> *
5699
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5700
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5701
<.*?>
< table.height() ) {
<.*?><.*?> * var oTable = $('#example').dataTable();
5702
<.*?>
< table.height() ) {
<.*?><.*?> * var oSettings = oTable.fnSettings();
5703
<.*?>
< table.height() ) {
<.*?><.*?> *
5704
<.*?>
< table.height() ) {
<.*?><.*?> * // Show an example parameter from the settings
5705
<.*?>
< table.height() ) {
<.*?><.*?> * alert( oSettings._iDisplayStart );
5706
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5707
<.*?>
< table.height() ) {
<.*?><.*?> */
5708
<.*?>
< table.height() ) {
<.*?><.*?> this.fnSettings = function()
5709
<.*?>
< table.height() ) {
<.*?><.*?> {
5710
<.*?>
< table.height() ) {
<.*?><.*?> return _fnSettingsFromNode( this[_ext.iApiIndex] );
5711
<.*?>
< table.height() ) {
<.*?><.*?> };
5712
 
5713
 
5714
<.*?>
< table.height() ) {
<.*?><.*?> /**
5715
<.*?>
< table.height() ) {
<.*?><.*?> * Sort the table by a particular column
5716
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} iCol the data index to sort on. Note that this will not match the
5717
<.*?>
< table.height() ) {
<.*?><.*?> * 'display index' if you have hidden data entries
5718
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API
5719
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
5720
<.*?>
< table.height() ) {
<.*?><.*?> *
5721
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5722
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5723
<.*?>
< table.height() ) {
<.*?><.*?> * var oTable = $('#example').dataTable();
5724
<.*?>
< table.height() ) {
<.*?><.*?> *
5725
<.*?>
< table.height() ) {
<.*?><.*?> * // Sort immediately with columns 0 and 1
5726
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.fnSort( [ [0,'asc'], [1,'asc'] ] );
5727
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5728
<.*?>
< table.height() ) {
<.*?><.*?> */
5729
<.*?>
< table.height() ) {
<.*?><.*?> this.fnSort = function( aaSort )
5730
<.*?>
< table.height() ) {
<.*?><.*?> {
5731
<.*?>
< table.height() ) {
<.*?><.*?> this.api( true ).order( aaSort ).draw();
5732
<.*?>
< table.height() ) {
<.*?><.*?> };
5733
 
5734
 
5735
<.*?>
< table.height() ) {
<.*?><.*?> /**
5736
<.*?>
< table.height() ) {
<.*?><.*?> * Attach a sort listener to an element for a given column
5737
<.*?>
< table.height() ) {
<.*?><.*?> * @param {node} nNode the element to attach the sort listener to
5738
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} iColumn the column that a click on this node will sort on
5739
<.*?>
< table.height() ) {
<.*?><.*?> * @param {function} [fnCallback] callback function when sort is run
5740
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API
5741
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
5742
<.*?>
< table.height() ) {
<.*?><.*?> *
5743
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5744
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5745
<.*?>
< table.height() ) {
<.*?><.*?> * var oTable = $('#example').dataTable();
5746
<.*?>
< table.height() ) {
<.*?><.*?> *
5747
<.*?>
< table.height() ) {
<.*?><.*?> * // Sort on column 1, when 'sorter' is clicked on
5748
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.fnSortListener( document.getElementById('sorter'), 1 );
5749
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5750
<.*?>
< table.height() ) {
<.*?><.*?> */
5751
<.*?>
< table.height() ) {
<.*?><.*?> this.fnSortListener = function( nNode, iColumn, fnCallback )
5752
<.*?>
< table.height() ) {
<.*?><.*?> {
5753
<.*?>
< table.height() ) {
<.*?><.*?> this.api( true ).order.listener( nNode, iColumn, fnCallback );
5754
<.*?>
< table.height() ) {
<.*?><.*?> };
5755
 
5756
 
5757
<.*?>
< table.height() ) {
<.*?><.*?> /**
5758
<.*?>
< table.height() ) {
<.*?><.*?> * Update a table cell or row - this method will accept either a single value to
5759
<.*?>
< table.height() ) {
<.*?><.*?> * update the cell with, an array of values with one element for each column or
5760
<.*?>
< table.height() ) {
<.*?><.*?> * an object in the same format as the original data source. The function is
5761
<.*?>
< table.height() ) {
<.*?><.*?> * self-referencing in order to make the multi column updates easier.
5762
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object|array|string} mData Data to update the cell/row with
5763
<.*?>
< table.height() ) {
<.*?><.*?> * @param {node|int} mRow TR element you want to update or the aoData index
5764
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} [iColumn] The column to update, give as null or undefined to
5765
<.*?>
< table.height() ) {
<.*?><.*?> * update a whole row.
5766
<.*?>
< table.height() ) {
<.*?><.*?> * @param {bool} [bRedraw=true] Redraw the table or not
5767
<.*?>
< table.height() ) {
<.*?><.*?> * @param {bool} [bAction=true] Perform pre-draw actions or not
5768
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {int} 0 on success, 1 on error
5769
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API
5770
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
5771
<.*?>
< table.height() ) {
<.*?><.*?> *
5772
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5773
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5774
<.*?>
< table.height() ) {
<.*?><.*?> * var oTable = $('#example').dataTable();
5775
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.fnUpdate( 'Example update', 0, 0 ); // Single cell
5776
<.*?>
< table.height() ) {
<.*?><.*?> * oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'], $('tbody tr')[0] ); // Row
5777
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5778
<.*?>
< table.height() ) {
<.*?><.*?> */
5779
<.*?>
< table.height() ) {
<.*?><.*?> this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )
5780
<.*?>
< table.height() ) {
<.*?><.*?> {
5781
<.*?>
< table.height() ) {
<.*?><.*?> var api = this.api( true );
5782
 
5783
<.*?>
< table.height() ) {
<.*?><.*?> if ( iColumn === undefined || iColumn === null ) {
5784
<.*?>
< table.height() ) {
<.*?><.*?> api.row( mRow ).data( mData );
5785
<.*?>
< table.height() ) {
<.*?><.*?> }
5786
<.*?>
< table.height() ) {
<.*?><.*?> else {
5787
<.*?>
< table.height() ) {
<.*?><.*?> api.cell( mRow, iColumn ).data( mData );
5788
<.*?>
< table.height() ) {
<.*?><.*?> }
5789
 
5790
<.*?>
< table.height() ) {
<.*?><.*?> if ( bAction === undefined || bAction ) {
5791
<.*?>
< table.height() ) {
<.*?><.*?> api.columns.adjust();
5792
<.*?>
< table.height() ) {
<.*?><.*?> }
5793
 
5794
<.*?>
< table.height() ) {
<.*?><.*?> if ( bRedraw === undefined || bRedraw ) {
5795
<.*?>
< table.height() ) {
<.*?><.*?> api.draw();
5796
<.*?>
< table.height() ) {
<.*?><.*?> }
5797
<.*?>
< table.height() ) {
<.*?><.*?> return 0;
5798
<.*?>
< table.height() ) {
<.*?><.*?> };
5799
 
5800
 
5801
<.*?>
< table.height() ) {
<.*?><.*?> /**
5802
<.*?>
< table.height() ) {
<.*?><.*?> * Provide a common method for plug-ins to check the version of DataTables being used, in order
5803
<.*?>
< table.height() ) {
<.*?><.*?> * to ensure compatibility.
5804
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string} sVersion Version string to check for, in the format "X.Y.Z". Note that the
5805
<.*?>
< table.height() ) {
<.*?><.*?> * formats "X" and "X.Y" are also acceptable.
5806
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {boolean} true if this version of DataTables is greater or equal to the required
5807
<.*?>
< table.height() ) {
<.*?><.*?> * version, or false if this version of DataTales is not suitable
5808
<.*?>
< table.height() ) {
<.*?><.*?> * @method
5809
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API
5810
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
5811
<.*?>
< table.height() ) {
<.*?><.*?> *
5812
<.*?>
< table.height() ) {
<.*?><.*?> * @example
5813
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready(function() {
5814
<.*?>
< table.height() ) {
<.*?><.*?> * var oTable = $('#example').dataTable();
5815
<.*?>
< table.height() ) {
<.*?><.*?> * alert( oTable.fnVersionCheck( '1.9.0' ) );
5816
<.*?>
< table.height() ) {
<.*?><.*?> * } );
5817
<.*?>
< table.height() ) {
<.*?><.*?> */
5818
<.*?>
< table.height() ) {
<.*?><.*?> this.fnVersionCheck = _ext.fnVersionCheck;
5819
 
5820
 
5821
<.*?>
< table.height() ) {
<.*?><.*?> var _that = this;
5822
<.*?>
< table.height() ) {
<.*?><.*?> var emptyInit = options === undefined;
5823
<.*?>
< table.height() ) {
<.*?><.*?> var len = this.length;
5824
 
5825
<.*?>
< table.height() ) {
<.*?><.*?> if ( emptyInit ) {
5826
<.*?>
< table.height() ) {
<.*?><.*?> options = {};
5827
<.*?>
< table.height() ) {
<.*?><.*?> }
5828
 
5829
<.*?>
< table.height() ) {
<.*?><.*?> this.oApi = this.internal = _ext.internal;
5830
 
5831
<.*?>
< table.height() ) {
<.*?><.*?> // Extend with old style plug-in API methods
5832
<.*?>
< table.height() ) {
<.*?><.*?> for ( var fn in DataTable.ext.internal ) {
5833
<.*?>
< table.height() ) {
<.*?><.*?> if ( fn ) {
5834
<.*?>
< table.height() ) {
<.*?><.*?> this[fn] = _fnExternApiFunc(fn);
5835
<.*?>
< table.height() ) {
<.*?><.*?> }
5836
<.*?>
< table.height() ) {
<.*?><.*?> }
5837
 
5838
<.*?>
< table.height() ) {
<.*?><.*?> this.each(function() {
5839
<.*?>
< table.height() ) {
<.*?><.*?> // For each initialisation we want to give it a clean initialisation
5840
<.*?>
< table.height() ) {
<.*?><.*?> // object that can be bashed around
5841
<.*?>
< table.height() ) {
<.*?><.*?> var o = {};
5842
<.*?>
< table.height() ) {
<.*?><.*?> var oInit = len > 1 ? // optimisation for single table case
5843
<.*?>
< table.height() ) {
<.*?><.*?> _fnExtend( o, options, true ) :
5844
<.*?>
< table.height() ) {
<.*?><.*?> options;
5845
 
5846
<.*?>
< table.height() ) {
<.*?><.*?> /*global oInit,_that,emptyInit*/
5847
<.*?>
< table.height() ) {
<.*?><.*?> var i=0, iLen, j, jLen, k, kLen;
5848
<.*?>
< table.height() ) {
<.*?><.*?> var sId = this.getAttribute( 'id' );
5849
<.*?>
< table.height() ) {
<.*?><.*?> var bInitHandedOff = false;
5850
<.*?>
< table.height() ) {
<.*?><.*?> var defaults = DataTable.defaults;
5851
 
5852
 
5853
<.*?>
< table.height() ) {
<.*?><.*?> /* Sanity check */
5854
<.*?>
< table.height() ) {
<.*?><.*?> if ( this.nodeName.toLowerCase() != 'table' )
5855
<.*?>
< table.height() ) {
<.*?><.*?> {
5856
<.*?>
< table.height() ) {
<.*?><.*?> _fnLog( null, 0, 'Non-table node initialisation ('+this.nodeName+')', 2 );
5857
<.*?>
< table.height() ) {
<.*?><.*?> return;
5858
<.*?>
< table.height() ) {
<.*?><.*?> }
5859
 
5860
<.*?>
< table.height() ) {
<.*?><.*?> /* Backwards compatibility for the defaults */
5861
<.*?>
< table.height() ) {
<.*?><.*?> _fnCompatOpts( defaults );
5862
<.*?>
< table.height() ) {
<.*?><.*?> _fnCompatCols( defaults.column );
5863
 
5864
<.*?>
< table.height() ) {
<.*?><.*?> /* Convert the camel-case defaults to Hungarian */
5865
<.*?>
< table.height() ) {
<.*?><.*?> _fnCamelToHungarian( defaults, defaults, true );
5866
<.*?>
< table.height() ) {
<.*?><.*?> _fnCamelToHungarian( defaults.column, defaults.column, true );
5867
 
5868
<.*?>
< table.height() ) {
<.*?><.*?> /* Setting up the initialisation object */
5869
<.*?>
< table.height() ) {
<.*?><.*?> _fnCamelToHungarian( defaults, oInit );
5870
 
5871
<.*?>
< table.height() ) {
<.*?><.*?> /* Check to see if we are re-initialising a table */
5872
<.*?>
< table.height() ) {
<.*?><.*?> var allSettings = DataTable.settings;
5873
<.*?>
< table.height() ) {
<.*?><.*?> for ( i=0, iLen=allSettings.length ; i<iLen ; i++ )
5874
<.*?>
< table.height() ) {
<.*?><.*?> {
5875
<.*?>
< table.height() ) {
<.*?><.*?> /* Base check on table node */
5876
<.*?>
< table.height() ) {
<.*?><.*?> if ( allSettings[i].nTable == this )
5877
<.*?>
< table.height() ) {
<.*?><.*?> {
5878
<.*?>
< table.height() ) {
<.*?><.*?> var bRetrieve = oInit.bRetrieve !== undefined ? oInit.bRetrieve : defaults.bRetrieve;
5879
<.*?>
< table.height() ) {
<.*?><.*?> var bDestroy = oInit.bDestroy !== undefined ? oInit.bDestroy : defaults.bDestroy;
5880
 
5881
<.*?>
< table.height() ) {
<.*?><.*?> if ( emptyInit || bRetrieve )
5882
<.*?>
< table.height() ) {
<.*?><.*?> {
5883
<.*?>
< table.height() ) {
<.*?><.*?> return allSettings[i].oInstance;
5884
<.*?>
< table.height() ) {
<.*?><.*?> }
5885
<.*?>
< table.height() ) {
<.*?><.*?> else if ( bDestroy )
5886
<.*?>
< table.height() ) {
<.*?><.*?> {
5887
<.*?>
< table.height() ) {
<.*?><.*?> allSettings[i].oInstance.fnDestroy();
5888
<.*?>
< table.height() ) {
<.*?><.*?> break;
5889
<.*?>
< table.height() ) {
<.*?><.*?> }
5890
<.*?>
< table.height() ) {
<.*?><.*?> else
5891
<.*?>
< table.height() ) {
<.*?><.*?> {
5892
<.*?>
< table.height() ) {
<.*?><.*?> _fnLog( allSettings[i], 0, 'Cannot reinitialise DataTable', 3 );
5893
<.*?>
< table.height() ) {
<.*?><.*?> return;
5894
<.*?>
< table.height() ) {
<.*?><.*?> }
5895
<.*?>
< table.height() ) {
<.*?><.*?> }
5896
 
5897
<.*?>
< table.height() ) {
<.*?><.*?> /* If the element we are initialising has the same ID as a table which was previously
5898
<.*?>
< table.height() ) {
<.*?><.*?> * initialised, but the table nodes don't match (from before) then we destroy the old
5899
<.*?>
< table.height() ) {
<.*?><.*?> * instance by simply deleting it. This is under the assumption that the table has been
5900
<.*?>
< table.height() ) {
<.*?><.*?> * destroyed by other methods. Anyone using non-id selectors will need to do this manually
5901
<.*?>
< table.height() ) {
<.*?><.*?> */
5902
<.*?>
< table.height() ) {
<.*?><.*?> if ( allSettings[i].sTableId == this.id )
5903
<.*?>
< table.height() ) {
<.*?><.*?> {
5904
<.*?>
< table.height() ) {
<.*?><.*?> allSettings.splice( i, 1 );
5905
<.*?>
< table.height() ) {
<.*?><.*?> break;
5906
<.*?>
< table.height() ) {
<.*?><.*?> }
5907
<.*?>
< table.height() ) {
<.*?><.*?> }
5908
 
5909
<.*?>
< table.height() ) {
<.*?><.*?> /* Ensure the table has an ID - required for accessibility */
5910
<.*?>
< table.height() ) {
<.*?><.*?> if ( sId === null || sId === "" )
5911
<.*?>
< table.height() ) {
<.*?><.*?> {
5912
<.*?>
< table.height() ) {
<.*?><.*?> sId = "DataTables_Table_"+(DataTable.ext._unique++);
5913
<.*?>
< table.height() ) {
<.*?><.*?> this.id = sId;
5914
<.*?>
< table.height() ) {
<.*?><.*?> }
5915
 
5916
<.*?>
< table.height() ) {
<.*?><.*?> /* Create the settings object for this table and set some of the default parameters */
5917
<.*?>
< table.height() ) {
<.*?><.*?> var oSettings = $.extend( true, {}, DataTable.models.oSettings, {
5918
<.*?>
< table.height() ) {
<.*?><.*?> "nTable": this,
5919
<.*?>
< table.height() ) {
<.*?><.*?> "oApi": _that.internal,
5920
<.*?>
< table.height() ) {
<.*?><.*?> "oInit": oInit,
5921
<.*?>
< table.height() ) {
<.*?><.*?> "sDestroyWidth": $(this)[0].style.width,
5922
<.*?>
< table.height() ) {
<.*?><.*?> "sInstance": sId,
5923
<.*?>
< table.height() ) {
<.*?><.*?> "sTableId": sId
5924
<.*?>
< table.height() ) {
<.*?><.*?> } );
5925
<.*?>
< table.height() ) {
<.*?><.*?> allSettings.push( oSettings );
5926
 
5927
<.*?>
< table.height() ) {
<.*?><.*?> // Need to add the instance after the instance after the settings object has been added
5928
<.*?>
< table.height() ) {
<.*?><.*?> // to the settings array, so we can self reference the table instance if more than one
5929
<.*?>
< table.height() ) {
<.*?><.*?> oSettings.oInstance = (_that.length===1) ? _that : $(this).dataTable();
5930
 
5931
<.*?>
< table.height() ) {
<.*?><.*?> // Backwards compatibility, before we apply all the defaults
5932
<.*?>
< table.height() ) {
<.*?><.*?> _fnCompatOpts( oInit );
5933
 
5934
<.*?>
< table.height() ) {
<.*?><.*?> if ( oInit.oLanguage )
5935
<.*?>
< table.height() ) {
<.*?><.*?> {
5936
<.*?>
< table.height() ) {
<.*?><.*?> _fnLanguageCompat( oInit.oLanguage );
5937
<.*?>
< table.height() ) {
<.*?><.*?> }
5938
 
5939
<.*?>
< table.height() ) {
<.*?><.*?> // If the length menu is given, but the init display length is not, use the length menu
5940
<.*?>
< table.height() ) {
<.*?><.*?> if ( oInit.aLengthMenu && ! oInit.iDisplayLength )
5941
<.*?>
< table.height() ) {
<.*?><.*?> {
5942
<.*?>
< table.height() ) {
<.*?><.*?> oInit.iDisplayLength = $.isArray( oInit.aLengthMenu[0] ) ?
5943
<.*?>
< table.height() ) {
<.*?><.*?> oInit.aLengthMenu[0][0] : oInit.aLengthMenu[0];
5944
<.*?>
< table.height() ) {
<.*?><.*?> }
5945
 
5946
<.*?>
< table.height() ) {
<.*?><.*?> // Apply the defaults and init options to make a single init object will all
5947
<.*?>
< table.height() ) {
<.*?><.*?> // options defined from defaults and instance options.
5948
<.*?>
< table.height() ) {
<.*?><.*?> oInit = _fnExtend( $.extend( true, {}, defaults ), oInit );
5949
 
5950
 
5951
<.*?>
< table.height() ) {
<.*?><.*?> // Map the initialisation options onto the settings object
5952
<.*?>
< table.height() ) {
<.*?><.*?> _fnMap( oSettings.oFeatures, oInit, [
5953
<.*?>
< table.height() ) {
<.*?><.*?> "bPaginate",
5954
<.*?>
< table.height() ) {
<.*?><.*?> "bLengthChange",
5955
<.*?>
< table.height() ) {
<.*?><.*?> "bFilter",
5956
<.*?>
< table.height() ) {
<.*?><.*?> "bSort",
5957
<.*?>
< table.height() ) {
<.*?><.*?> "bSortMulti",
5958
<.*?>
< table.height() ) {
<.*?><.*?> "bInfo",
5959
<.*?>
< table.height() ) {
<.*?><.*?> "bProcessing",
5960
<.*?>
< table.height() ) {
<.*?><.*?> "bAutoWidth",
5961
<.*?>
< table.height() ) {
<.*?><.*?> "bSortClasses",
5962
<.*?>
< table.height() ) {
<.*?><.*?> "bServerSide",
5963
<.*?>
< table.height() ) {
<.*?><.*?> "bDeferRender"
5964
<.*?>
< table.height() ) {
<.*?><.*?> ] );
5965
<.*?>
< table.height() ) {
<.*?><.*?> _fnMap( oSettings, oInit, [
5966
<.*?>
< table.height() ) {
<.*?><.*?> "asStripeClasses",
5967
<.*?>
< table.height() ) {
<.*?><.*?> "ajax",
5968
<.*?>
< table.height() ) {
<.*?><.*?> "fnServerData",
5969
<.*?>
< table.height() ) {
<.*?><.*?> "fnFormatNumber",
5970
<.*?>
< table.height() ) {
<.*?><.*?> "sServerMethod",
5971
<.*?>
< table.height() ) {
<.*?><.*?> "aaSorting",
5972
<.*?>
< table.height() ) {
<.*?><.*?> "aaSortingFixed",
5973
<.*?>
< table.height() ) {
<.*?><.*?> "aLengthMenu",
5974
<.*?>
< table.height() ) {
<.*?><.*?> "sPaginationType",
5975
<.*?>
< table.height() ) {
<.*?><.*?> "sAjaxSource",
5976
<.*?>
< table.height() ) {
<.*?><.*?> "sAjaxDataProp",
5977
<.*?>
< table.height() ) {
<.*?><.*?> "iStateDuration",
5978
<.*?>
< table.height() ) {
<.*?><.*?> "sDom",
5979
<.*?>
< table.height() ) {
<.*?><.*?> "bSortCellsTop",
5980
<.*?>
< table.height() ) {
<.*?><.*?> "iTabIndex",
5981
<.*?>
< table.height() ) {
<.*?><.*?> "fnStateLoadCallback",
5982
<.*?>
< table.height() ) {
<.*?><.*?> "fnStateSaveCallback",
5983
<.*?>
< table.height() ) {
<.*?><.*?> "renderer",
5984
<.*?>
< table.height() ) {
<.*?><.*?> [ "iCookieDuration", "iStateDuration" ], // backwards compat
5985
<.*?>
< table.height() ) {
<.*?><.*?> [ "oSearch", "oPreviousSearch" ],
5986
<.*?>
< table.height() ) {
<.*?><.*?> [ "aoSearchCols", "aoPreSearchCols" ],
5987
<.*?>
< table.height() ) {
<.*?><.*?> [ "iDisplayLength", "_iDisplayLength" ],
5988
<.*?>
< table.height() ) {
<.*?><.*?> [ "bJQueryUI", "bJUI" ]
5989
<.*?>
< table.height() ) {
<.*?><.*?> ] );
5990
<.*?>
< table.height() ) {
<.*?><.*?> _fnMap( oSettings.oScroll, oInit, [
5991
<.*?>
< table.height() ) {
<.*?><.*?> [ "sScrollX", "sX" ],
5992
<.*?>
< table.height() ) {
<.*?><.*?> [ "sScrollXInner", "sXInner" ],
5993
<.*?>
< table.height() ) {
<.*?><.*?> [ "sScrollY", "sY" ],
5994
<.*?>
< table.height() ) {
<.*?><.*?> [ "bScrollCollapse", "bCollapse" ]
5995
<.*?>
< table.height() ) {
<.*?><.*?> ] );
5996
<.*?>
< table.height() ) {
<.*?><.*?> _fnMap( oSettings.oLanguage, oInit, "fnInfoCallback" );
5997
 
5998
<.*?>
< table.height() ) {
<.*?><.*?> /* Callback functions which are array driven */
5999
<.*?>
< table.height() ) {
<.*?><.*?> _fnCallbackReg( oSettings, 'aoDrawCallback', oInit.fnDrawCallback, 'user' );
6000
<.*?>
< table.height() ) {
<.*?><.*?> _fnCallbackReg( oSettings, 'aoServerParams', oInit.fnServerParams, 'user' );
6001
<.*?>
< table.height() ) {
<.*?><.*?> _fnCallbackReg( oSettings, 'aoStateSaveParams', oInit.fnStateSaveParams, 'user' );
6002
<.*?>
< table.height() ) {
<.*?><.*?> _fnCallbackReg( oSettings, 'aoStateLoadParams', oInit.fnStateLoadParams, 'user' );
6003
<.*?>
< table.height() ) {
<.*?><.*?> _fnCallbackReg( oSettings, 'aoStateLoaded', oInit.fnStateLoaded, 'user' );
6004
<.*?>
< table.height() ) {
<.*?><.*?> _fnCallbackReg( oSettings, 'aoRowCallback', oInit.fnRowCallback, 'user' );
6005
<.*?>
< table.height() ) {
<.*?><.*?> _fnCallbackReg( oSettings, 'aoRowCreatedCallback', oInit.fnCreatedRow, 'user' );
6006
<.*?>
< table.height() ) {
<.*?><.*?> _fnCallbackReg( oSettings, 'aoHeaderCallback', oInit.fnHeaderCallback, 'user' );
6007
<.*?>
< table.height() ) {
<.*?><.*?> _fnCallbackReg( oSettings, 'aoFooterCallback', oInit.fnFooterCallback, 'user' );
6008
<.*?>
< table.height() ) {
<.*?><.*?> _fnCallbackReg( oSettings, 'aoInitComplete', oInit.fnInitComplete, 'user' );
6009
<.*?>
< table.height() ) {
<.*?><.*?> _fnCallbackReg( oSettings, 'aoPreDrawCallback', oInit.fnPreDrawCallback, 'user' );
6010
 
6011
<.*?>
< table.height() ) {
<.*?><.*?> var oClasses = oSettings.oClasses;
6012
 
6013
<.*?>
< table.height() ) {
<.*?><.*?> // @todo Remove in 1.11
6014
<.*?>
< table.height() ) {
<.*?><.*?> if ( oInit.bJQueryUI )
6015
<.*?>
< table.height() ) {
<.*?><.*?> {
6016
<.*?>
< table.height() ) {
<.*?><.*?> /* Use the JUI classes object for display. You could clone the oStdClasses object if
6017
<.*?>
< table.height() ) {
<.*?><.*?> * you want to have multiple tables with multiple independent classes
6018
<.*?>
< table.height() ) {
<.*?><.*?> */
6019
<.*?>
< table.height() ) {
<.*?><.*?> $.extend( oClasses, DataTable.ext.oJUIClasses, oInit.oClasses );
6020
 
6021
<.*?>
< table.height() ) {
<.*?><.*?> if ( oInit.sDom === defaults.sDom && defaults.sDom === "lfrtip" )
6022
<.*?>
< table.height() ) {
<.*?><.*?> {
6023
<.*?>
< table.height() ) {
<.*?><.*?> /* Set the DOM to use a layout suitable for jQuery UI's theming */
6024
<.*?>
< table.height() ) {
<.*?><.*?> oSettings.sDom = '<"H"lfr>t<"F"ip>';
6025
<.*?>
< table.height() ) {
<.*?><.*?> }
6026
 
6027
<.*?>
< table.height() ) {
<.*?><.*?> if ( ! oSettings.renderer ) {
6028
<.*?>
< table.height() ) {
<.*?><.*?> oSettings.renderer = 'jqueryui';
6029
<.*?>
< table.height() ) {
<.*?><.*?> }
6030
<.*?>
< table.height() ) {
<.*?><.*?> else if ( $.isPlainObject( oSettings.renderer ) && ! oSettings.renderer.header ) {
6031
<.*?>
< table.height() ) {
<.*?><.*?> oSettings.renderer.header = 'jqueryui';
6032
<.*?>
< table.height() ) {
<.*?><.*?> }
6033
<.*?>
< table.height() ) {
<.*?><.*?> }
6034
<.*?>
< table.height() ) {
<.*?><.*?> else
6035
<.*?>
< table.height() ) {
<.*?><.*?> {
6036
<.*?>
< table.height() ) {
<.*?><.*?> $.extend( oClasses, DataTable.ext.classes, oInit.oClasses );
6037
<.*?>
< table.height() ) {
<.*?><.*?> }
6038
<.*?>
< table.height() ) {
<.*?><.*?> $(this).addClass( oClasses.sTable );
6039
 
6040
<.*?>
< table.height() ) {
<.*?><.*?> /* Calculate the scroll bar width and cache it for use later on */
6041
<.*?>
< table.height() ) {
<.*?><.*?> if ( oSettings.oScroll.sX !== "" || oSettings.oScroll.sY !== "" )
6042
<.*?>
< table.height() ) {
<.*?><.*?> {
6043
<.*?>
< table.height() ) {
<.*?><.*?> oSettings.oScroll.iBarWidth = _fnScrollBarWidth();
6044
<.*?>
< table.height() ) {
<.*?><.*?> }
6045
<.*?>
< table.height() ) {
<.*?><.*?> if ( oSettings.oScroll.sX === true ) { // Easy initialisation of x-scrolling
6046
<.*?>
< table.height() ) {
<.*?><.*?> oSettings.oScroll.sX = '100%';
6047
<.*?>
< table.height() ) {
<.*?><.*?> }
6048
 
6049
<.*?>
< table.height() ) {
<.*?><.*?> if ( oSettings.iInitDisplayStart === undefined )
6050
<.*?>
< table.height() ) {
<.*?><.*?> {
6051
<.*?>
< table.height() ) {
<.*?><.*?> /* Display start point, taking into account the save saving */
6052
<.*?>
< table.height() ) {
<.*?><.*?> oSettings.iInitDisplayStart = oInit.iDisplayStart;
6053
<.*?>
< table.height() ) {
<.*?><.*?> oSettings._iDisplayStart = oInit.iDisplayStart;
6054
<.*?>
< table.height() ) {
<.*?><.*?> }
6055
 
6056
<.*?>
< table.height() ) {
<.*?><.*?> if ( oInit.iDeferLoading !== null )
6057
<.*?>
< table.height() ) {
<.*?><.*?> {
6058
<.*?>
< table.height() ) {
<.*?><.*?> oSettings.bDeferLoading = true;
6059
<.*?>
< table.height() ) {
<.*?><.*?> var tmp = $.isArray( oInit.iDeferLoading );
6060
<.*?>
< table.height() ) {
<.*?><.*?> oSettings._iRecordsDisplay = tmp ? oInit.iDeferLoading[0] : oInit.iDeferLoading;
6061
<.*?>
< table.height() ) {
<.*?><.*?> oSettings._iRecordsTotal = tmp ? oInit.iDeferLoading[1] : oInit.iDeferLoading;
6062
<.*?>
< table.height() ) {
<.*?><.*?> }
6063
 
6064
<.*?>
< table.height() ) {
<.*?><.*?> /* Language definitions */
6065
<.*?>
< table.height() ) {
<.*?><.*?> if ( oInit.oLanguage.sUrl !== "" )
6066
<.*?>
< table.height() ) {
<.*?><.*?> {
6067
<.*?>
< table.height() ) {
<.*?><.*?> /* Get the language definitions from a file - because this Ajax call makes the language
6068
<.*?>
< table.height() ) {
<.*?><.*?> * get async to the remainder of this function we use bInitHandedOff to indicate that
6069
<.*?>
< table.height() ) {
<.*?><.*?> * _fnInitialise will be fired by the returned Ajax handler, rather than the constructor
6070
<.*?>
< table.height() ) {
<.*?><.*?> */
6071
<.*?>
< table.height() ) {
<.*?><.*?> oSettings.oLanguage.sUrl = oInit.oLanguage.sUrl;
6072
<.*?>
< table.height() ) {
<.*?><.*?> $.getJSON( oSettings.oLanguage.sUrl, null, function( json ) {
6073
<.*?>
< table.height() ) {
<.*?><.*?> _fnLanguageCompat( json );
6074
<.*?>
< table.height() ) {
<.*?><.*?> _fnCamelToHungarian( defaults.oLanguage, json );
6075
<.*?>
< table.height() ) {
<.*?><.*?> $.extend( true, oSettings.oLanguage, oInit.oLanguage, json );
6076
<.*?>
< table.height() ) {
<.*?><.*?> _fnInitialise( oSettings );
6077
<.*?>
< table.height() ) {
<.*?><.*?> } );
6078
<.*?>
< table.height() ) {
<.*?><.*?> bInitHandedOff = true;
6079
<.*?>
< table.height() ) {
<.*?><.*?> }
6080
<.*?>
< table.height() ) {
<.*?><.*?> else
6081
<.*?>
< table.height() ) {
<.*?><.*?> {
6082
<.*?>
< table.height() ) {
<.*?><.*?> $.extend( true, oSettings.oLanguage, oInit.oLanguage );
6083
<.*?>
< table.height() ) {
<.*?><.*?> }
6084
 
6085
 
6086
<.*?>
< table.height() ) {
<.*?><.*?> /*
6087
<.*?>
< table.height() ) {
<.*?><.*?> * Stripes
6088
<.*?>
< table.height() ) {
<.*?><.*?> */
6089
<.*?>
< table.height() ) {
<.*?><.*?> if ( oInit.asStripeClasses === null )
6090
<.*?>
< table.height() ) {
<.*?><.*?> {
6091
<.*?>
< table.height() ) {
<.*?><.*?> oSettings.asStripeClasses =[
6092
<.*?>
< table.height() ) {
<.*?><.*?> oClasses.sStripeOdd,
6093
<.*?>
< table.height() ) {
<.*?><.*?> oClasses.sStripeEven
6094
<.*?>
< table.height() ) {
<.*?><.*?> ];
6095
<.*?>
< table.height() ) {
<.*?><.*?> }
6096
 
6097
<.*?>
< table.height() ) {
<.*?><.*?> /* Remove row stripe classes if they are already on the table row */
6098
<.*?>
< table.height() ) {
<.*?><.*?> var stripeClasses = oSettings.asStripeClasses;
6099
<.*?>
< table.height() ) {
<.*?><.*?> var rowOne = $('tbody tr:eq(0)', this);
6100
<.*?>
< table.height() ) {
<.*?><.*?> if ( $.inArray( true, $.map( stripeClasses, function(el, i) {
6101
<.*?>
< table.height() ) {
<.*?><.*?> return rowOne.hasClass(el);
6102
<.*?>
< table.height() ) {
<.*?><.*?> } ) ) !== -1 ) {
6103
<.*?>
< table.height() ) {
<.*?><.*?> $('tbody tr', this).removeClass( stripeClasses.join(' ') );
6104
<.*?>
< table.height() ) {
<.*?><.*?> oSettings.asDestroyStripes = stripeClasses.slice();
6105
<.*?>
< table.height() ) {
<.*?><.*?> }
6106
 
6107
<.*?>
< table.height() ) {
<.*?><.*?> /*
6108
<.*?>
< table.height() ) {
<.*?><.*?> * Columns
6109
<.*?>
< table.height() ) {
<.*?><.*?> * See if we should load columns automatically or use defined ones
6110
<.*?>
< table.height() ) {
<.*?><.*?> */
6111
<.*?>
< table.height() ) {
<.*?><.*?> var anThs = [];
6112
<.*?>
< table.height() ) {
<.*?><.*?> var aoColumnsInit;
6113
<.*?>
< table.height() ) {
<.*?><.*?> var nThead = this.getElementsByTagName('thead');
6114
<.*?>
< table.height() ) {
<.*?><.*?> if ( nThead.length !== 0 )
6115
<.*?>
< table.height() ) {
<.*?><.*?> {
6116
<.*?>
< table.height() ) {
<.*?><.*?> _fnDetectHeader( oSettings.aoHeader, nThead[0] );
6117
<.*?>
< table.height() ) {
<.*?><.*?> anThs = _fnGetUniqueThs( oSettings );
6118
<.*?>
< table.height() ) {
<.*?><.*?> }
6119
 
6120
<.*?>
< table.height() ) {
<.*?><.*?> /* If not given a column array, generate one with nulls */
6121
<.*?>
< table.height() ) {
<.*?><.*?> if ( oInit.aoColumns === null )
6122
<.*?>
< table.height() ) {
<.*?><.*?> {
6123
<.*?>
< table.height() ) {
<.*?><.*?> aoColumnsInit = [];
6124
<.*?>
< table.height() ) {
<.*?><.*?> for ( i=0, iLen=anThs.length ; i<iLen ; i++ )
6125
<.*?>
< table.height() ) {
<.*?><.*?> {
6126
<.*?>
< table.height() ) {
<.*?><.*?> aoColumnsInit.push( null );
6127
<.*?>
< table.height() ) {
<.*?><.*?> }
6128
<.*?>
< table.height() ) {
<.*?><.*?> }
6129
<.*?>
< table.height() ) {
<.*?><.*?> else
6130
<.*?>
< table.height() ) {
<.*?><.*?> {
6131
<.*?>
< table.height() ) {
<.*?><.*?> aoColumnsInit = oInit.aoColumns;
6132
<.*?>
< table.height() ) {
<.*?><.*?> }
6133
 
6134
<.*?>
< table.height() ) {
<.*?><.*?> /* Add the columns */
6135
<.*?>
< table.height() ) {
<.*?><.*?> for ( i=0, iLen=aoColumnsInit.length ; i<iLen ; i++ )
6136
<.*?>
< table.height() ) {
<.*?><.*?> {
6137
<.*?>
< table.height() ) {
<.*?><.*?> _fnAddColumn( oSettings, anThs ? anThs[i] : null );
6138
<.*?>
< table.height() ) {
<.*?><.*?> }
6139
 
6140
<.*?>
< table.height() ) {
<.*?><.*?> /* Apply the column definitions */
6141
<.*?>
< table.height() ) {
<.*?><.*?> _fnApplyColumnDefs( oSettings, oInit.aoColumnDefs, aoColumnsInit, function (iCol, oDef) {
6142
<.*?>
< table.height() ) {
<.*?><.*?> _fnColumnOptions( oSettings, iCol, oDef );
6143
<.*?>
< table.height() ) {
<.*?><.*?> } );
6144
 
6145
<.*?>
< table.height() ) {
<.*?><.*?> /* HTML5 attribute detection - build an mData object automatically if the
6146
<.*?>
< table.height() ) {
<.*?><.*?> * attributes are found
6147
<.*?>
< table.height() ) {
<.*?><.*?> */
6148
<.*?>
< table.height() ) {
<.*?><.*?> if ( rowOne.length ) {
6149
<.*?>
< table.height() ) {
<.*?><.*?> var a = function ( cell, name ) {
6150
<.*?>
< table.height() ) {
<.*?><.*?> return cell.getAttribute( 'data-'+name ) ? name : null;
6151
<.*?>
< table.height() ) {
<.*?><.*?> };
6152
 
6153
<.*?>
< table.height() ) {
<.*?><.*?> $.each( _fnGetRowElements( oSettings, rowOne[0] ).cells, function (i, cell) {
6154
<.*?>
< table.height() ) {
<.*?><.*?> var col = oSettings.aoColumns[i];
6155
 
6156
<.*?>
< table.height() ) {
<.*?><.*?> if ( col.mData === i ) {
6157
<.*?>
< table.height() ) {
<.*?><.*?> var sort = a( cell, 'sort' ) || a( cell, 'order' );
6158
<.*?>
< table.height() ) {
<.*?><.*?> var filter = a( cell, 'filter' ) || a( cell, 'search' );
6159
 
6160
<.*?>
< table.height() ) {
<.*?><.*?> if ( sort !== null || filter !== null ) {
6161
<.*?>
< table.height() ) {
<.*?><.*?> col.mData = {
6162
<.*?>
< table.height() ) {
<.*?><.*?> _: i+'.display',
6163
<.*?>
< table.height() ) {
<.*?><.*?> sort: sort !== null ? i+'.@data-'+sort : undefined,
6164
<.*?>
< table.height() ) {
<.*?><.*?> type: sort !== null ? i+'.@data-'+sort : undefined,
6165
<.*?>
< table.height() ) {
<.*?><.*?> filter: filter !== null ? i+'.@data-'+filter : undefined
6166
<.*?>
< table.height() ) {
<.*?><.*?> };
6167
 
6168
<.*?>
< table.height() ) {
<.*?><.*?> _fnColumnOptions( oSettings, i );
6169
<.*?>
< table.height() ) {
<.*?><.*?> }
6170
<.*?>
< table.height() ) {
<.*?><.*?> }
6171
<.*?>
< table.height() ) {
<.*?><.*?> } );
6172
<.*?>
< table.height() ) {
<.*?><.*?> }
6173
 
6174
<.*?>
< table.height() ) {
<.*?><.*?> var features = oSettings.oFeatures;
6175
 
6176
<.*?>
< table.height() ) {
<.*?><.*?> /* Must be done after everything which can be overridden by the state saving! */
6177
<.*?>
< table.height() ) {
<.*?><.*?> if ( oInit.bStateSave )
6178
<.*?>
< table.height() ) {
<.*?><.*?> {
6179
<.*?>
< table.height() ) {
<.*?><.*?> features.bStateSave = true;
6180
<.*?>
< table.height() ) {
<.*?><.*?> _fnLoadState( oSettings, oInit );
6181
<.*?>
< table.height() ) {
<.*?><.*?> _fnCallbackReg( oSettings, 'aoDrawCallback', _fnSaveState, 'state_save' );
6182
<.*?>
< table.height() ) {
<.*?><.*?> }
6183
 
6184
 
6185
<.*?>
< table.height() ) {
<.*?><.*?> /*
6186
<.*?>
< table.height() ) {
<.*?><.*?> * Sorting
6187
<.*?>
< table.height() ) {
<.*?><.*?> * @todo For modularisation (1.11) this needs to do into a sort start up handler
6188
<.*?>
< table.height() ) {
<.*?><.*?> */
6189
 
6190
<.*?>
< table.height() ) {
<.*?><.*?> // If aaSorting is not defined, then we use the first indicator in asSorting
6191
<.*?>
< table.height() ) {
<.*?><.*?> // in case that has been altered, so the default sort reflects that option
6192
<.*?>
< table.height() ) {
<.*?><.*?> if ( oInit.aaSorting === undefined )
6193
<.*?>
< table.height() ) {
<.*?><.*?> {
6194
<.*?>
< table.height() ) {
<.*?><.*?> var sorting = oSettings.aaSorting;
6195
<.*?>
< table.height() ) {
<.*?><.*?> for ( i=0, iLen=sorting.length ; i<iLen ; i++ )
6196
<.*?>
< table.height() ) {
<.*?><.*?> {
6197
<.*?>
< table.height() ) {
<.*?><.*?> sorting[i][1] = oSettings.aoColumns[ i ].asSorting[0];
6198
<.*?>
< table.height() ) {
<.*?><.*?> }
6199
<.*?>
< table.height() ) {
<.*?><.*?> }
6200
 
6201
<.*?>
< table.height() ) {
<.*?><.*?> /* Do a first pass on the sorting classes (allows any size changes to be taken into
6202
<.*?>
< table.height() ) {
<.*?><.*?> * account, and also will apply sorting disabled classes if disabled
6203
<.*?>
< table.height() ) {
<.*?><.*?> */
6204
<.*?>
< table.height() ) {
<.*?><.*?> _fnSortingClasses( oSettings );
6205
 
6206
<.*?>
< table.height() ) {
<.*?><.*?> if ( features.bSort )
6207
<.*?>
< table.height() ) {
<.*?><.*?> {
6208
<.*?>
< table.height() ) {
<.*?><.*?> _fnCallbackReg( oSettings, 'aoDrawCallback', function () {
6209
<.*?>
< table.height() ) {
<.*?><.*?> if ( oSettings.bSorted ) {
6210
<.*?>
< table.height() ) {
<.*?><.*?> var aSort = _fnSortFlatten( oSettings );
6211
<.*?>
< table.height() ) {
<.*?><.*?> var sortedColumns = {};
6212
 
6213
<.*?>
< table.height() ) {
<.*?><.*?> $.each( aSort, function (i, val) {
6214
<.*?>
< table.height() ) {
<.*?><.*?> sortedColumns[ val.src ] = val.dir;
6215
<.*?>
< table.height() ) {
<.*?><.*?> } );
6216
 
6217
<.*?>
< table.height() ) {
<.*?><.*?> _fnCallbackFire( oSettings, null, 'order', [oSettings, aSort, sortedColumns] );
6218
<.*?>
< table.height() ) {
<.*?><.*?> _fnSortAria( oSettings );
6219
<.*?>
< table.height() ) {
<.*?><.*?> }
6220
<.*?>
< table.height() ) {
<.*?><.*?> } );
6221
<.*?>
< table.height() ) {
<.*?><.*?> }
6222
 
6223
<.*?>
< table.height() ) {
<.*?><.*?> _fnCallbackReg( oSettings, 'aoDrawCallback', function () {
6224
<.*?>
< table.height() ) {
<.*?><.*?> if ( oSettings.bSorted || _fnDataSource( oSettings ) === 'ssp' || features.bDeferRender ) {
6225
<.*?>
< table.height() ) {
<.*?><.*?> _fnSortingClasses( oSettings );
6226
<.*?>
< table.height() ) {
<.*?><.*?> }
6227
<.*?>
< table.height() ) {
<.*?><.*?> }, 'sc' );
6228
 
6229
 
6230
<.*?>
< table.height() ) {
<.*?><.*?> /*
6231
<.*?>
< table.height() ) {
<.*?><.*?> * Final init
6232
<.*?>
< table.height() ) {
<.*?><.*?> * Cache the header, body and footer as required, creating them if needed
6233
<.*?>
< table.height() ) {
<.*?><.*?> */
6234
 
6235
<.*?>
< table.height() ) {
<.*?><.*?> /* Browser support detection */
6236
<.*?>
< table.height() ) {
<.*?><.*?> _fnBrowserDetect( oSettings );
6237
 
6238
<.*?>
< table.height() ) {
<.*?><.*?> // Work around for Webkit bug 83867 - store the caption-side before removing from doc
6239
<.*?>
< table.height() ) {
<.*?><.*?> var captions = $(this).children('caption').each( function () {
6240
<.*?>
< table.height() ) {
<.*?><.*?> this._captionSide = $(this).css('caption-side');
6241
<.*?>
< table.height() ) {
<.*?><.*?> } );
6242
 
6243
<.*?>
< table.height() ) {
<.*?><.*?> var thead = $(this).children('thead');
6244
<.*?>
< table.height() ) {
<.*?><.*?> if ( thead.length === 0 )
6245
<.*?>
< table.height() ) {
<.*?><.*?> {
6246
<.*?>
< table.height() ) {
<.*?><.*?> thead = $('<thead/>').appendTo(this);
6247
<.*?>
< table.height() ) {
<.*?><.*?> }
6248
<.*?>
< table.height() ) {
<.*?><.*?> oSettings.nTHead = thead[0];
6249
 
6250
<.*?>
< table.height() ) {
<.*?><.*?> var tbody = $(this).children('tbody');
6251
<.*?>
< table.height() ) {
<.*?><.*?> if ( tbody.length === 0 )
6252
<.*?>
< table.height() ) {
<.*?><.*?> {
6253
<.*?>
< table.height() ) {
<.*?><.*?> tbody = $('<tbody/>').appendTo(this);
6254
<.*?>
< table.height() ) {
<.*?><.*?> }
6255
<.*?>
< table.height() ) {
<.*?><.*?> oSettings.nTBody = tbody[0];
6256
 
6257
<.*?>
< table.height() ) {
<.*?><.*?> var tfoot = $(this).children('tfoot');
6258
<.*?>
< table.height() ) {
<.*?><.*?> if ( tfoot.length === 0 && captions.length > 0 && (oSettings.oScroll.sX !== "" || oSettings.oScroll.sY !== "") )
6259
<.*?>
< table.height() ) {
<.*?><.*?> {
6260
<.*?>
< table.height() ) {
<.*?><.*?> // If we are a scrolling table, and no footer has been given, then we need to create
6261
<.*?>
< table.height() ) {
<.*?><.*?> // a tfoot element for the caption element to be appended to
6262
<.*?>
< table.height() ) {
<.*?><.*?> tfoot = $('<tfoot/>').appendTo(this);
6263
<.*?>
< table.height() ) {
<.*?><.*?> }
6264
 
6265
<.*?>
< table.height() ) {
<.*?><.*?> if ( tfoot.length === 0 || tfoot.children().length === 0 ) {
6266
<.*?>
< table.height() ) {
<.*?><.*?> $(this).addClass( oClasses.sNoFooter );
6267
<.*?>
< table.height() ) {
<.*?><.*?> }
6268
<.*?>
< table.height() ) {
<.*?><.*?> else if ( tfoot.length > 0 ) {
6269
<.*?>
< table.height() ) {
<.*?><.*?> oSettings.nTFoot = tfoot[0];
6270
<.*?>
< table.height() ) {
<.*?><.*?> _fnDetectHeader( oSettings.aoFooter, oSettings.nTFoot );
6271
<.*?>
< table.height() ) {
<.*?><.*?> }
6272
 
6273
<.*?>
< table.height() ) {
<.*?><.*?> /* Check if there is data passing into the constructor */
6274
<.*?>
< table.height() ) {
<.*?><.*?> if ( oInit.aaData )
6275
<.*?>
< table.height() ) {
<.*?><.*?> {
6276
<.*?>
< table.height() ) {
<.*?><.*?> for ( i=0 ; i<oInit.aaData.length ; i++ )
6277
<.*?>
< table.height() ) {
<.*?><.*?> {
6278
<.*?>
< table.height() ) {
<.*?><.*?> _fnAddData( oSettings, oInit.aaData[ i ] );
6279
<.*?>
< table.height() ) {
<.*?><.*?> }
6280
<.*?>
< table.height() ) {
<.*?><.*?> }
6281
<.*?>
< table.height() ) {
<.*?><.*?> else if ( oSettings.bDeferLoading || _fnDataSource( oSettings ) == 'dom' )
6282
<.*?>
< table.height() ) {
<.*?><.*?> {
6283
<.*?>
< table.height() ) {
<.*?><.*?> /* Grab the data from the page - only do this when deferred loading or no Ajax
6284
<.*?>
< table.height() ) {
<.*?><.*?> * source since there is no point in reading the DOM data if we are then going
6285
<.*?>
< table.height() ) {
<.*?><.*?> * to replace it with Ajax data
6286
<.*?>
< table.height() ) {
<.*?><.*?> */
6287
<.*?>
< table.height() ) {
<.*?><.*?> _fnAddTr( oSettings, $(oSettings.nTBody).children('tr') );
6288
<.*?>
< table.height() ) {
<.*?><.*?> }
6289
 
6290
<.*?>
< table.height() ) {
<.*?><.*?> /* Copy the data index array */
6291
<.*?>
< table.height() ) {
<.*?><.*?> oSettings.aiDisplay = oSettings.aiDisplayMaster.slice();
6292
 
6293
<.*?>
< table.height() ) {
<.*?><.*?> /* Initialisation complete - table can be drawn */
6294
<.*?>
< table.height() ) {
<.*?><.*?> oSettings.bInitialised = true;
6295
 
6296
<.*?>
< table.height() ) {
<.*?><.*?> /* Check if we need to initialise the table (it might not have been handed off to the
6297
<.*?>
< table.height() ) {
<.*?><.*?> * language processor)
6298
<.*?>
< table.height() ) {
<.*?><.*?> */
6299
<.*?>
< table.height() ) {
<.*?><.*?> if ( bInitHandedOff === false )
6300
<.*?>
< table.height() ) {
<.*?><.*?> {
6301
<.*?>
< table.height() ) {
<.*?><.*?> _fnInitialise( oSettings );
6302
<.*?>
< table.height() ) {
<.*?><.*?> }
6303
<.*?>
< table.height() ) {
<.*?><.*?> } );
6304
<.*?>
< table.height() ) {
<.*?><.*?> _that = null;
6305
<.*?>
< table.height() ) {
<.*?><.*?> return this;
6306
<.*?>
< table.height() ) {
<.*?><.*?> };
6307
 
6308
 
6309
 
6310
<.*?>
< table.height() ) {
<.*?><.*?> /**
6311
<.*?>
< table.height() ) {
<.*?><.*?> * Computed structure of the DataTables API, defined by the options passed to
6312
<.*?>
< table.height() ) {
<.*?><.*?> * `DataTable.Api.register()` when building the API.
6313
<.*?>
< table.height() ) {
<.*?><.*?> *
6314
<.*?>
< table.height() ) {
<.*?><.*?> * The structure is built in order to speed creation and extension of the Api
6315
<.*?>
< table.height() ) {
<.*?><.*?> * objects since the extensions are effectively pre-parsed.
6316
<.*?>
< table.height() ) {
<.*?><.*?> *
6317
<.*?>
< table.height() ) {
<.*?><.*?> * The array is an array of objects with the following structure, where this
6318
<.*?>
< table.height() ) {
<.*?><.*?> * base array represents the Api prototype base:
6319
<.*?>
< table.height() ) {
<.*?><.*?> *
6320
<.*?>
< table.height() ) {
<.*?><.*?> * [
6321
<.*?>
< table.height() ) {
<.*?><.*?> * {
6322
<.*?>
< table.height() ) {
<.*?><.*?> * name: 'data' -- string - Property name
6323
<.*?>
< table.height() ) {
<.*?><.*?> * val: function () {}, -- function - Api method (or undefined if just an object
6324
<.*?>
< table.height() ) {
<.*?><.*?> * methodExt: [ ... ], -- array - Array of Api object definitions to extend the method result
6325
<.*?>
< table.height() ) {
<.*?><.*?> * propExt: [ ... ] -- array - Array of Api object definitions to extend the property
6326
<.*?>
< table.height() ) {
<.*?><.*?> * },
6327
<.*?>
< table.height() ) {
<.*?><.*?> * {
6328
<.*?>
< table.height() ) {
<.*?><.*?> * name: 'row'
6329
<.*?>
< table.height() ) {
<.*?><.*?> * val: {},
6330
<.*?>
< table.height() ) {
<.*?><.*?> * methodExt: [ ... ],
6331
<.*?>
< table.height() ) {
<.*?><.*?> * propExt: [
6332
<.*?>
< table.height() ) {
<.*?><.*?> * {
6333
<.*?>
< table.height() ) {
<.*?><.*?> * name: 'data'
6334
<.*?>
< table.height() ) {
<.*?><.*?> * val: function () {},
6335
<.*?>
< table.height() ) {
<.*?><.*?> * methodExt: [ ... ],
6336
<.*?>
< table.height() ) {
<.*?><.*?> * propExt: [ ... ]
6337
<.*?>
< table.height() ) {
<.*?><.*?> * },
6338
<.*?>
< table.height() ) {
<.*?><.*?> * ...
6339
<.*?>
< table.height() ) {
<.*?><.*?> * ]
6340
<.*?>
< table.height() ) {
<.*?><.*?> * }
6341
<.*?>
< table.height() ) {
<.*?><.*?> * ]
6342
<.*?>
< table.height() ) {
<.*?><.*?> *
6343
<.*?>
< table.height() ) {
<.*?><.*?> * @type {Array}
6344
<.*?>
< table.height() ) {
<.*?><.*?> * @ignore
6345
<.*?>
< table.height() ) {
<.*?><.*?> */
6346
<.*?>
< table.height() ) {
<.*?><.*?> var __apiStruct = [];
6347
 
6348
 
6349
<.*?>
< table.height() ) {
<.*?><.*?> /**
6350
<.*?>
< table.height() ) {
<.*?><.*?> * `Array.prototype` reference.
6351
<.*?>
< table.height() ) {
<.*?><.*?> *
6352
<.*?>
< table.height() ) {
<.*?><.*?> * @type object
6353
<.*?>
< table.height() ) {
<.*?><.*?> * @ignore
6354
<.*?>
< table.height() ) {
<.*?><.*?> */
6355
<.*?>
< table.height() ) {
<.*?><.*?> var __arrayProto = Array.prototype;
6356
 
6357
 
6358
<.*?>
< table.height() ) {
<.*?><.*?> /**
6359
<.*?>
< table.height() ) {
<.*?><.*?> * Abstraction for `context` parameter of the `Api` constructor to allow it to
6360
<.*?>
< table.height() ) {
<.*?><.*?> * take several different forms for ease of use.
6361
<.*?>
< table.height() ) {
<.*?><.*?> *
6362
<.*?>
< table.height() ) {
<.*?><.*?> * Each of the input parameter types will be converted to a DataTables settings
6363
<.*?>
< table.height() ) {
<.*?><.*?> * object where possible.
6364
<.*?>
< table.height() ) {
<.*?><.*?> *
6365
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string|node|jQuery|object} mixed DataTable identifier. Can be one
6366
<.*?>
< table.height() ) {
<.*?><.*?> * of:
6367
<.*?>
< table.height() ) {
<.*?><.*?> *
6368
<.*?>
< table.height() ) {
<.*?><.*?> * * `string` - jQuery selector. Any DataTables' matching the given selector
6369
<.*?>
< table.height() ) {
<.*?><.*?> * with be found and used.
6370
<.*?>
< table.height() ) {
<.*?><.*?> * * `node` - `TABLE` node which has already been formed into a DataTable.
6371
<.*?>
< table.height() ) {
<.*?><.*?> * * `jQuery` - A jQuery object of `TABLE` nodes.
6372
<.*?>
< table.height() ) {
<.*?><.*?> * * `object` - DataTables settings object
6373
<.*?>
< table.height() ) {
<.*?><.*?> * * `DataTables.Api` - API instance
6374
<.*?>
< table.height() ) {
<.*?><.*?> * @return {array|null} Matching DataTables settings objects. `null` or
6375
<.*?>
< table.height() ) {
<.*?><.*?> * `undefined` is returned if no matching DataTable is found.
6376
<.*?>
< table.height() ) {
<.*?><.*?> * @ignore
6377
<.*?>
< table.height() ) {
<.*?><.*?> */
6378
<.*?>
< table.height() ) {
<.*?><.*?> var _toSettings = function ( mixed )
6379
<.*?>
< table.height() ) {
<.*?><.*?> {
6380
<.*?>
< table.height() ) {
<.*?><.*?> var idx, jq;
6381
<.*?>
< table.height() ) {
<.*?><.*?> var settings = DataTable.settings;
6382
<.*?>
< table.height() ) {
<.*?><.*?> var tables = $.map( settings, function (el, i) {
6383
<.*?>
< table.height() ) {
<.*?><.*?> return el.nTable;
6384
<.*?>
< table.height() ) {
<.*?><.*?> } );
6385
 
6386
<.*?>
< table.height() ) {
<.*?><.*?> if ( ! mixed ) {
6387
<.*?>
< table.height() ) {
<.*?><.*?> return [];
6388
<.*?>
< table.height() ) {
<.*?><.*?> }
6389
<.*?>
< table.height() ) {
<.*?><.*?> else if ( mixed.nTable && mixed.oApi ) {
6390
<.*?>
< table.height() ) {
<.*?><.*?> // DataTables settings object
6391
<.*?>
< table.height() ) {
<.*?><.*?> return [ mixed ];
6392
<.*?>
< table.height() ) {
<.*?><.*?> }
6393
<.*?>
< table.height() ) {
<.*?><.*?> else if ( mixed.nodeName && mixed.nodeName.toLowerCase() === 'table' ) {
6394
<.*?>
< table.height() ) {
<.*?><.*?> // Table node
6395
<.*?>
< table.height() ) {
<.*?><.*?> idx = $.inArray( mixed, tables );
6396
<.*?>
< table.height() ) {
<.*?><.*?> return idx !== -1 ? [ settings[idx] ] : null;
6397
<.*?>
< table.height() ) {
<.*?><.*?> }
6398
<.*?>
< table.height() ) {
<.*?><.*?> else if ( mixed && typeof mixed.settings === 'function' ) {
6399
<.*?>
< table.height() ) {
<.*?><.*?> return mixed.settings().toArray();
6400
<.*?>
< table.height() ) {
<.*?><.*?> }
6401
<.*?>
< table.height() ) {
<.*?><.*?> else if ( typeof mixed === 'string' ) {
6402
<.*?>
< table.height() ) {
<.*?><.*?> // jQuery selector
6403
<.*?>
< table.height() ) {
<.*?><.*?> jq = $(mixed);
6404
<.*?>
< table.height() ) {
<.*?><.*?> }
6405
<.*?>
< table.height() ) {
<.*?><.*?> else if ( mixed instanceof $ ) {
6406
<.*?>
< table.height() ) {
<.*?><.*?> // jQuery object (also DataTables instance)
6407
<.*?>
< table.height() ) {
<.*?><.*?> jq = mixed;
6408
<.*?>
< table.height() ) {
<.*?><.*?> }
6409
 
6410
<.*?>
< table.height() ) {
<.*?><.*?> if ( jq ) {
6411
<.*?>
< table.height() ) {
<.*?><.*?> return jq.map( function(i) {
6412
<.*?>
< table.height() ) {
<.*?><.*?> idx = $.inArray( this, tables );
6413
<.*?>
< table.height() ) {
<.*?><.*?> return idx !== -1 ? settings[idx] : null;
6414
<.*?>
< table.height() ) {
<.*?><.*?> } ).toArray();
6415
<.*?>
< table.height() ) {
<.*?><.*?> }
6416
<.*?>
< table.height() ) {
<.*?><.*?> };
6417
 
6418
 
6419
<.*?>
< table.height() ) {
<.*?><.*?> /**
6420
<.*?>
< table.height() ) {
<.*?><.*?> * DataTables API class - used to control and interface with one or more
6421
<.*?>
< table.height() ) {
<.*?><.*?> * DataTables enhanced tables.
6422
<.*?>
< table.height() ) {
<.*?><.*?> *
6423
<.*?>
< table.height() ) {
<.*?><.*?> * The API class is heavily based on jQuery, presenting a chainable interface
6424
<.*?>
< table.height() ) {
<.*?><.*?> * that you can use to interact with tables. Each instance of the API class has
6425
<.*?>
< table.height() ) {
<.*?><.*?> * a "context" - i.e. the tables that it will operate on. This could be a single
6426
<.*?>
< table.height() ) {
<.*?><.*?> * table, all tables on a page or a sub-set thereof.
6427
<.*?>
< table.height() ) {
<.*?><.*?> *
6428
<.*?>
< table.height() ) {
<.*?><.*?> * Additionally the API is designed to allow you to easily work with the data in
6429
<.*?>
< table.height() ) {
<.*?><.*?> * the tables, retrieving and manipulating it as required. This is done by
6430
<.*?>
< table.height() ) {
<.*?><.*?> * presenting the API class as an array like interface. The contents of the
6431
<.*?>
< table.height() ) {
<.*?><.*?> * array depend upon the actions requested by each method (for example
6432
<.*?>
< table.height() ) {
<.*?><.*?> * `rows().nodes()` will return an array of nodes, while `rows().data()` will
6433
<.*?>
< table.height() ) {
<.*?><.*?> * return an array of objects or arrays depending upon your table's
6434
<.*?>
< table.height() ) {
<.*?><.*?> * configuration). The API object has a number of array like methods (`push`,
6435
<.*?>
< table.height() ) {
<.*?><.*?> * `pop`, `reverse` etc) as well as additional helper methods (`each`, `pluck`,
6436
<.*?>
< table.height() ) {
<.*?><.*?> * `unique` etc) to assist your working with the data held in a table.
6437
<.*?>
< table.height() ) {
<.*?><.*?> *
6438
<.*?>
< table.height() ) {
<.*?><.*?> * Most methods (those which return an Api instance) are chainable, which means
6439
<.*?>
< table.height() ) {
<.*?><.*?> * the return from a method call also has all of the methods available that the
6440
<.*?>
< table.height() ) {
<.*?><.*?> * top level object had. For example, these two calls are equivalent:
6441
<.*?>
< table.height() ) {
<.*?><.*?> *
6442
<.*?>
< table.height() ) {
<.*?><.*?> * // Not chained
6443
<.*?>
< table.height() ) {
<.*?><.*?> * api.row.add( {...} );
6444
<.*?>
< table.height() ) {
<.*?><.*?> * api.draw();
6445
<.*?>
< table.height() ) {
<.*?><.*?> *
6446
<.*?>
< table.height() ) {
<.*?><.*?> * // Chained
6447
<.*?>
< table.height() ) {
<.*?><.*?> * api.row.add( {...} ).draw();
6448
<.*?>
< table.height() ) {
<.*?><.*?> *
6449
<.*?>
< table.height() ) {
<.*?><.*?> * @class DataTable.Api
6450
<.*?>
< table.height() ) {
<.*?><.*?> * @param {array|object|string|jQuery} context DataTable identifier. This is
6451
<.*?>
< table.height() ) {
<.*?><.*?> * used to define which DataTables enhanced tables this API will operate on.
6452
<.*?>
< table.height() ) {
<.*?><.*?> * Can be one of:
6453
<.*?>
< table.height() ) {
<.*?><.*?> *
6454
<.*?>
< table.height() ) {
<.*?><.*?> * * `string` - jQuery selector. Any DataTables' matching the given selector
6455
<.*?>
< table.height() ) {
<.*?><.*?> * with be found and used.
6456
<.*?>
< table.height() ) {
<.*?><.*?> * * `node` - `TABLE` node which has already been formed into a DataTable.
6457
<.*?>
< table.height() ) {
<.*?><.*?> * * `jQuery` - A jQuery object of `TABLE` nodes.
6458
<.*?>
< table.height() ) {
<.*?><.*?> * * `object` - DataTables settings object
6459
<.*?>
< table.height() ) {
<.*?><.*?> * @param {array} [data] Data to initialise the Api instance with.
6460
<.*?>
< table.height() ) {
<.*?><.*?> *
6461
<.*?>
< table.height() ) {
<.*?><.*?> * @example
6462
<.*?>
< table.height() ) {
<.*?><.*?> * // Direct initialisation during DataTables construction
6463
<.*?>
< table.height() ) {
<.*?><.*?> * var api = $('#example').DataTable();
6464
<.*?>
< table.height() ) {
<.*?><.*?> *
6465
<.*?>
< table.height() ) {
<.*?><.*?> * @example
6466
<.*?>
< table.height() ) {
<.*?><.*?> * // Initialisation using a DataTables jQuery object
6467
<.*?>
< table.height() ) {
<.*?><.*?> * var api = $('#example').dataTable().api();
6468
<.*?>
< table.height() ) {
<.*?><.*?> *
6469
<.*?>
< table.height() ) {
<.*?><.*?> * @example
6470
<.*?>
< table.height() ) {
<.*?><.*?> * // Initialisation as a constructor
6471
<.*?>
< table.height() ) {
<.*?><.*?> * var api = new $.fn.DataTable.Api( 'table.dataTable' );
6472
<.*?>
< table.height() ) {
<.*?><.*?> */
6473
<.*?>
< table.height() ) {
<.*?><.*?> DataTable.Api = _Api = function ( context, data )
6474
<.*?>
< table.height() ) {
<.*?><.*?> {
6475
<.*?>
< table.height() ) {
<.*?><.*?> if ( ! this instanceof _Api ) {
6476
<.*?>
< table.height() ) {
<.*?><.*?> throw 'DT API must be constructed as a new object';
6477
<.*?>
< table.height() ) {
<.*?><.*?> // or should it do the 'new' for the caller?
6478
<.*?>
< table.height() ) {
<.*?><.*?> // return new _Api.apply( this, arguments );
6479
<.*?>
< table.height() ) {
<.*?><.*?> }
6480
 
6481
<.*?>
< table.height() ) {
<.*?><.*?> var settings = [];
6482
<.*?>
< table.height() ) {
<.*?><.*?> var ctxSettings = function ( o ) {
6483
<.*?>
< table.height() ) {
<.*?><.*?> var a = _toSettings( o );
6484
<.*?>
< table.height() ) {
<.*?><.*?> if ( a ) {
6485
<.*?>
< table.height() ) {
<.*?><.*?> settings.push.apply( settings, a );
6486
<.*?>
< table.height() ) {
<.*?><.*?> }
6487
<.*?>
< table.height() ) {
<.*?><.*?> };
6488
 
6489
<.*?>
< table.height() ) {
<.*?><.*?> if ( $.isArray( context ) ) {
6490
<.*?>
< table.height() ) {
<.*?><.*?> for ( var i=0, ien=context.length ; i<ien ; i++ ) {
6491
<.*?>
< table.height() ) {
<.*?><.*?> ctxSettings( context[i] );
6492
<.*?>
< table.height() ) {
<.*?><.*?> }
6493
<.*?>
< table.height() ) {
<.*?><.*?> }
6494
<.*?>
< table.height() ) {
<.*?><.*?> else {
6495
<.*?>
< table.height() ) {
<.*?><.*?> ctxSettings( context );
6496
<.*?>
< table.height() ) {
<.*?><.*?> }
6497
 
6498
<.*?>
< table.height() ) {
<.*?><.*?> // Remove duplicates
6499
<.*?>
< table.height() ) {
<.*?><.*?> this.context = _unique( settings );
6500
 
6501
<.*?>
< table.height() ) {
<.*?><.*?> // Initial data
6502
<.*?>
< table.height() ) {
<.*?><.*?> if ( data ) {
6503
<.*?>
< table.height() ) {
<.*?><.*?> this.push.apply( this, data.toArray ? data.toArray() : data );
6504
<.*?>
< table.height() ) {
<.*?><.*?> }
6505
 
6506
<.*?>
< table.height() ) {
<.*?><.*?> // selector
6507
<.*?>
< table.height() ) {
<.*?><.*?> this.selector = {
6508
<.*?>
< table.height() ) {
<.*?><.*?> rows: null,
6509
<.*?>
< table.height() ) {
<.*?><.*?> cols: null,
6510
<.*?>
< table.height() ) {
<.*?><.*?> opts: null
6511
<.*?>
< table.height() ) {
<.*?><.*?> };
6512
 
6513
<.*?>
< table.height() ) {
<.*?><.*?> _Api.extend( this, this, __apiStruct );
6514
<.*?>
< table.height() ) {
<.*?><.*?> };
6515
 
6516
 
6517
<.*?>
< table.height() ) {
<.*?><.*?> _Api.prototype = /** @lends DataTables.Api */{
6518
<.*?>
< table.height() ) {
<.*?><.*?> /**
6519
<.*?>
< table.height() ) {
<.*?><.*?> * Return a new Api instance, comprised of the data held in the current
6520
<.*?>
< table.height() ) {
<.*?><.*?> * instance, join with the other array(s) and/or value(s).
6521
<.*?>
< table.height() ) {
<.*?><.*?> *
6522
<.*?>
< table.height() ) {
<.*?><.*?> * An alias for `Array.prototype.concat`.
6523
<.*?>
< table.height() ) {
<.*?><.*?> *
6524
<.*?>
< table.height() ) {
<.*?><.*?> * @type method
6525
<.*?>
< table.height() ) {
<.*?><.*?> * @param {*} value1 Arrays and/or values to concatenate.
6526
<.*?>
< table.height() ) {
<.*?><.*?> * @param {*} [...] Additional arrays and/or values to concatenate.
6527
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {DataTables.Api} New API instance, comprising of the combined
6528
<.*?>
< table.height() ) {
<.*?><.*?> * array.
6529
<.*?>
< table.height() ) {
<.*?><.*?> */
6530
<.*?>
< table.height() ) {
<.*?><.*?> concat: __arrayProto.concat,
6531
 
6532
 
6533
<.*?>
< table.height() ) {
<.*?><.*?> context: [], // array of table settings objects
6534
 
6535
 
6536
<.*?>
< table.height() ) {
<.*?><.*?> each: function ( fn )
6537
<.*?>
< table.height() ) {
<.*?><.*?> {
6538
<.*?>
< table.height() ) {
<.*?><.*?> if ( __arrayProto.forEach ) {
6539
<.*?>
< table.height() ) {
<.*?><.*?> // Where possible, use the built-in forEach
6540
<.*?>
< table.height() ) {
<.*?><.*?> __arrayProto.forEach.call( this, fn, this );
6541
<.*?>
< table.height() ) {
<.*?><.*?> }
6542
<.*?>
< table.height() ) {
<.*?><.*?> else {
6543
<.*?>
< table.height() ) {
<.*?><.*?> // Compatibility for browsers without EMCA-252-5 (JS 1.6)
6544
<.*?>
< table.height() ) {
<.*?><.*?> for ( var i=0, ien=this.length ; i<ien; i++ ) {
6545
<.*?>
< table.height() ) {
<.*?><.*?> // In strict mode the execution scope is the passed value
6546
<.*?>
< table.height() ) {
<.*?><.*?> fn.call( this, this[i], i, this );
6547
<.*?>
< table.height() ) {
<.*?><.*?> }
6548
<.*?>
< table.height() ) {
<.*?><.*?> }
6549
 
6550
<.*?>
< table.height() ) {
<.*?><.*?> return this;
6551
<.*?>
< table.height() ) {
<.*?><.*?> },
6552
 
6553
 
6554
<.*?>
< table.height() ) {
<.*?><.*?> eq: function ( idx )
6555
<.*?>
< table.height() ) {
<.*?><.*?> {
6556
<.*?>
< table.height() ) {
<.*?><.*?> var ctx = this.context;
6557
 
6558
<.*?>
< table.height() ) {
<.*?><.*?> return ctx.length > idx ?
6559
<.*?>
< table.height() ) {
<.*?><.*?> new _Api( ctx[idx], this[idx] ) :
6560
<.*?>
< table.height() ) {
<.*?><.*?> null;
6561
<.*?>
< table.height() ) {
<.*?><.*?> },
6562
 
6563
 
6564
<.*?>
< table.height() ) {
<.*?><.*?> filter: function ( fn )
6565
<.*?>
< table.height() ) {
<.*?><.*?> {
6566
<.*?>
< table.height() ) {
<.*?><.*?> var a = [];
6567
 
6568
<.*?>
< table.height() ) {
<.*?><.*?> if ( __arrayProto.filter ) {
6569
<.*?>
< table.height() ) {
<.*?><.*?> a = __arrayProto.filter.call( this, fn, this );
6570
<.*?>
< table.height() ) {
<.*?><.*?> }
6571
<.*?>
< table.height() ) {
<.*?><.*?> else {
6572
<.*?>
< table.height() ) {
<.*?><.*?> // Compatibility for browsers without EMCA-252-5 (JS 1.6)
6573
<.*?>
< table.height() ) {
<.*?><.*?> for ( var i=0, ien=this.length ; i<ien ; i++ ) {
6574
<.*?>
< table.height() ) {
<.*?><.*?> if ( fn.call( this, this[i], i, this ) ) {
6575
<.*?>
< table.height() ) {
<.*?><.*?> a.push( this[i] );
6576
<.*?>
< table.height() ) {
<.*?><.*?> }
6577
<.*?>
< table.height() ) {
<.*?><.*?> }
6578
<.*?>
< table.height() ) {
<.*?><.*?> }
6579
 
6580
<.*?>
< table.height() ) {
<.*?><.*?> return new _Api( this.context, a );
6581
<.*?>
< table.height() ) {
<.*?><.*?> },
6582
 
6583
 
6584
<.*?>
< table.height() ) {
<.*?><.*?> flatten: function ()
6585
<.*?>
< table.height() ) {
<.*?><.*?> {
6586
<.*?>
< table.height() ) {
<.*?><.*?> var a = [];
6587
<.*?>
< table.height() ) {
<.*?><.*?> return new _Api( this.context, a.concat.apply( a, this.toArray() ) );
6588
<.*?>
< table.height() ) {
<.*?><.*?> },
6589
 
6590
 
6591
<.*?>
< table.height() ) {
<.*?><.*?> join: __arrayProto.join,
6592
 
6593
 
6594
<.*?>
< table.height() ) {
<.*?><.*?> indexOf: __arrayProto.indexOf || function (obj, start)
6595
<.*?>
< table.height() ) {
<.*?><.*?> {
6596
<.*?>
< table.height() ) {
<.*?><.*?> for ( var i=(start || 0), ien=this.length ; i<ien ; i++ ) {
6597
<.*?>
< table.height() ) {
<.*?><.*?> if ( this[i] === obj ) {
6598
<.*?>
< table.height() ) {
<.*?><.*?> return i;
6599
<.*?>
< table.height() ) {
<.*?><.*?> }
6600
<.*?>
< table.height() ) {
<.*?><.*?> }
6601
<.*?>
< table.height() ) {
<.*?><.*?> return -1;
6602
<.*?>
< table.height() ) {
<.*?><.*?> },
6603
 
6604
<.*?>
< table.height() ) {
<.*?><.*?> // Internal only at the moment - relax?
6605
<.*?>
< table.height() ) {
<.*?><.*?> iterator: function ( flatten, type, fn ) {
6606
<.*?>
< table.height() ) {
<.*?><.*?> var
6607
<.*?>
< table.height() ) {
<.*?><.*?> a = [], ret,
6608
<.*?>
< table.height() ) {
<.*?><.*?> i, ien, j, jen,
6609
<.*?>
< table.height() ) {
<.*?><.*?> context = this.context,
6610
<.*?>
< table.height() ) {
<.*?><.*?> rows, items, item,
6611
<.*?>
< table.height() ) {
<.*?><.*?> selector = this.selector;
6612
 
6613
<.*?>
< table.height() ) {
<.*?><.*?> // Argument shifting
6614
<.*?>
< table.height() ) {
<.*?><.*?> if ( typeof flatten === 'string' ) {
6615
<.*?>
< table.height() ) {
<.*?><.*?> fn = type;
6616
<.*?>
< table.height() ) {
<.*?><.*?> type = flatten;
6617
<.*?>
< table.height() ) {
<.*?><.*?> flatten = false;
6618
<.*?>
< table.height() ) {
<.*?><.*?> }
6619
 
6620
<.*?>
< table.height() ) {
<.*?><.*?> for ( i=0, ien=context.length ; i<ien ; i++ ) {
6621
<.*?>
< table.height() ) {
<.*?><.*?> if ( type === 'table' ) {
6622
<.*?>
< table.height() ) {
<.*?><.*?> ret = fn( context[i], i );
6623
 
6624
<.*?>
< table.height() ) {
<.*?><.*?> if ( ret !== undefined ) {
6625
<.*?>
< table.height() ) {
<.*?><.*?> a.push( ret );
6626
<.*?>
< table.height() ) {
<.*?><.*?> }
6627
<.*?>
< table.height() ) {
<.*?><.*?> }
6628
<.*?>
< table.height() ) {
<.*?><.*?> else if ( type === 'columns' || type === 'rows' ) {
6629
<.*?>
< table.height() ) {
<.*?><.*?> // this has same length as context - one entry for each table
6630
<.*?>
< table.height() ) {
<.*?><.*?> ret = fn( context[i], this[i], i );
6631
 
6632
<.*?>
< table.height() ) {
<.*?><.*?> if ( ret !== undefined ) {
6633
<.*?>
< table.height() ) {
<.*?><.*?> a.push( ret );
6634
<.*?>
< table.height() ) {
<.*?><.*?> }
6635
<.*?>
< table.height() ) {
<.*?><.*?> }
6636
<.*?>
< table.height() ) {
<.*?><.*?> else if ( type === 'column' || type === 'column-rows' || type === 'row' || type === 'cell' ) {
6637
<.*?>
< table.height() ) {
<.*?><.*?> // columns and rows share the same structure.
6638
<.*?>
< table.height() ) {
<.*?><.*?> // 'this' is an array of column indexes for each context
6639
<.*?>
< table.height() ) {
<.*?><.*?> items = this[i];
6640
 
6641
<.*?>
< table.height() ) {
<.*?><.*?> if ( type === 'column-rows' ) {
6642
<.*?>
< table.height() ) {
<.*?><.*?> rows = _selector_row_indexes( context[i], selector.opts );
6643
<.*?>
< table.height() ) {
<.*?><.*?> }
6644
 
6645
<.*?>
< table.height() ) {
<.*?><.*?> for ( j=0, jen=items.length ; j<jen ; j++ ) {
6646
<.*?>
< table.height() ) {
<.*?><.*?> item = items[j];
6647
 
6648
<.*?>
< table.height() ) {
<.*?><.*?> if ( type === 'cell' ) {
6649
<.*?>
< table.height() ) {
<.*?><.*?> ret = fn( context[i], item.row, item.column, i, j );
6650
<.*?>
< table.height() ) {
<.*?><.*?> }
6651
<.*?>
< table.height() ) {
<.*?><.*?> else {
6652
<.*?>
< table.height() ) {
<.*?><.*?> ret = fn( context[i], item, i, j, rows );
6653
<.*?>
< table.height() ) {
<.*?><.*?> }
6654
 
6655
<.*?>
< table.height() ) {
<.*?><.*?> if ( ret !== undefined ) {
6656
<.*?>
< table.height() ) {
<.*?><.*?> a.push( ret );
6657
<.*?>
< table.height() ) {
<.*?><.*?> }
6658
<.*?>
< table.height() ) {
<.*?><.*?> }
6659
<.*?>
< table.height() ) {
<.*?><.*?> }
6660
<.*?>
< table.height() ) {
<.*?><.*?> }
6661
 
6662
<.*?>
< table.height() ) {
<.*?><.*?> if ( a.length ) {
6663
<.*?>
< table.height() ) {
<.*?><.*?> var api = new _Api( context, flatten ? a.concat.apply( [], a ) : a );
6664
<.*?>
< table.height() ) {
<.*?><.*?> var apiSelector = api.selector;
6665
<.*?>
< table.height() ) {
<.*?><.*?> apiSelector.rows = selector.rows;
6666
<.*?>
< table.height() ) {
<.*?><.*?> apiSelector.cols = selector.cols;
6667
<.*?>
< table.height() ) {
<.*?><.*?> apiSelector.opts = selector.opts;
6668
<.*?>
< table.height() ) {
<.*?><.*?> return api;
6669
<.*?>
< table.height() ) {
<.*?><.*?> }
6670
<.*?>
< table.height() ) {
<.*?><.*?> return this;
6671
<.*?>
< table.height() ) {
<.*?><.*?> },
6672
 
6673
 
6674
<.*?>
< table.height() ) {
<.*?><.*?> lastIndexOf: __arrayProto.lastIndexOf || function (obj, start)
6675
<.*?>
< table.height() ) {
<.*?><.*?> {
6676
<.*?>
< table.height() ) {
<.*?><.*?> // Bit cheeky...
6677
<.*?>
< table.height() ) {
<.*?><.*?> return this.indexOf.apply( this.toArray.reverse(), arguments );
6678
<.*?>
< table.height() ) {
<.*?><.*?> },
6679
 
6680
 
6681
<.*?>
< table.height() ) {
<.*?><.*?> length: 0,
6682
 
6683
 
6684
<.*?>
< table.height() ) {
<.*?><.*?> map: function ( fn )
6685
<.*?>
< table.height() ) {
<.*?><.*?> {
6686
<.*?>
< table.height() ) {
<.*?><.*?> var a = [];
6687
 
6688
<.*?>
< table.height() ) {
<.*?><.*?> if ( __arrayProto.map ) {
6689
<.*?>
< table.height() ) {
<.*?><.*?> a = __arrayProto.map.call( this, fn, this );
6690
<.*?>
< table.height() ) {
<.*?><.*?> }
6691
<.*?>
< table.height() ) {
<.*?><.*?> else {
6692
<.*?>
< table.height() ) {
<.*?><.*?> // Compatibility for browsers without EMCA-252-5 (JS 1.6)
6693
<.*?>
< table.height() ) {
<.*?><.*?> for ( var i=0, ien=this.length ; i<ien ; i++ ) {
6694
<.*?>
< table.height() ) {
<.*?><.*?> a.push( fn.call( this, this[i], i ) );
6695
<.*?>
< table.height() ) {
<.*?><.*?> }
6696
<.*?>
< table.height() ) {
<.*?><.*?> }
6697
 
6698
<.*?>
< table.height() ) {
<.*?><.*?> return new _Api( this.context, a );
6699
<.*?>
< table.height() ) {
<.*?><.*?> },
6700
 
6701
 
6702
<.*?>
< table.height() ) {
<.*?><.*?> pluck: function ( prop )
6703
<.*?>
< table.height() ) {
<.*?><.*?> {
6704
<.*?>
< table.height() ) {
<.*?><.*?> return this.map( function ( el ) {
6705
<.*?>
< table.height() ) {
<.*?><.*?> return el[ prop ];
6706
<.*?>
< table.height() ) {
<.*?><.*?> } );
6707
<.*?>
< table.height() ) {
<.*?><.*?> },
6708
 
6709
<.*?>
< table.height() ) {
<.*?><.*?> pop: __arrayProto.pop,
6710
 
6711
 
6712
<.*?>
< table.height() ) {
<.*?><.*?> push: __arrayProto.push,
6713
 
6714
 
6715
<.*?>
< table.height() ) {
<.*?><.*?> // Does not return an API instance
6716
<.*?>
< table.height() ) {
<.*?><.*?> reduce: __arrayProto.reduce || function ( fn, init )
6717
<.*?>
< table.height() ) {
<.*?><.*?> {
6718
<.*?>
< table.height() ) {
<.*?><.*?> return _fnReduce( this, fn, init, 0, this.length, 1 );
6719
<.*?>
< table.height() ) {
<.*?><.*?> },
6720
 
6721
 
6722
<.*?>
< table.height() ) {
<.*?><.*?> reduceRight: __arrayProto.reduceRight || function ( fn, init )
6723
<.*?>
< table.height() ) {
<.*?><.*?> {
6724
<.*?>
< table.height() ) {
<.*?><.*?> return _fnReduce( this, fn, init, this.length-1, -1, -1 );
6725
<.*?>
< table.height() ) {
<.*?><.*?> },
6726
 
6727
 
6728
<.*?>
< table.height() ) {
<.*?><.*?> reverse: __arrayProto.reverse,
6729
 
6730
 
6731
<.*?>
< table.height() ) {
<.*?><.*?> // Object with rows, columns and opts
6732
<.*?>
< table.height() ) {
<.*?><.*?> selector: null,
6733
 
6734
 
6735
<.*?>
< table.height() ) {
<.*?><.*?> shift: __arrayProto.shift,
6736
 
6737
 
6738
<.*?>
< table.height() ) {
<.*?><.*?> sort: __arrayProto.sort, // ? name - order?
6739
 
6740
 
6741
<.*?>
< table.height() ) {
<.*?><.*?> splice: __arrayProto.splice,
6742
 
6743
 
6744
<.*?>
< table.height() ) {
<.*?><.*?> toArray: function ()
6745
<.*?>
< table.height() ) {
<.*?><.*?> {
6746
<.*?>
< table.height() ) {
<.*?><.*?> return __arrayProto.slice.call( this );
6747
<.*?>
< table.height() ) {
<.*?><.*?> },
6748
 
6749
 
6750
<.*?>
< table.height() ) {
<.*?><.*?> to$: function ()
6751
<.*?>
< table.height() ) {
<.*?><.*?> {
6752
<.*?>
< table.height() ) {
<.*?><.*?> return $( this );
6753
<.*?>
< table.height() ) {
<.*?><.*?> },
6754
 
6755
 
6756
<.*?>
< table.height() ) {
<.*?><.*?> toJQuery: function ()
6757
<.*?>
< table.height() ) {
<.*?><.*?> {
6758
<.*?>
< table.height() ) {
<.*?><.*?> return $( this );
6759
<.*?>
< table.height() ) {
<.*?><.*?> },
6760
 
6761
 
6762
<.*?>
< table.height() ) {
<.*?><.*?> unique: function ()
6763
<.*?>
< table.height() ) {
<.*?><.*?> {
6764
<.*?>
< table.height() ) {
<.*?><.*?> return new _Api( this.context, _unique(this) );
6765
<.*?>
< table.height() ) {
<.*?><.*?> },
6766
 
6767
 
6768
<.*?>
< table.height() ) {
<.*?><.*?> unshift: __arrayProto.unshift
6769
<.*?>
< table.height() ) {
<.*?><.*?> };
6770
 
6771
 
6772
<.*?>
< table.height() ) {
<.*?><.*?> _Api.extend = function ( scope, obj, ext )
6773
<.*?>
< table.height() ) {
<.*?><.*?> {
6774
<.*?>
< table.height() ) {
<.*?><.*?> // Only extend API instances and static properties of the API
6775
<.*?>
< table.height() ) {
<.*?><.*?> if ( ! obj || ( ! (obj instanceof _Api) && ! obj.__dt_wrapper ) ) {
6776
<.*?>
< table.height() ) {
<.*?><.*?> return;
6777
<.*?>
< table.height() ) {
<.*?><.*?> }
6778
 
6779
<.*?>
< table.height() ) {
<.*?><.*?> var
6780
<.*?>
< table.height() ) {
<.*?><.*?> i, ien,
6781
<.*?>
< table.height() ) {
<.*?><.*?> j, jen,
6782
<.*?>
< table.height() ) {
<.*?><.*?> struct, inner,
6783
<.*?>
< table.height() ) {
<.*?><.*?> methodScoping = function ( fn, struc ) {
6784
<.*?>
< table.height() ) {
<.*?><.*?> return function () {
6785
<.*?>
< table.height() ) {
<.*?><.*?> var ret = fn.apply( scope, arguments );
6786
 
6787
<.*?>
< table.height() ) {
<.*?><.*?> // Method extension
6788
<.*?>
< table.height() ) {
<.*?><.*?> _Api.extend( ret, ret, struc.methodExt );
6789
<.*?>
< table.height() ) {
<.*?><.*?> return ret;
6790
<.*?>
< table.height() ) {
<.*?><.*?> };
6791
<.*?>
< table.height() ) {
<.*?><.*?> };
6792
 
6793
<.*?>
< table.height() ) {
<.*?><.*?> for ( i=0, ien=ext.length ; i<ien ; i++ ) {
6794
<.*?>
< table.height() ) {
<.*?><.*?> struct = ext[i];
6795
 
6796
<.*?>
< table.height() ) {
<.*?><.*?> // Value
6797
<.*?>
< table.height() ) {
<.*?><.*?> obj[ struct.name ] = typeof struct.val === 'function' ?
6798
<.*?>
< table.height() ) {
<.*?><.*?> methodScoping( struct.val, struct ) :
6799
<.*?>
< table.height() ) {
<.*?><.*?> $.isPlainObject( struct.val ) ?
6800
<.*?>
< table.height() ) {
<.*?><.*?> {} :
6801
<.*?>
< table.height() ) {
<.*?><.*?> struct.val;
6802
 
6803
<.*?>
< table.height() ) {
<.*?><.*?> obj[ struct.name ].__dt_wrapper = true;
6804
 
6805
<.*?>
< table.height() ) {
<.*?><.*?> // Property extension
6806
<.*?>
< table.height() ) {
<.*?><.*?> _Api.extend( scope, obj[ struct.name ], struct.propExt );
6807
<.*?>
< table.height() ) {
<.*?><.*?> }
6808
<.*?>
< table.height() ) {
<.*?><.*?> };
6809
 
6810
 
6811
<.*?>
< table.height() ) {
<.*?><.*?> // @todo - Is there need for an augment function?
6812
<.*?>
< table.height() ) {
<.*?><.*?> // _Api.augment = function ( inst, name )
6813
<.*?>
< table.height() ) {
<.*?><.*?> // {
6814
<.*?>
< table.height() ) {
<.*?><.*?> // // Find src object in the structure from the name
6815
<.*?>
< table.height() ) {
<.*?><.*?> // var parts = name.split('.');
6816
 
6817
<.*?>
< table.height() ) {
<.*?><.*?> // _Api.extend( inst, obj );
6818
<.*?>
< table.height() ) {
<.*?><.*?> // };
6819
 
6820
 
6821
<.*?>
< table.height() ) {
<.*?><.*?> // [
6822
<.*?>
< table.height() ) {
<.*?><.*?> // {
6823
<.*?>
< table.height() ) {
<.*?><.*?> // name: 'data' -- string - Property name
6824
<.*?>
< table.height() ) {
<.*?><.*?> // val: function () {}, -- function - Api method (or undefined if just an object
6825
<.*?>
< table.height() ) {
<.*?><.*?> // methodExt: [ ... ], -- array - Array of Api object definitions to extend the method result
6826
<.*?>
< table.height() ) {
<.*?><.*?> // propExt: [ ... ] -- array - Array of Api object definitions to extend the property
6827
<.*?>
< table.height() ) {
<.*?><.*?> // },
6828
<.*?>
< table.height() ) {
<.*?><.*?> // {
6829
<.*?>
< table.height() ) {
<.*?><.*?> // name: 'row'
6830
<.*?>
< table.height() ) {
<.*?><.*?> // val: {},
6831
<.*?>
< table.height() ) {
<.*?><.*?> // methodExt: [ ... ],
6832
<.*?>
< table.height() ) {
<.*?><.*?> // propExt: [
6833
<.*?>
< table.height() ) {
<.*?><.*?> // {
6834
<.*?>
< table.height() ) {
<.*?><.*?> // name: 'data'
6835
<.*?>
< table.height() ) {
<.*?><.*?> // val: function () {},
6836
<.*?>
< table.height() ) {
<.*?><.*?> // methodExt: [ ... ],
6837
<.*?>
< table.height() ) {
<.*?><.*?> // propExt: [ ... ]
6838
<.*?>
< table.height() ) {
<.*?><.*?> // },
6839
<.*?>
< table.height() ) {
<.*?><.*?> // ...
6840
<.*?>
< table.height() ) {
<.*?><.*?> // ]
6841
<.*?>
< table.height() ) {
<.*?><.*?> // }
6842
<.*?>
< table.height() ) {
<.*?><.*?> // ]
6843
 
6844
<.*?>
< table.height() ) {
<.*?><.*?> _Api.register = _api_register = function ( name, val )
6845
<.*?>
< table.height() ) {
<.*?><.*?> {
6846
<.*?>
< table.height() ) {
<.*?><.*?> if ( $.isArray( name ) ) {
6847
<.*?>
< table.height() ) {
<.*?><.*?> for ( var j=0, jen=name.length ; j<jen ; j++ ) {
6848
<.*?>
< table.height() ) {
<.*?><.*?> _Api.register( name[j], val );
6849
<.*?>
< table.height() ) {
<.*?><.*?> }
6850
<.*?>
< table.height() ) {
<.*?><.*?> return;
6851
<.*?>
< table.height() ) {
<.*?><.*?> }
6852
 
6853
<.*?>
< table.height() ) {
<.*?><.*?> var
6854
<.*?>
< table.height() ) {
<.*?><.*?> i, ien,
6855
<.*?>
< table.height() ) {
<.*?><.*?> heir = name.split('.'),
6856
<.*?>
< table.height() ) {
<.*?><.*?> struct = __apiStruct,
6857
<.*?>
< table.height() ) {
<.*?><.*?> key, method;
6858
 
6859
<.*?>
< table.height() ) {
<.*?><.*?> var find = function ( src, name ) {
6860
<.*?>
< table.height() ) {
<.*?><.*?> for ( var i=0, ien=src.length ; i<ien ; i++ ) {
6861
<.*?>
< table.height() ) {
<.*?><.*?> if ( src[i].name === name ) {
6862
<.*?>
< table.height() ) {
<.*?><.*?> return src[i];
6863
<.*?>
< table.height() ) {
<.*?><.*?> }
6864
<.*?>
< table.height() ) {
<.*?><.*?> }
6865
<.*?>
< table.height() ) {
<.*?><.*?> return null;
6866
<.*?>
< table.height() ) {
<.*?><.*?> };
6867
 
6868
<.*?>
< table.height() ) {
<.*?><.*?> for ( i=0, ien=heir.length ; i<ien ; i++ ) {
6869
<.*?>
< table.height() ) {
<.*?><.*?> method = heir[i].indexOf('()') !== -1;
6870
<.*?>
< table.height() ) {
<.*?><.*?> key = method ?
6871
<.*?>
< table.height() ) {
<.*?><.*?> heir[i].replace('()', '') :
6872
<.*?>
< table.height() ) {
<.*?><.*?> heir[i];
6873
 
6874
<.*?>
< table.height() ) {
<.*?><.*?> var src = find( struct, key );
6875
<.*?>
< table.height() ) {
<.*?><.*?> if ( ! src ) {
6876
<.*?>
< table.height() ) {
<.*?><.*?> src = {
6877
<.*?>
< table.height() ) {
<.*?><.*?> name: key,
6878
<.*?>
< table.height() ) {
<.*?><.*?> val: {},
6879
<.*?>
< table.height() ) {
<.*?><.*?> methodExt: [],
6880
<.*?>
< table.height() ) {
<.*?><.*?> propExt: []
6881
<.*?>
< table.height() ) {
<.*?><.*?> };
6882
<.*?>
< table.height() ) {
<.*?><.*?> struct.push( src );
6883
<.*?>
< table.height() ) {
<.*?><.*?> }
6884
 
6885
<.*?>
< table.height() ) {
<.*?><.*?> if ( i === ien-1 ) {
6886
<.*?>
< table.height() ) {
<.*?><.*?> src.val = val;
6887
<.*?>
< table.height() ) {
<.*?><.*?> }
6888
<.*?>
< table.height() ) {
<.*?><.*?> else {
6889
<.*?>
< table.height() ) {
<.*?><.*?> struct = method ?
6890
<.*?>
< table.height() ) {
<.*?><.*?> src.methodExt :
6891
<.*?>
< table.height() ) {
<.*?><.*?> src.propExt;
6892
<.*?>
< table.height() ) {
<.*?><.*?> }
6893
<.*?>
< table.height() ) {
<.*?><.*?> }
6894
 
6895
<.*?>
< table.height() ) {
<.*?><.*?> // Rebuild the API with the new construct
6896
<.*?>
< table.height() ) {
<.*?><.*?> if ( _Api.ready ) {
6897
<.*?>
< table.height() ) {
<.*?><.*?> DataTable.api.build();
6898
<.*?>
< table.height() ) {
<.*?><.*?> }
6899
<.*?>
< table.height() ) {
<.*?><.*?> };
6900
 
6901
 
6902
<.*?>
< table.height() ) {
<.*?><.*?> _Api.registerPlural = _api_registerPlural = function ( pluralName, singularName, val ) {
6903
<.*?>
< table.height() ) {
<.*?><.*?> _Api.register( pluralName, val );
6904
 
6905
<.*?>
< table.height() ) {
<.*?><.*?> _Api.register( singularName, function () {
6906
<.*?>
< table.height() ) {
<.*?><.*?> var ret = val.apply( this, arguments );
6907
 
6908
<.*?>
< table.height() ) {
<.*?><.*?> if ( ret === this ) {
6909
<.*?>
< table.height() ) {
<.*?><.*?> // Returned item is the API instance that was passed in, return it
6910
<.*?>
< table.height() ) {
<.*?><.*?> return this;
6911
<.*?>
< table.height() ) {
<.*?><.*?> }
6912
<.*?>
< table.height() ) {
<.*?><.*?> else if ( ret instanceof _Api ) {
6913
<.*?>
< table.height() ) {
<.*?><.*?> // New API instance returned, want the value from the first item
6914
<.*?>
< table.height() ) {
<.*?><.*?> // in the returned array for the singular result.
6915
<.*?>
< table.height() ) {
<.*?><.*?> return ret.length ?
6916
<.*?>
< table.height() ) {
<.*?><.*?> $.isArray( ret[0] ) ?
6917
<.*?>
< table.height() ) {
<.*?><.*?> new _Api( ret.context, ret[0] ) : // Array results are 'enhanced'
6918
<.*?>
< table.height() ) {
<.*?><.*?> ret[0] :
6919
<.*?>
< table.height() ) {
<.*?><.*?> undefined;
6920
<.*?>
< table.height() ) {
<.*?><.*?> }
6921
 
6922
<.*?>
< table.height() ) {
<.*?><.*?> // Non-API return - just fire it back
6923
<.*?>
< table.height() ) {
<.*?><.*?> return ret;
6924
<.*?>
< table.height() ) {
<.*?><.*?> } );
6925
<.*?>
< table.height() ) {
<.*?><.*?> };
6926
 
6927
 
6928
<.*?>
< table.height() ) {
<.*?><.*?> /**
6929
<.*?>
< table.height() ) {
<.*?><.*?> * Selector for HTML tables. Apply the given selector to the give array of
6930
<.*?>
< table.height() ) {
<.*?><.*?> * DataTables settings objects.
6931
<.*?>
< table.height() ) {
<.*?><.*?> *
6932
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string|integer} [selector] jQuery selector string or integer
6933
<.*?>
< table.height() ) {
<.*?><.*?> * @param {array} Array of DataTables settings objects to be filtered
6934
<.*?>
< table.height() ) {
<.*?><.*?> * @return {array}
6935
<.*?>
< table.height() ) {
<.*?><.*?> * @ignore
6936
<.*?>
< table.height() ) {
<.*?><.*?> */
6937
<.*?>
< table.height() ) {
<.*?><.*?> var __table_selector = function ( selector, a )
6938
<.*?>
< table.height() ) {
<.*?><.*?> {
6939
<.*?>
< table.height() ) {
<.*?><.*?> // Integer is used to pick out a table by index
6940
<.*?>
< table.height() ) {
<.*?><.*?> if ( typeof selector === 'number' ) {
6941
<.*?>
< table.height() ) {
<.*?><.*?> return [ a[ selector ] ];
6942
<.*?>
< table.height() ) {
<.*?><.*?> }
6943
 
6944
<.*?>
< table.height() ) {
<.*?><.*?> // Perform a jQuery selector on the table nodes
6945
<.*?>
< table.height() ) {
<.*?><.*?> var nodes = $.map( a, function (el, i) {
6946
<.*?>
< table.height() ) {
<.*?><.*?> return el.nTable;
6947
<.*?>
< table.height() ) {
<.*?><.*?> } );
6948
 
6949
<.*?>
< table.height() ) {
<.*?><.*?> return $(nodes)
6950
<.*?>
< table.height() ) {
<.*?><.*?> .filter( selector )
6951
<.*?>
< table.height() ) {
<.*?><.*?> .map( function (i) {
6952
<.*?>
< table.height() ) {
<.*?><.*?> // Need to translate back from the table node to the settings
6953
<.*?>
< table.height() ) {
<.*?><.*?> var idx = $.inArray( this, nodes );
6954
<.*?>
< table.height() ) {
<.*?><.*?> return a[ idx ];
6955
<.*?>
< table.height() ) {
<.*?><.*?> } )
6956
<.*?>
< table.height() ) {
<.*?><.*?> .toArray();
6957
<.*?>
< table.height() ) {
<.*?><.*?> };
6958
 
6959
 
6960
 
6961
<.*?>
< table.height() ) {
<.*?><.*?> /**
6962
<.*?>
< table.height() ) {
<.*?><.*?> * Context selector for the API's context (i.e. the tables the API instance
6963
<.*?>
< table.height() ) {
<.*?><.*?> * refers to.
6964
<.*?>
< table.height() ) {
<.*?><.*?> *
6965
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.Api#tables
6966
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string|integer} [selector] Selector to pick which tables the iterator
6967
<.*?>
< table.height() ) {
<.*?><.*?> * should operate on. If not given, all tables in the current context are
6968
<.*?>
< table.height() ) {
<.*?><.*?> * used. This can be given as a jQuery selector (for example `':gt(0)'`) to
6969
<.*?>
< table.height() ) {
<.*?><.*?> * select multiple tables or as an integer to select a single table.
6970
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {DataTable.Api} Returns a new API instance if a selector is given.
6971
<.*?>
< table.height() ) {
<.*?><.*?> */
6972
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'tables()', function ( selector ) {
6973
<.*?>
< table.height() ) {
<.*?><.*?> // A new instance is created if there was a selector specified
6974
<.*?>
< table.height() ) {
<.*?><.*?> return selector ?
6975
<.*?>
< table.height() ) {
<.*?><.*?> new _Api( __table_selector( selector, this.context ) ) :
6976
<.*?>
< table.height() ) {
<.*?><.*?> this;
6977
<.*?>
< table.height() ) {
<.*?><.*?> } );
6978
 
6979
 
6980
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'table()', function ( selector ) {
6981
<.*?>
< table.height() ) {
<.*?><.*?> var tables = this.tables( selector );
6982
<.*?>
< table.height() ) {
<.*?><.*?> var ctx = tables.context;
6983
 
6984
<.*?>
< table.height() ) {
<.*?><.*?> // Truncate to the first matched table
6985
<.*?>
< table.height() ) {
<.*?><.*?> return ctx.length ?
6986
<.*?>
< table.height() ) {
<.*?><.*?> new _Api( ctx[0] ) :
6987
<.*?>
< table.height() ) {
<.*?><.*?> tables;
6988
<.*?>
< table.height() ) {
<.*?><.*?> } );
6989
 
6990
 
6991
<.*?>
< table.height() ) {
<.*?><.*?> _api_registerPlural( 'tables().nodes()', 'table().node()' , function () {
6992
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'table', function ( ctx ) {
6993
<.*?>
< table.height() ) {
<.*?><.*?> return ctx.nTable;
6994
<.*?>
< table.height() ) {
<.*?><.*?> } );
6995
<.*?>
< table.height() ) {
<.*?><.*?> } );
6996
 
6997
 
6998
<.*?>
< table.height() ) {
<.*?><.*?> _api_registerPlural( 'tables().body()', 'table().body()' , function () {
6999
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'table', function ( ctx ) {
7000
<.*?>
< table.height() ) {
<.*?><.*?> return ctx.nTBody;
7001
<.*?>
< table.height() ) {
<.*?><.*?> } );
7002
<.*?>
< table.height() ) {
<.*?><.*?> } );
7003
 
7004
 
7005
<.*?>
< table.height() ) {
<.*?><.*?> _api_registerPlural( 'tables().header()', 'table().header()' , function () {
7006
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'table', function ( ctx ) {
7007
<.*?>
< table.height() ) {
<.*?><.*?> return ctx.nTHead;
7008
<.*?>
< table.height() ) {
<.*?><.*?> } );
7009
<.*?>
< table.height() ) {
<.*?><.*?> } );
7010
 
7011
 
7012
<.*?>
< table.height() ) {
<.*?><.*?> _api_registerPlural( 'tables().footer()', 'table().footer()' , function () {
7013
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'table', function ( ctx ) {
7014
<.*?>
< table.height() ) {
<.*?><.*?> return ctx.nTFoot;
7015
<.*?>
< table.height() ) {
<.*?><.*?> } );
7016
<.*?>
< table.height() ) {
<.*?><.*?> } );
7017
 
7018
 
7019
 
7020
<.*?>
< table.height() ) {
<.*?><.*?> /**
7021
<.*?>
< table.height() ) {
<.*?><.*?> * Redraw the tables in the current context.
7022
<.*?>
< table.height() ) {
<.*?><.*?> *
7023
<.*?>
< table.height() ) {
<.*?><.*?> * @param {boolean} [reset=true] Reset (default) or hold the current paging
7024
<.*?>
< table.height() ) {
<.*?><.*?> * position. A full re-sort and re-filter is performed when this method is
7025
<.*?>
< table.height() ) {
<.*?><.*?> * called, which is why the pagination reset is the default action.
7026
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {DataTables.Api} this
7027
<.*?>
< table.height() ) {
<.*?><.*?> */
7028
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'draw()', function ( resetPaging ) {
7029
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'table', function ( settings ) {
7030
<.*?>
< table.height() ) {
<.*?><.*?> _fnReDraw( settings, resetPaging===false );
7031
<.*?>
< table.height() ) {
<.*?><.*?> } );
7032
<.*?>
< table.height() ) {
<.*?><.*?> } );
7033
 
7034
 
7035
 
7036
<.*?>
< table.height() ) {
<.*?><.*?> /**
7037
<.*?>
< table.height() ) {
<.*?><.*?> * Get the current page index.
7038
<.*?>
< table.height() ) {
<.*?><.*?> *
7039
<.*?>
< table.height() ) {
<.*?><.*?> * @return {integer} Current page index (zero based)
7040
<.*?>
< table.height() ) {
<.*?><.*?> *//**
7041
<.*?>
< table.height() ) {
<.*?><.*?> * Set the current page.
7042
<.*?>
< table.height() ) {
<.*?><.*?> *
7043
<.*?>
< table.height() ) {
<.*?><.*?> * Note that if you attempt to show a page which does not exist, DataTables will
7044
<.*?>
< table.height() ) {
<.*?><.*?> * not throw an error, but rather reset the paging.
7045
<.*?>
< table.height() ) {
<.*?><.*?> *
7046
<.*?>
< table.height() ) {
<.*?><.*?> * @param {integer|string} action The paging action to take. This can be one of:
7047
<.*?>
< table.height() ) {
<.*?><.*?> * * `integer` - The page index to jump to
7048
<.*?>
< table.height() ) {
<.*?><.*?> * * `string` - An action to take:
7049
<.*?>
< table.height() ) {
<.*?><.*?> * * `first` - Jump to first page.
7050
<.*?>
< table.height() ) {
<.*?><.*?> * * `next` - Jump to the next page
7051
<.*?>
< table.height() ) {
<.*?><.*?> * * `previous` - Jump to previous page
7052
<.*?>
< table.height() ) {
<.*?><.*?> * * `last` - Jump to the last page.
7053
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {DataTables.Api} this
7054
<.*?>
< table.height() ) {
<.*?><.*?> */
7055
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'page()', function ( action ) {
7056
<.*?>
< table.height() ) {
<.*?><.*?> if ( action === undefined ) {
7057
<.*?>
< table.height() ) {
<.*?><.*?> return this.page.info().page; // not an expensive call
7058
<.*?>
< table.height() ) {
<.*?><.*?> }
7059
 
7060
<.*?>
< table.height() ) {
<.*?><.*?> // else, have an action to take on all tables
7061
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'table', function ( settings ) {
7062
<.*?>
< table.height() ) {
<.*?><.*?> _fnPageChange( settings, action );
7063
<.*?>
< table.height() ) {
<.*?><.*?> } );
7064
<.*?>
< table.height() ) {
<.*?><.*?> } );
7065
 
7066
 
7067
<.*?>
< table.height() ) {
<.*?><.*?> /**
7068
<.*?>
< table.height() ) {
<.*?><.*?> * Paging information for the first table in the current context.
7069
<.*?>
< table.height() ) {
<.*?><.*?> *
7070
<.*?>
< table.height() ) {
<.*?><.*?> * If you require paging information for another table, use the `table()` method
7071
<.*?>
< table.height() ) {
<.*?><.*?> * with a suitable selector.
7072
<.*?>
< table.height() ) {
<.*?><.*?> *
7073
<.*?>
< table.height() ) {
<.*?><.*?> * @return {object} Object with the following properties set:
7074
<.*?>
< table.height() ) {
<.*?><.*?> * * `page` - Current page index (zero based - i.e. the first page is `0`)
7075
<.*?>
< table.height() ) {
<.*?><.*?> * * `pages` - Total number of pages
7076
<.*?>
< table.height() ) {
<.*?><.*?> * * `start` - Display index for the first record shown on the current page
7077
<.*?>
< table.height() ) {
<.*?><.*?> * * `end` - Display index for the last record shown on the current page
7078
<.*?>
< table.height() ) {
<.*?><.*?> * * `length` - Display length (number of records). Note that generally `start
7079
<.*?>
< table.height() ) {
<.*?><.*?> * + length = end`, but this is not always true, for example if there are
7080
<.*?>
< table.height() ) {
<.*?><.*?> * only 2 records to show on the final page, with a length of 10.
7081
<.*?>
< table.height() ) {
<.*?><.*?> * * `recordsTotal` - Full data set length
7082
<.*?>
< table.height() ) {
<.*?><.*?> * * `recordsDisplay` - Data set length once the current filtering criterion
7083
<.*?>
< table.height() ) {
<.*?><.*?> * are applied.
7084
<.*?>
< table.height() ) {
<.*?><.*?> */
7085
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'page.info()', function ( action ) {
7086
<.*?>
< table.height() ) {
<.*?><.*?> if ( this.context.length === 0 ) {
7087
<.*?>
< table.height() ) {
<.*?><.*?> return undefined;
7088
<.*?>
< table.height() ) {
<.*?><.*?> }
7089
 
7090
<.*?>
< table.height() ) {
<.*?><.*?> var
7091
<.*?>
< table.height() ) {
<.*?><.*?> settings = this.context[0],
7092
<.*?>
< table.height() ) {
<.*?><.*?> start = settings._iDisplayStart,
7093
<.*?>
< table.height() ) {
<.*?><.*?> len = settings._iDisplayLength,
7094
<.*?>
< table.height() ) {
<.*?><.*?> visRecords = settings.fnRecordsDisplay(),
7095
<.*?>
< table.height() ) {
<.*?><.*?> all = len === -1;
7096
 
7097
<.*?>
< table.height() ) {
<.*?><.*?> return {
7098
<.*?>
< table.height() ) {
<.*?><.*?> "page": all ? 0 : Math.floor( start / len ),
7099
<.*?>
< table.height() ) {
<.*?><.*?> "pages": all ? 1 : Math.ceil( visRecords / len ),
7100
<.*?>
< table.height() ) {
<.*?><.*?> "start": start,
7101
<.*?>
< table.height() ) {
<.*?><.*?> "end": settings.fnDisplayEnd(),
7102
<.*?>
< table.height() ) {
<.*?><.*?> "length": len,
7103
<.*?>
< table.height() ) {
<.*?><.*?> "recordsTotal": settings.fnRecordsTotal(),
7104
<.*?>
< table.height() ) {
<.*?><.*?> "recordsDisplay": visRecords
7105
<.*?>
< table.height() ) {
<.*?><.*?> };
7106
<.*?>
< table.height() ) {
<.*?><.*?> } );
7107
 
7108
 
7109
<.*?>
< table.height() ) {
<.*?><.*?> /**
7110
<.*?>
< table.height() ) {
<.*?><.*?> * Get the current page length.
7111
<.*?>
< table.height() ) {
<.*?><.*?> *
7112
<.*?>
< table.height() ) {
<.*?><.*?> * @return {integer} Current page length. Note `-1` indicates that all records
7113
<.*?>
< table.height() ) {
<.*?><.*?> * are to be shown.
7114
<.*?>
< table.height() ) {
<.*?><.*?> *//**
7115
<.*?>
< table.height() ) {
<.*?><.*?> * Set the current page length.
7116
<.*?>
< table.height() ) {
<.*?><.*?> *
7117
<.*?>
< table.height() ) {
<.*?><.*?> * @param {integer} Page length to set. Use `-1` to show all records.
7118
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {DataTables.Api} this
7119
<.*?>
< table.height() ) {
<.*?><.*?> */
7120
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'page.len()', function ( len ) {
7121
<.*?>
< table.height() ) {
<.*?><.*?> // Note that we can't call this function 'length()' because `length`
7122
<.*?>
< table.height() ) {
<.*?><.*?> // is a Javascript property of functions which defines how many arguments
7123
<.*?>
< table.height() ) {
<.*?><.*?> // the function expects.
7124
<.*?>
< table.height() ) {
<.*?><.*?> if ( len === undefined ) {
7125
<.*?>
< table.height() ) {
<.*?><.*?> return this.context.length !== 0 ?
7126
<.*?>
< table.height() ) {
<.*?><.*?> this.context[0]._iDisplayLength :
7127
<.*?>
< table.height() ) {
<.*?><.*?> undefined;
7128
<.*?>
< table.height() ) {
<.*?><.*?> }
7129
 
7130
<.*?>
< table.height() ) {
<.*?><.*?> // else, set the page length
7131
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'table', function ( settings ) {
7132
<.*?>
< table.height() ) {
<.*?><.*?> _fnLengthChange( settings, len );
7133
<.*?>
< table.height() ) {
<.*?><.*?> } );
7134
<.*?>
< table.height() ) {
<.*?><.*?> } );
7135
 
7136
 
7137
 
7138
<.*?>
< table.height() ) {
<.*?><.*?> var __reload = function ( settings, holdPosition, callback ) {
7139
<.*?>
< table.height() ) {
<.*?><.*?> if ( _fnDataSource( settings ) == 'ssp' ) {
7140
<.*?>
< table.height() ) {
<.*?><.*?> _fnReDraw( settings, holdPosition );
7141
<.*?>
< table.height() ) {
<.*?><.*?> }
7142
<.*?>
< table.height() ) {
<.*?><.*?> else {
7143
<.*?>
< table.height() ) {
<.*?><.*?> // Trigger xhr
7144
<.*?>
< table.height() ) {
<.*?><.*?> _fnProcessingDisplay( settings, true );
7145
 
7146
<.*?>
< table.height() ) {
<.*?><.*?> _fnBuildAjax( settings, [], function( json ) {
7147
<.*?>
< table.height() ) {
<.*?><.*?> _fnClearTable( settings );
7148
 
7149
<.*?>
< table.height() ) {
<.*?><.*?> var data = _fnAjaxDataSrc( settings, json );
7150
<.*?>
< table.height() ) {
<.*?><.*?> for ( var i=0, ien=data.length ; i<ien ; i++ ) {
7151
<.*?>
< table.height() ) {
<.*?><.*?> _fnAddData( settings, data[i] );
7152
<.*?>
< table.height() ) {
<.*?><.*?> }
7153
 
7154
<.*?>
< table.height() ) {
<.*?><.*?> _fnReDraw( settings, holdPosition );
7155
<.*?>
< table.height() ) {
<.*?><.*?> _fnProcessingDisplay( settings, false );
7156
<.*?>
< table.height() ) {
<.*?><.*?> } );
7157
<.*?>
< table.height() ) {
<.*?><.*?> }
7158
 
7159
<.*?>
< table.height() ) {
<.*?><.*?> // Use the draw event to trigger a callback, regardless of if it is an async
7160
<.*?>
< table.height() ) {
<.*?><.*?> // or sync draw
7161
<.*?>
< table.height() ) {
<.*?><.*?> if ( callback ) {
7162
<.*?>
< table.height() ) {
<.*?><.*?> var api = new _Api( settings );
7163
 
7164
<.*?>
< table.height() ) {
<.*?><.*?> api.one( 'draw', function () {
7165
<.*?>
< table.height() ) {
<.*?><.*?> callback( api.ajax.json() );
7166
<.*?>
< table.height() ) {
<.*?><.*?> } );
7167
<.*?>
< table.height() ) {
<.*?><.*?> }
7168
<.*?>
< table.height() ) {
<.*?><.*?> };
7169
 
7170
 
7171
<.*?>
< table.height() ) {
<.*?><.*?> /**
7172
<.*?>
< table.height() ) {
<.*?><.*?> * Get the JSON response from the last Ajax request that DataTables made to the
7173
<.*?>
< table.height() ) {
<.*?><.*?> * server. Note that this returns the JSON from the first table in the current
7174
<.*?>
< table.height() ) {
<.*?><.*?> * context.
7175
<.*?>
< table.height() ) {
<.*?><.*?> *
7176
<.*?>
< table.height() ) {
<.*?><.*?> * @return {object} JSON received from the server.
7177
<.*?>
< table.height() ) {
<.*?><.*?> */
7178
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'ajax.json()', function () {
7179
<.*?>
< table.height() ) {
<.*?><.*?> var ctx = this.context;
7180
 
7181
<.*?>
< table.height() ) {
<.*?><.*?> if ( ctx.length > 0 ) {
7182
<.*?>
< table.height() ) {
<.*?><.*?> return ctx[0].json;
7183
<.*?>
< table.height() ) {
<.*?><.*?> }
7184
 
7185
<.*?>
< table.height() ) {
<.*?><.*?> // else return undefined;
7186
<.*?>
< table.height() ) {
<.*?><.*?> } );
7187
 
7188
 
7189
<.*?>
< table.height() ) {
<.*?><.*?> /**
7190
<.*?>
< table.height() ) {
<.*?><.*?> * Get the data submitted in the last Ajax request
7191
<.*?>
< table.height() ) {
<.*?><.*?> */
7192
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'ajax.params()', function () {
7193
<.*?>
< table.height() ) {
<.*?><.*?> var ctx = this.context;
7194
 
7195
<.*?>
< table.height() ) {
<.*?><.*?> if ( ctx.length > 0 ) {
7196
<.*?>
< table.height() ) {
<.*?><.*?> return ctx[0].oAjaxData;
7197
<.*?>
< table.height() ) {
<.*?><.*?> }
7198
 
7199
<.*?>
< table.height() ) {
<.*?><.*?> // else return undefined;
7200
<.*?>
< table.height() ) {
<.*?><.*?> } );
7201
 
7202
 
7203
<.*?>
< table.height() ) {
<.*?><.*?> /**
7204
<.*?>
< table.height() ) {
<.*?><.*?> * Reload tables from the Ajax data source. Note that this function will
7205
<.*?>
< table.height() ) {
<.*?><.*?> * automatically re-draw the table when the remote data has been loaded.
7206
<.*?>
< table.height() ) {
<.*?><.*?> *
7207
<.*?>
< table.height() ) {
<.*?><.*?> * @param {boolean} [reset=true] Reset (default) or hold the current paging
7208
<.*?>
< table.height() ) {
<.*?><.*?> * position. A full re-sort and re-filter is performed when this method is
7209
<.*?>
< table.height() ) {
<.*?><.*?> * called, which is why the pagination reset is the default action.
7210
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {DataTables.Api} this
7211
<.*?>
< table.height() ) {
<.*?><.*?> */
7212
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'ajax.reload()', function ( callback, resetPaging ) {
7213
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'table', function (settings) {
7214
<.*?>
< table.height() ) {
<.*?><.*?> __reload( settings, resetPaging===false, callback );
7215
<.*?>
< table.height() ) {
<.*?><.*?> } );
7216
<.*?>
< table.height() ) {
<.*?><.*?> } );
7217
 
7218
 
7219
<.*?>
< table.height() ) {
<.*?><.*?> /**
7220
<.*?>
< table.height() ) {
<.*?><.*?> * Get the current Ajax URL. Note that this returns the URL from the first
7221
<.*?>
< table.height() ) {
<.*?><.*?> * table in the current context.
7222
<.*?>
< table.height() ) {
<.*?><.*?> *
7223
<.*?>
< table.height() ) {
<.*?><.*?> * @return {string} Current Ajax source URL
7224
<.*?>
< table.height() ) {
<.*?><.*?> *//**
7225
<.*?>
< table.height() ) {
<.*?><.*?> * Set the Ajax URL. Note that this will set the URL for all tables in the
7226
<.*?>
< table.height() ) {
<.*?><.*?> * current context.
7227
<.*?>
< table.height() ) {
<.*?><.*?> *
7228
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string} url URL to set.
7229
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {DataTables.Api} this
7230
<.*?>
< table.height() ) {
<.*?><.*?> */
7231
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'ajax.url()', function ( url ) {
7232
<.*?>
< table.height() ) {
<.*?><.*?> var ctx = this.context;
7233
 
7234
<.*?>
< table.height() ) {
<.*?><.*?> if ( url === undefined ) {
7235
<.*?>
< table.height() ) {
<.*?><.*?> // get
7236
<.*?>
< table.height() ) {
<.*?><.*?> if ( ctx.length === 0 ) {
7237
<.*?>
< table.height() ) {
<.*?><.*?> return undefined;
7238
<.*?>
< table.height() ) {
<.*?><.*?> }
7239
<.*?>
< table.height() ) {
<.*?><.*?> ctx = ctx[0];
7240
 
7241
<.*?>
< table.height() ) {
<.*?><.*?> return ctx.ajax ?
7242
<.*?>
< table.height() ) {
<.*?><.*?> $.isPlainObject( ctx.ajax ) ?
7243
<.*?>
< table.height() ) {
<.*?><.*?> ctx.ajax.url :
7244
<.*?>
< table.height() ) {
<.*?><.*?> ctx.ajax :
7245
<.*?>
< table.height() ) {
<.*?><.*?> ctx.sAjaxSource;
7246
<.*?>
< table.height() ) {
<.*?><.*?> }
7247
 
7248
<.*?>
< table.height() ) {
<.*?><.*?> // set
7249
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'table', function ( settings ) {
7250
<.*?>
< table.height() ) {
<.*?><.*?> if ( $.isPlainObject( settings.ajax ) ) {
7251
<.*?>
< table.height() ) {
<.*?><.*?> settings.ajax.url = url;
7252
<.*?>
< table.height() ) {
<.*?><.*?> }
7253
<.*?>
< table.height() ) {
<.*?><.*?> else {
7254
<.*?>
< table.height() ) {
<.*?><.*?> settings.ajax = url;
7255
<.*?>
< table.height() ) {
<.*?><.*?> }
7256
<.*?>
< table.height() ) {
<.*?><.*?> // No need to consider sAjaxSource here since DataTables gives priority
7257
<.*?>
< table.height() ) {
<.*?><.*?> // to `ajax` over `sAjaxSource`. So setting `ajax` here, renders any
7258
<.*?>
< table.height() ) {
<.*?><.*?> // value of `sAjaxSource` redundant.
7259
<.*?>
< table.height() ) {
<.*?><.*?> } );
7260
<.*?>
< table.height() ) {
<.*?><.*?> } );
7261
 
7262
 
7263
<.*?>
< table.height() ) {
<.*?><.*?> /**
7264
<.*?>
< table.height() ) {
<.*?><.*?> * Load data from the newly set Ajax URL. Note that this method is only
7265
<.*?>
< table.height() ) {
<.*?><.*?> * available when `ajax.url()` is used to set a URL. Additionally, this method
7266
<.*?>
< table.height() ) {
<.*?><.*?> * has the same effect as calling `ajax.reload()` but is provided for
7267
<.*?>
< table.height() ) {
<.*?><.*?> * convenience when setting a new URL. Like `ajax.reload()` it will
7268
<.*?>
< table.height() ) {
<.*?><.*?> * automatically redraw the table once the remote data has been loaded.
7269
<.*?>
< table.height() ) {
<.*?><.*?> *
7270
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {DataTables.Api} this
7271
<.*?>
< table.height() ) {
<.*?><.*?> */
7272
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'ajax.url().load()', function ( callback, resetPaging ) {
7273
<.*?>
< table.height() ) {
<.*?><.*?> // Same as a reload, but makes sense to present it for easy access after a
7274
<.*?>
< table.height() ) {
<.*?><.*?> // url change
7275
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'table', function ( ctx ) {
7276
<.*?>
< table.height() ) {
<.*?><.*?> __reload( ctx, resetPaging===false, callback );
7277
<.*?>
< table.height() ) {
<.*?><.*?> } );
7278
<.*?>
< table.height() ) {
<.*?><.*?> } );
7279
 
7280
 
7281
 
7282
 
7283
<.*?>
< table.height() ) {
<.*?><.*?> var _selector_run = function ( selector, select )
7284
<.*?>
< table.height() ) {
<.*?><.*?> {
7285
<.*?>
< table.height() ) {
<.*?><.*?> var
7286
<.*?>
< table.height() ) {
<.*?><.*?> out = [], res,
7287
<.*?>
< table.height() ) {
<.*?><.*?> a, i, ien, j, jen;
7288
 
7289
<.*?>
< table.height() ) {
<.*?><.*?> // Can't just check for isArray here, as an API or jQuery instance might be
7290
<.*?>
< table.height() ) {
<.*?><.*?> // given with their array like look
7291
<.*?>
< table.height() ) {
<.*?><.*?> if ( ! selector || typeof selector === 'string' || selector.length === undefined ) {
7292
<.*?>
< table.height() ) {
<.*?><.*?> selector = [ selector ];
7293
<.*?>
< table.height() ) {
<.*?><.*?> }
7294
 
7295
<.*?>
< table.height() ) {
<.*?><.*?> for ( i=0, ien=selector.length ; i<ien ; i++ ) {
7296
<.*?>
< table.height() ) {
<.*?><.*?> a = selector[i] && selector[i].split ?
7297
<.*?>
< table.height() ) {
<.*?><.*?> selector[i].split(',') :
7298
<.*?>
< table.height() ) {
<.*?><.*?> [ selector[i] ];
7299
 
7300
<.*?>
< table.height() ) {
<.*?><.*?> for ( j=0, jen=a.length ; j<jen ; j++ ) {
7301
<.*?>
< table.height() ) {
<.*?><.*?> res = select( typeof a[j] === 'string' ? $.trim(a[j]) : a[j] );
7302
 
7303
<.*?>
< table.height() ) {
<.*?><.*?> if ( res && res.length ) {
7304
<.*?>
< table.height() ) {
<.*?><.*?> out.push.apply( out, res );
7305
<.*?>
< table.height() ) {
<.*?><.*?> }
7306
<.*?>
< table.height() ) {
<.*?><.*?> }
7307
<.*?>
< table.height() ) {
<.*?><.*?> }
7308
 
7309
<.*?>
< table.height() ) {
<.*?><.*?> return out;
7310
<.*?>
< table.height() ) {
<.*?><.*?> };
7311
 
7312
 
7313
<.*?>
< table.height() ) {
<.*?><.*?> var _selector_opts = function ( opts )
7314
<.*?>
< table.height() ) {
<.*?><.*?> {
7315
<.*?>
< table.height() ) {
<.*?><.*?> if ( ! opts ) {
7316
<.*?>
< table.height() ) {
<.*?><.*?> opts = {};
7317
<.*?>
< table.height() ) {
<.*?><.*?> }
7318
 
7319
<.*?>
< table.height() ) {
<.*?><.*?> // Backwards compatibility for 1.9- which used the terminology filter rather
7320
<.*?>
< table.height() ) {
<.*?><.*?> // than search
7321
<.*?>
< table.height() ) {
<.*?><.*?> if ( opts.filter && ! opts.search ) {
7322
<.*?>
< table.height() ) {
<.*?><.*?> opts.search = opts.filter;
7323
<.*?>
< table.height() ) {
<.*?><.*?> }
7324
 
7325
<.*?>
< table.height() ) {
<.*?><.*?> return {
7326
<.*?>
< table.height() ) {
<.*?><.*?> search: opts.search || 'none',
7327
<.*?>
< table.height() ) {
<.*?><.*?> order: opts.order || 'current',
7328
<.*?>
< table.height() ) {
<.*?><.*?> page: opts.page || 'all'
7329
<.*?>
< table.height() ) {
<.*?><.*?> };
7330
<.*?>
< table.height() ) {
<.*?><.*?> };
7331
 
7332
 
7333
<.*?>
< table.height() ) {
<.*?><.*?> var _selector_first = function ( inst )
7334
<.*?>
< table.height() ) {
<.*?><.*?> {
7335
<.*?>
< table.height() ) {
<.*?><.*?> // Reduce the API instance to the first item found
7336
<.*?>
< table.height() ) {
<.*?><.*?> for ( var i=0, ien=inst.length ; i<ien ; i++ ) {
7337
<.*?>
< table.height() ) {
<.*?><.*?> if ( inst[i].length > 0 ) {
7338
<.*?>
< table.height() ) {
<.*?><.*?> // Assign the first element to the first item in the instance
7339
<.*?>
< table.height() ) {
<.*?><.*?> // and truncate the instance and context
7340
<.*?>
< table.height() ) {
<.*?><.*?> inst[0] = inst[i];
7341
<.*?>
< table.height() ) {
<.*?><.*?> inst.length = 1;
7342
<.*?>
< table.height() ) {
<.*?><.*?> inst.context = [ inst.context[i] ];
7343
 
7344
<.*?>
< table.height() ) {
<.*?><.*?> return inst;
7345
<.*?>
< table.height() ) {
<.*?><.*?> }
7346
<.*?>
< table.height() ) {
<.*?><.*?> }
7347
 
7348
<.*?>
< table.height() ) {
<.*?><.*?> // Not found - return an empty instance
7349
<.*?>
< table.height() ) {
<.*?><.*?> inst.length = 0;
7350
<.*?>
< table.height() ) {
<.*?><.*?> return inst;
7351
<.*?>
< table.height() ) {
<.*?><.*?> };
7352
 
7353
 
7354
<.*?>
< table.height() ) {
<.*?><.*?> var _selector_row_indexes = function ( settings, opts )
7355
<.*?>
< table.height() ) {
<.*?><.*?> {
7356
<.*?>
< table.height() ) {
<.*?><.*?> var
7357
<.*?>
< table.height() ) {
<.*?><.*?> i, ien, tmp, a=[],
7358
<.*?>
< table.height() ) {
<.*?><.*?> displayFiltered = settings.aiDisplay,
7359
<.*?>
< table.height() ) {
<.*?><.*?> displayMaster = settings.aiDisplayMaster;
7360
 
7361
<.*?>
< table.height() ) {
<.*?><.*?> var
7362
<.*?>
< table.height() ) {
<.*?><.*?> search = opts.search, // none, applied, removed
7363
<.*?>
< table.height() ) {
<.*?><.*?> order = opts.order, // applied, current, index (original - compatibility with 1.9)
7364
<.*?>
< table.height() ) {
<.*?><.*?> page = opts.page; // all, current
7365
 
7366
<.*?>
< table.height() ) {
<.*?><.*?> if ( _fnDataSource( settings ) == 'ssp' ) {
7367
<.*?>
< table.height() ) {
<.*?><.*?> // In server-side processing mode, most options are irrelevant since
7368
<.*?>
< table.height() ) {
<.*?><.*?> // rows not shown don't exist and the index order is the applied order
7369
<.*?>
< table.height() ) {
<.*?><.*?> // Removed is a special case - for consistency just return an empty
7370
<.*?>
< table.height() ) {
<.*?><.*?> // array
7371
<.*?>
< table.height() ) {
<.*?><.*?> return search === 'removed' ?
7372
<.*?>
< table.height() ) {
<.*?><.*?> [] :
7373
<.*?>
< table.height() ) {
<.*?><.*?> _range( 0, displayMaster.length );
7374
<.*?>
< table.height() ) {
<.*?><.*?> }
7375
<.*?>
< table.height() ) {
<.*?><.*?> else if ( page == 'current' ) {
7376
<.*?>
< table.height() ) {
<.*?><.*?> // Current page implies that order=current and fitler=applied, since it is
7377
<.*?>
< table.height() ) {
<.*?><.*?> // fairly senseless otherwise, regardless of what order and search actually
7378
<.*?>
< table.height() ) {
<.*?><.*?> // are
7379
<.*?>
< table.height() ) {
<.*?><.*?> for ( i=settings._iDisplayStart, ien=settings.fnDisplayEnd() ; i<ien ; i++ ) {
7380
<.*?>
< table.height() ) {
<.*?><.*?> a.push( displayFiltered[i] );
7381
<.*?>
< table.height() ) {
<.*?><.*?> }
7382
<.*?>
< table.height() ) {
<.*?><.*?> }
7383
<.*?>
< table.height() ) {
<.*?><.*?> else if ( order == 'current' || order == 'applied' ) {
7384
<.*?>
< table.height() ) {
<.*?><.*?> a = search == 'none' ?
7385
<.*?>
< table.height() ) {
<.*?><.*?> displayMaster.slice() : // no search
7386
<.*?>
< table.height() ) {
<.*?><.*?> search == 'applied' ?
7387
<.*?>
< table.height() ) {
<.*?><.*?> displayFiltered.slice() : // applied search
7388
<.*?>
< table.height() ) {
<.*?><.*?> $.map( displayMaster, function (el, i) { // removed search
7389
<.*?>
< table.height() ) {
<.*?><.*?> return $.inArray( el, displayFiltered ) === -1 ? el : null;
7390
<.*?>
< table.height() ) {
<.*?><.*?> } );
7391
<.*?>
< table.height() ) {
<.*?><.*?> }
7392
<.*?>
< table.height() ) {
<.*?><.*?> else if ( order == 'index' || order == 'original' ) {
7393
<.*?>
< table.height() ) {
<.*?><.*?> for ( i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
7394
<.*?>
< table.height() ) {
<.*?><.*?> if ( search == 'none' ) {
7395
<.*?>
< table.height() ) {
<.*?><.*?> a.push( i );
7396
<.*?>
< table.height() ) {
<.*?><.*?> }
7397
<.*?>
< table.height() ) {
<.*?><.*?> else { // applied | removed
7398
<.*?>
< table.height() ) {
<.*?><.*?> tmp = $.inArray( i, displayFiltered );
7399
 
7400
<.*?>
< table.height() ) {
<.*?><.*?> if ((tmp === -1 && search == 'removed') ||
7401
<.*?>
< table.height() ) {
<.*?><.*?> (tmp === 1 && search == 'applied') )
7402
<.*?>
< table.height() ) {
<.*?><.*?> {
7403
<.*?>
< table.height() ) {
<.*?><.*?> a.push( i );
7404
<.*?>
< table.height() ) {
<.*?><.*?> }
7405
<.*?>
< table.height() ) {
<.*?><.*?> }
7406
<.*?>
< table.height() ) {
<.*?><.*?> }
7407
<.*?>
< table.height() ) {
<.*?><.*?> }
7408
 
7409
<.*?>
< table.height() ) {
<.*?><.*?> return a;
7410
<.*?>
< table.height() ) {
<.*?><.*?> };
7411
 
7412
 
7413
<.*?>
< table.height() ) {
<.*?><.*?> /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
7414
<.*?>
< table.height() ) {
<.*?><.*?> * Rows
7415
<.*?>
< table.height() ) {
<.*?><.*?> *
7416
<.*?>
< table.height() ) {
<.*?><.*?> * {} - no selector - use all available rows
7417
<.*?>
< table.height() ) {
<.*?><.*?> * {integer} - row aoData index
7418
<.*?>
< table.height() ) {
<.*?><.*?> * {node} - TR node
7419
<.*?>
< table.height() ) {
<.*?><.*?> * {string} - jQuery selector to apply to the TR elements
7420
<.*?>
< table.height() ) {
<.*?><.*?> * {array} - jQuery array of nodes, or simply an array of TR nodes
7421
<.*?>
< table.height() ) {
<.*?><.*?> *
7422
<.*?>
< table.height() ) {
<.*?><.*?> */
7423
 
7424
 
7425
<.*?>
< table.height() ) {
<.*?><.*?> var __row_selector = function ( settings, selector, opts )
7426
<.*?>
< table.height() ) {
<.*?><.*?> {
7427
<.*?>
< table.height() ) {
<.*?><.*?> return _selector_run( selector, function ( sel ) {
7428
<.*?>
< table.height() ) {
<.*?><.*?> var selInt = _intVal( sel );
7429
 
7430
<.*?>
< table.height() ) {
<.*?><.*?> // Short cut - selector is a number and no options provided (default is
7431
<.*?>
< table.height() ) {
<.*?><.*?> // all records, so no need to check if the index is in there, since it
7432
<.*?>
< table.height() ) {
<.*?><.*?> // must be - dev error if the index doesn't exist).
7433
<.*?>
< table.height() ) {
<.*?><.*?> if ( selInt !== null && ! opts ) {
7434
<.*?>
< table.height() ) {
<.*?><.*?> return [ selInt ];
7435
<.*?>
< table.height() ) {
<.*?><.*?> }
7436
 
7437
<.*?>
< table.height() ) {
<.*?><.*?> var rows = _selector_row_indexes( settings, opts );
7438
 
7439
<.*?>
< table.height() ) {
<.*?><.*?> if ( selInt !== null && $.inArray( selInt, rows ) !== -1 ) {
7440
<.*?>
< table.height() ) {
<.*?><.*?> // Selector - integer
7441
<.*?>
< table.height() ) {
<.*?><.*?> return [ selInt ];
7442
<.*?>
< table.height() ) {
<.*?><.*?> }
7443
<.*?>
< table.height() ) {
<.*?><.*?> else if ( ! sel ) {
7444
<.*?>
< table.height() ) {
<.*?><.*?> // Selector - none
7445
<.*?>
< table.height() ) {
<.*?><.*?> return rows;
7446
<.*?>
< table.height() ) {
<.*?><.*?> }
7447
 
7448
<.*?>
< table.height() ) {
<.*?><.*?> // Get nodes in the order from the `rows` array (can't use `pluck`) @todo - use pluck_order
7449
<.*?>
< table.height() ) {
<.*?><.*?> var nodes = [];
7450
<.*?>
< table.height() ) {
<.*?><.*?> for ( var i=0, ien=rows.length ; i<ien ; i++ ) {
7451
<.*?>
< table.height() ) {
<.*?><.*?> nodes.push( settings.aoData[ rows[i] ].nTr );
7452
<.*?>
< table.height() ) {
<.*?><.*?> }
7453
 
7454
<.*?>
< table.height() ) {
<.*?><.*?> if ( sel.nodeName ) {
7455
<.*?>
< table.height() ) {
<.*?><.*?> // Selector - node
7456
<.*?>
< table.height() ) {
<.*?><.*?> if ( $.inArray( sel, nodes ) !== -1 ) {
7457
<.*?>
< table.height() ) {
<.*?><.*?> return [ sel._DT_RowIndex ];// sel is a TR node that is in the table
7458
<.*?>
< table.height() ) {
<.*?><.*?> // and DataTables adds a prop for fast lookup
7459
<.*?>
< table.height() ) {
<.*?><.*?> }
7460
<.*?>
< table.height() ) {
<.*?><.*?> }
7461
 
7462
<.*?>
< table.height() ) {
<.*?><.*?> // Selector - jQuery selector string, array of nodes or jQuery object/
7463
<.*?>
< table.height() ) {
<.*?><.*?> // As jQuery's .filter() allows jQuery objects to be passed in filter,
7464
<.*?>
< table.height() ) {
<.*?><.*?> // it also allows arrays, so this will cope with all three options
7465
<.*?>
< table.height() ) {
<.*?><.*?> return $(nodes)
7466
<.*?>
< table.height() ) {
<.*?><.*?> .filter( sel )
7467
<.*?>
< table.height() ) {
<.*?><.*?> .map( function () {
7468
<.*?>
< table.height() ) {
<.*?><.*?> return this._DT_RowIndex;
7469
<.*?>
< table.height() ) {
<.*?><.*?> } )
7470
<.*?>
< table.height() ) {
<.*?><.*?> .toArray();
7471
<.*?>
< table.height() ) {
<.*?><.*?> } );
7472
<.*?>
< table.height() ) {
<.*?><.*?> };
7473
 
7474
 
7475
<.*?>
< table.height() ) {
<.*?><.*?> /**
7476
<.*?>
< table.height() ) {
<.*?><.*?> *
7477
<.*?>
< table.height() ) {
<.*?><.*?> */
7478
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'rows()', function ( selector, opts ) {
7479
<.*?>
< table.height() ) {
<.*?><.*?> // argument shifting
7480
<.*?>
< table.height() ) {
<.*?><.*?> if ( selector === undefined ) {
7481
<.*?>
< table.height() ) {
<.*?><.*?> selector = '';
7482
<.*?>
< table.height() ) {
<.*?><.*?> }
7483
<.*?>
< table.height() ) {
<.*?><.*?> else if ( $.isPlainObject( selector ) ) {
7484
<.*?>
< table.height() ) {
<.*?><.*?> opts = selector;
7485
<.*?>
< table.height() ) {
<.*?><.*?> selector = '';
7486
<.*?>
< table.height() ) {
<.*?><.*?> }
7487
 
7488
<.*?>
< table.height() ) {
<.*?><.*?> opts = _selector_opts( opts );
7489
 
7490
<.*?>
< table.height() ) {
<.*?><.*?> var inst = this.iterator( 'table', function ( settings ) {
7491
<.*?>
< table.height() ) {
<.*?><.*?> return __row_selector( settings, selector, opts );
7492
<.*?>
< table.height() ) {
<.*?><.*?> } );
7493
 
7494
<.*?>
< table.height() ) {
<.*?><.*?> // Want argument shifting here and in __row_selector?
7495
<.*?>
< table.height() ) {
<.*?><.*?> inst.selector.rows = selector;
7496
<.*?>
< table.height() ) {
<.*?><.*?> inst.selector.opts = opts;
7497
 
7498
<.*?>
< table.height() ) {
<.*?><.*?> return inst;
7499
<.*?>
< table.height() ) {
<.*?><.*?> } );
7500
 
7501
 
7502
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'rows().nodes()', function () {
7503
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'row', function ( settings, row ) {
7504
<.*?>
< table.height() ) {
<.*?><.*?> return settings.aoData[ row ].nTr || undefined;
7505
<.*?>
< table.height() ) {
<.*?><.*?> } );
7506
<.*?>
< table.height() ) {
<.*?><.*?> } );
7507
 
7508
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'rows().data()', function () {
7509
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( true, 'rows', function ( settings, rows ) {
7510
<.*?>
< table.height() ) {
<.*?><.*?> return _pluck_order( settings.aoData, rows, '_aData' );
7511
<.*?>
< table.height() ) {
<.*?><.*?> } );
7512
<.*?>
< table.height() ) {
<.*?><.*?> } );
7513
 
7514
<.*?>
< table.height() ) {
<.*?><.*?> _api_registerPlural( 'rows().cache()', 'row().cache()', function ( type ) {
7515
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'row', function ( settings, row ) {
7516
<.*?>
< table.height() ) {
<.*?><.*?> var r = settings.aoData[ row ];
7517
<.*?>
< table.height() ) {
<.*?><.*?> return type === 'search' ? r._aFilterData : r._aSortData;
7518
<.*?>
< table.height() ) {
<.*?><.*?> } );
7519
<.*?>
< table.height() ) {
<.*?><.*?> } );
7520
 
7521
<.*?>
< table.height() ) {
<.*?><.*?> _api_registerPlural( 'rows().invalidate()', 'row().invalidate()', function ( src ) {
7522
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'row', function ( settings, row ) {
7523
<.*?>
< table.height() ) {
<.*?><.*?> _fnInvalidateRow( settings, row, src );
7524
<.*?>
< table.height() ) {
<.*?><.*?> } );
7525
<.*?>
< table.height() ) {
<.*?><.*?> } );
7526
 
7527
<.*?>
< table.height() ) {
<.*?><.*?> _api_registerPlural( 'rows().indexes()', 'row().index()', function () {
7528
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'row', function ( settings, row ) {
7529
<.*?>
< table.height() ) {
<.*?><.*?> return row;
7530
<.*?>
< table.height() ) {
<.*?><.*?> } );
7531
<.*?>
< table.height() ) {
<.*?><.*?> } );
7532
 
7533
<.*?>
< table.height() ) {
<.*?><.*?> _api_registerPlural( 'rows().remove()', 'row().remove()', function () {
7534
<.*?>
< table.height() ) {
<.*?><.*?> var that = this;
7535
 
7536
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'row', function ( settings, row, thatIdx ) {
7537
<.*?>
< table.height() ) {
<.*?><.*?> var data = settings.aoData;
7538
 
7539
<.*?>
< table.height() ) {
<.*?><.*?> data.splice( row, 1 );
7540
 
7541
<.*?>
< table.height() ) {
<.*?><.*?> // Update the _DT_RowIndex parameter on all rows in the table
7542
<.*?>
< table.height() ) {
<.*?><.*?> for ( var i=0, ien=data.length ; i<ien ; i++ ) {
7543
<.*?>
< table.height() ) {
<.*?><.*?> if ( data[i].nTr !== null ) {
7544
<.*?>
< table.height() ) {
<.*?><.*?> data[i].nTr._DT_RowIndex = i;
7545
<.*?>
< table.height() ) {
<.*?><.*?> }
7546
<.*?>
< table.height() ) {
<.*?><.*?> }
7547
 
7548
<.*?>
< table.height() ) {
<.*?><.*?> // Remove the target row from the search array
7549
<.*?>
< table.height() ) {
<.*?><.*?> var displayIndex = $.inArray( row, settings.aiDisplay );
7550
 
7551
<.*?>
< table.height() ) {
<.*?><.*?> // Delete from the display arrays
7552
<.*?>
< table.height() ) {
<.*?><.*?> _fnDeleteIndex( settings.aiDisplayMaster, row );
7553
<.*?>
< table.height() ) {
<.*?><.*?> _fnDeleteIndex( settings.aiDisplay, row );
7554
<.*?>
< table.height() ) {
<.*?><.*?> _fnDeleteIndex( that[ thatIdx ], row, false ); // maintain local indexes
7555
 
7556
<.*?>
< table.height() ) {
<.*?><.*?> // Check for an 'overflow' they case for displaying the table
7557
<.*?>
< table.height() ) {
<.*?><.*?> _fnLengthOverflow( settings );
7558
<.*?>
< table.height() ) {
<.*?><.*?> } );
7559
<.*?>
< table.height() ) {
<.*?><.*?> } );
7560
 
7561
 
7562
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'rows.add()', function ( rows ) {
7563
<.*?>
< table.height() ) {
<.*?><.*?> var newRows = this.iterator( 'table', function ( settings ) {
7564
<.*?>
< table.height() ) {
<.*?><.*?> var row, i, ien;
7565
<.*?>
< table.height() ) {
<.*?><.*?> var out = [];
7566
 
7567
<.*?>
< table.height() ) {
<.*?><.*?> for ( i=0, ien=rows.length ; i<ien ; i++ ) {
7568
<.*?>
< table.height() ) {
<.*?><.*?> row = rows[i];
7569
 
7570
<.*?>
< table.height() ) {
<.*?><.*?> if ( row.nodeName && row.nodeName.toUpperCase() === 'TR' ) {
7571
<.*?>
< table.height() ) {
<.*?><.*?> out.push( _fnAddTr( settings, row )[0] );
7572
<.*?>
< table.height() ) {
<.*?><.*?> }
7573
<.*?>
< table.height() ) {
<.*?><.*?> else {
7574
<.*?>
< table.height() ) {
<.*?><.*?> out.push( _fnAddData( settings, row ) );
7575
<.*?>
< table.height() ) {
<.*?><.*?> }
7576
<.*?>
< table.height() ) {
<.*?><.*?> }
7577
 
7578
<.*?>
< table.height() ) {
<.*?><.*?> return out;
7579
<.*?>
< table.height() ) {
<.*?><.*?> } );
7580
 
7581
<.*?>
< table.height() ) {
<.*?><.*?> // Return an Api.rows() extended instance, so rows().nodes() etc can be used
7582
<.*?>
< table.height() ) {
<.*?><.*?> var modRows = this.rows( -1 );
7583
<.*?>
< table.height() ) {
<.*?><.*?> modRows.pop();
7584
<.*?>
< table.height() ) {
<.*?><.*?> modRows.push.apply( modRows, newRows.toArray() );
7585
 
7586
<.*?>
< table.height() ) {
<.*?><.*?> return modRows;
7587
<.*?>
< table.height() ) {
<.*?><.*?> } );
7588
 
7589
 
7590
 
7591
 
7592
 
7593
<.*?>
< table.height() ) {
<.*?><.*?> /**
7594
<.*?>
< table.height() ) {
<.*?><.*?> *
7595
<.*?>
< table.height() ) {
<.*?><.*?> */
7596
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'row()', function ( selector, opts ) {
7597
<.*?>
< table.height() ) {
<.*?><.*?> return _selector_first( this.rows( selector, opts ) );
7598
<.*?>
< table.height() ) {
<.*?><.*?> } );
7599
 
7600
 
7601
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'row().data()', function ( data ) {
7602
<.*?>
< table.height() ) {
<.*?><.*?> var ctx = this.context;
7603
 
7604
<.*?>
< table.height() ) {
<.*?><.*?> if ( data === undefined ) {
7605
<.*?>
< table.height() ) {
<.*?><.*?> // Get
7606
<.*?>
< table.height() ) {
<.*?><.*?> return ctx.length && this.length ?
7607
<.*?>
< table.height() ) {
<.*?><.*?> ctx[0].aoData[ this[0] ]._aData :
7608
<.*?>
< table.height() ) {
<.*?><.*?> undefined;
7609
<.*?>
< table.height() ) {
<.*?><.*?> }
7610
 
7611
<.*?>
< table.height() ) {
<.*?><.*?> // Set
7612
<.*?>
< table.height() ) {
<.*?><.*?> ctx[0].aoData[ this[0] ]._aData = data;
7613
 
7614
<.*?>
< table.height() ) {
<.*?><.*?> // Automatically invalidate
7615
<.*?>
< table.height() ) {
<.*?><.*?> _fnInvalidateRow( ctx[0], this[0], 'data' );
7616
 
7617
<.*?>
< table.height() ) {
<.*?><.*?> return this;
7618
<.*?>
< table.height() ) {
<.*?><.*?> } );
7619
 
7620
 
7621
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'row().node()', function () {
7622
<.*?>
< table.height() ) {
<.*?><.*?> var ctx = this.context;
7623
 
7624
<.*?>
< table.height() ) {
<.*?><.*?> return ctx.length && this.length ?
7625
<.*?>
< table.height() ) {
<.*?><.*?> ctx[0].aoData[ this[0] ].nTr || null :
7626
<.*?>
< table.height() ) {
<.*?><.*?> null;
7627
<.*?>
< table.height() ) {
<.*?><.*?> } );
7628
 
7629
 
7630
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'row.add()', function ( row ) {
7631
<.*?>
< table.height() ) {
<.*?><.*?> // Allow a jQuery object to be passed in - only a single row is added from
7632
<.*?>
< table.height() ) {
<.*?><.*?> // it though - the first element in the set
7633
<.*?>
< table.height() ) {
<.*?><.*?> if ( row instanceof $ && row.length ) {
7634
<.*?>
< table.height() ) {
<.*?><.*?> row = row[0];
7635
<.*?>
< table.height() ) {
<.*?><.*?> }
7636
 
7637
<.*?>
< table.height() ) {
<.*?><.*?> var rows = this.iterator( 'table', function ( settings ) {
7638
<.*?>
< table.height() ) {
<.*?><.*?> if ( row.nodeName && row.nodeName.toUpperCase() === 'TR' ) {
7639
<.*?>
< table.height() ) {
<.*?><.*?> return _fnAddTr( settings, row )[0];
7640
<.*?>
< table.height() ) {
<.*?><.*?> }
7641
<.*?>
< table.height() ) {
<.*?><.*?> return _fnAddData( settings, row );
7642
<.*?>
< table.height() ) {
<.*?><.*?> } );
7643
 
7644
<.*?>
< table.height() ) {
<.*?><.*?> // Return an Api.rows() extended instance, with the newly added row selected
7645
<.*?>
< table.height() ) {
<.*?><.*?> return this.row( rows[0] );
7646
<.*?>
< table.height() ) {
<.*?><.*?> } );
7647
 
7648
 
7649
 
7650
<.*?>
< table.height() ) {
<.*?><.*?> var __details_add = function ( ctx, row, data, klass )
7651
<.*?>
< table.height() ) {
<.*?><.*?> {
7652
<.*?>
< table.height() ) {
<.*?><.*?> // Convert to array of TR elements
7653
<.*?>
< table.height() ) {
<.*?><.*?> var rows = [];
7654
<.*?>
< table.height() ) {
<.*?><.*?> var addRow = function ( r, k ) {
7655
<.*?>
< table.height() ) {
<.*?><.*?> // If we get a TR element, then just add it directly - up to the dev
7656
<.*?>
< table.height() ) {
<.*?><.*?> // to add the correct number of columns etc
7657
<.*?>
< table.height() ) {
<.*?><.*?> if ( r.nodeName && r.nodeName.toLowerCase() === 'tr' ) {
7658
<.*?>
< table.height() ) {
<.*?><.*?> rows.push( r );
7659
<.*?>
< table.height() ) {
<.*?><.*?> }
7660
<.*?>
< table.height() ) {
<.*?><.*?> else {
7661
<.*?>
< table.height() ) {
<.*?><.*?> // Otherwise create a row with a wrapper
7662
<.*?>
< table.height() ) {
<.*?><.*?> var created = $('<tr><td/></tr>');
7663
<.*?>
< table.height() ) {
<.*?><.*?> $('td', created)
7664
<.*?>
< table.height() ) {
<.*?><.*?> .addClass( k )
7665
<.*?>
< table.height() ) {
<.*?><.*?> .html( r )
7666
<.*?>
< table.height() ) {
<.*?><.*?> [0].colSpan = _fnVisbleColumns( ctx );
7667
 
7668
<.*?>
< table.height() ) {
<.*?><.*?> rows.push( created[0] );
7669
<.*?>
< table.height() ) {
<.*?><.*?> }
7670
<.*?>
< table.height() ) {
<.*?><.*?> };
7671
 
7672
<.*?>
< table.height() ) {
<.*?><.*?> if ( $.isArray( data ) || data instanceof $ ) {
7673
<.*?>
< table.height() ) {
<.*?><.*?> for ( var i=0, ien=data.length ; i<ien ; i++ ) {
7674
<.*?>
< table.height() ) {
<.*?><.*?> addRow( data[i], klass );
7675
<.*?>
< table.height() ) {
<.*?><.*?> }
7676
<.*?>
< table.height() ) {
<.*?><.*?> }
7677
<.*?>
< table.height() ) {
<.*?><.*?> else {
7678
<.*?>
< table.height() ) {
<.*?><.*?> addRow( data, klass );
7679
<.*?>
< table.height() ) {
<.*?><.*?> }
7680
 
7681
<.*?>
< table.height() ) {
<.*?><.*?> if ( row._details ) {
7682
<.*?>
< table.height() ) {
<.*?><.*?> row._details.remove();
7683
<.*?>
< table.height() ) {
<.*?><.*?> }
7684
 
7685
<.*?>
< table.height() ) {
<.*?><.*?> row._details = $(rows);
7686
 
7687
<.*?>
< table.height() ) {
<.*?><.*?> // If the children were already shown, that state should be retained
7688
<.*?>
< table.height() ) {
<.*?><.*?> if ( row._detailsShow ) {
7689
<.*?>
< table.height() ) {
<.*?><.*?> row._details.insertAfter( row.nTr );
7690
<.*?>
< table.height() ) {
<.*?><.*?> }
7691
<.*?>
< table.height() ) {
<.*?><.*?> };
7692
 
7693
 
7694
<.*?>
< table.height() ) {
<.*?><.*?> var __details_display = function ( show ) {
7695
<.*?>
< table.height() ) {
<.*?><.*?> var ctx = this.context;
7696
 
7697
<.*?>
< table.height() ) {
<.*?><.*?> if ( ctx.length && this.length ) {
7698
<.*?>
< table.height() ) {
<.*?><.*?> var row = ctx[0].aoData[ this[0] ];
7699
 
7700
<.*?>
< table.height() ) {
<.*?><.*?> if ( row._details ) {
7701
<.*?>
< table.height() ) {
<.*?><.*?> row._detailsShow = show;
7702
<.*?>
< table.height() ) {
<.*?><.*?> if ( show ) {
7703
<.*?>
< table.height() ) {
<.*?><.*?> row._details.insertAfter( row.nTr );
7704
<.*?>
< table.height() ) {
<.*?><.*?> }
7705
<.*?>
< table.height() ) {
<.*?><.*?> else {
7706
<.*?>
< table.height() ) {
<.*?><.*?> row._details.remove();
7707
<.*?>
< table.height() ) {
<.*?><.*?> }
7708
 
7709
<.*?>
< table.height() ) {
<.*?><.*?> __details_events( ctx[0] );
7710
<.*?>
< table.height() ) {
<.*?><.*?> }
7711
<.*?>
< table.height() ) {
<.*?><.*?> }
7712
 
7713
<.*?>
< table.height() ) {
<.*?><.*?> return this;
7714
<.*?>
< table.height() ) {
<.*?><.*?> };
7715
 
7716
 
7717
<.*?>
< table.height() ) {
<.*?><.*?> var __details_events = function ( settings )
7718
<.*?>
< table.height() ) {
<.*?><.*?> {
7719
<.*?>
< table.height() ) {
<.*?><.*?> var api = new _Api( settings );
7720
<.*?>
< table.height() ) {
<.*?><.*?> var namespace = '.dt.DT_details';
7721
<.*?>
< table.height() ) {
<.*?><.*?> var drawEvent = 'draw'+namespace;
7722
<.*?>
< table.height() ) {
<.*?><.*?> var colvisEvent = 'column-visibility'+namespace;
7723
 
7724
<.*?>
< table.height() ) {
<.*?><.*?> api.off( drawEvent +' '+ colvisEvent );
7725
 
7726
<.*?>
< table.height() ) {
<.*?><.*?> if ( _pluck( settings.aoData, '_details' ).length > 0 ) {
7727
<.*?>
< table.height() ) {
<.*?><.*?> // On each draw, insert the required elements into the document
7728
<.*?>
< table.height() ) {
<.*?><.*?> api.on( drawEvent, function () {
7729
<.*?>
< table.height() ) {
<.*?><.*?> api.rows( {page:'current'} ).eq(0).each( function (idx) {
7730
<.*?>
< table.height() ) {
<.*?><.*?> // Internal data grab
7731
<.*?>
< table.height() ) {
<.*?><.*?> var row = settings.aoData[ idx ];
7732
 
7733
<.*?>
< table.height() ) {
<.*?><.*?> if ( row._detailsShow ) {
7734
<.*?>
< table.height() ) {
<.*?><.*?> row._details.insertAfter( row.nTr );
7735
<.*?>
< table.height() ) {
<.*?><.*?> }
7736
<.*?>
< table.height() ) {
<.*?><.*?> } );
7737
<.*?>
< table.height() ) {
<.*?><.*?> } );
7738
 
7739
<.*?>
< table.height() ) {
<.*?><.*?> // Column visibility change - update the colspan
7740
<.*?>
< table.height() ) {
<.*?><.*?> api.on( colvisEvent, function ( e, settings, idx, vis ) {
7741
<.*?>
< table.height() ) {
<.*?><.*?> // Update the colspan for the details rows (note, only if it already has
7742
<.*?>
< table.height() ) {
<.*?><.*?> // a colspan)
7743
<.*?>
< table.height() ) {
<.*?><.*?> var row, visible = _fnVisbleColumns( settings );
7744
 
7745
<.*?>
< table.height() ) {
<.*?><.*?> for ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
7746
<.*?>
< table.height() ) {
<.*?><.*?> row = settings.aoData[i];
7747
 
7748
<.*?>
< table.height() ) {
<.*?><.*?> if ( row._details ) {
7749
<.*?>
< table.height() ) {
<.*?><.*?> row._details.children('td[colspan]').attr('colspan', visible );
7750
<.*?>
< table.height() ) {
<.*?><.*?> }
7751
<.*?>
< table.height() ) {
<.*?><.*?> }
7752
<.*?>
< table.height() ) {
<.*?><.*?> } );
7753
<.*?>
< table.height() ) {
<.*?><.*?> }
7754
<.*?>
< table.height() ) {
<.*?><.*?> };
7755
 
7756
<.*?>
< table.height() ) {
<.*?><.*?> // data can be:
7757
<.*?>
< table.height() ) {
<.*?><.*?> // tr
7758
<.*?>
< table.height() ) {
<.*?><.*?> // string
7759
<.*?>
< table.height() ) {
<.*?><.*?> // jQuery or array of any of the above
7760
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'row().child()', function ( data, klass ) {
7761
<.*?>
< table.height() ) {
<.*?><.*?> var ctx = this.context;
7762
 
7763
<.*?>
< table.height() ) {
<.*?><.*?> if ( data === undefined ) {
7764
<.*?>
< table.height() ) {
<.*?><.*?> // get
7765
<.*?>
< table.height() ) {
<.*?><.*?> return ctx.length && this.length ?
7766
<.*?>
< table.height() ) {
<.*?><.*?> ctx[0].aoData[ this[0] ]._details :
7767
<.*?>
< table.height() ) {
<.*?><.*?> undefined;
7768
<.*?>
< table.height() ) {
<.*?><.*?> }
7769
<.*?>
< table.height() ) {
<.*?><.*?> else if ( ctx.length && this.length ) {
7770
<.*?>
< table.height() ) {
<.*?><.*?> // set
7771
<.*?>
< table.height() ) {
<.*?><.*?> __details_add( ctx[0], ctx[0].aoData[ this[0] ], data, klass );
7772
<.*?>
< table.height() ) {
<.*?><.*?> }
7773
 
7774
<.*?>
< table.height() ) {
<.*?><.*?> return this;
7775
<.*?>
< table.height() ) {
<.*?><.*?> } );
7776
 
7777
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( [
7778
<.*?>
< table.height() ) {
<.*?><.*?> 'row().child.show()',
7779
<.*?>
< table.height() ) {
<.*?><.*?> 'row().child().show()'
7780
<.*?>
< table.height() ) {
<.*?><.*?> ], function () {
7781
<.*?>
< table.height() ) {
<.*?><.*?> __details_display.call( this, true );
7782
<.*?>
< table.height() ) {
<.*?><.*?> return this;
7783
<.*?>
< table.height() ) {
<.*?><.*?> } );
7784
 
7785
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( [
7786
<.*?>
< table.height() ) {
<.*?><.*?> 'row().child.hide()',
7787
<.*?>
< table.height() ) {
<.*?><.*?> 'row().child().hide()'
7788
<.*?>
< table.height() ) {
<.*?><.*?> ], function () {
7789
<.*?>
< table.height() ) {
<.*?><.*?> __details_display.call( this, false );
7790
<.*?>
< table.height() ) {
<.*?><.*?> return this;
7791
<.*?>
< table.height() ) {
<.*?><.*?> } );
7792
 
7793
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'row().child.isShown()', function () {
7794
<.*?>
< table.height() ) {
<.*?><.*?> var ctx = this.context;
7795
 
7796
<.*?>
< table.height() ) {
<.*?><.*?> if ( ctx.length && this.length ) {
7797
<.*?>
< table.height() ) {
<.*?><.*?> // _detailsShown as false or undefined will fall through to return false
7798
<.*?>
< table.height() ) {
<.*?><.*?> return ctx[0].aoData[ this[0] ]._detailsShow || false;
7799
<.*?>
< table.height() ) {
<.*?><.*?> }
7800
<.*?>
< table.height() ) {
<.*?><.*?> return false;
7801
<.*?>
< table.height() ) {
<.*?><.*?> } );
7802
 
7803
 
7804
 
7805
<.*?>
< table.height() ) {
<.*?><.*?> /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
7806
<.*?>
< table.height() ) {
<.*?><.*?> * Columns
7807
<.*?>
< table.height() ) {
<.*?><.*?> *
7808
<.*?>
< table.height() ) {
<.*?><.*?> * {integer} - column index (>=0 count from left, <0 count from right)
7809
<.*?>
< table.height() ) {
<.*?><.*?> * "{integer}:visIdx" - visible column index (i.e. translate to column index) (>=0 count from left, <0 count from right)
7810
<.*?>
< table.height() ) {
<.*?><.*?> * "{integer}:visible" - alias for {integer}:visIdx (>=0 count from left, <0 count from right)
7811
<.*?>
< table.height() ) {
<.*?><.*?> * "{string}:name" - column name
7812
<.*?>
< table.height() ) {
<.*?><.*?> * "{string}" - jQuery selector on column header nodes
7813
<.*?>
< table.height() ) {
<.*?><.*?> *
7814
<.*?>
< table.height() ) {
<.*?><.*?> */
7815
 
7816
<.*?>
< table.height() ) {
<.*?><.*?> // can be an array of these items, comma separated list, or an array of comma
7817
<.*?>
< table.height() ) {
<.*?><.*?> // separated lists
7818
 
7819
<.*?>
< table.height() ) {
<.*?><.*?> var __re_column_selector = /^(.*):(name|visIdx|visible)$/;
7820
 
7821
<.*?>
< table.height() ) {
<.*?><.*?> var __column_selector = function ( settings, selector, opts )
7822
<.*?>
< table.height() ) {
<.*?><.*?> {
7823
<.*?>
< table.height() ) {
<.*?><.*?> var
7824
<.*?>
< table.height() ) {
<.*?><.*?> columns = settings.aoColumns,
7825
<.*?>
< table.height() ) {
<.*?><.*?> names = _pluck( columns, 'sName' ),
7826
<.*?>
< table.height() ) {
<.*?><.*?> nodes = _pluck( columns, 'nTh' );
7827
 
7828
<.*?>
< table.height() ) {
<.*?><.*?> return _selector_run( selector, function ( s ) {
7829
<.*?>
< table.height() ) {
<.*?><.*?> var selInt = _intVal( s );
7830
 
7831
<.*?>
< table.height() ) {
<.*?><.*?> if ( s === '' ) {
7832
<.*?>
< table.height() ) {
<.*?><.*?> // All columns
7833
<.*?>
< table.height() ) {
<.*?><.*?> return _range( columns.length );
7834
<.*?>
< table.height() ) {
<.*?><.*?> }
7835
<.*?>
< table.height() ) {
<.*?><.*?> else if ( selInt !== null ) {
7836
<.*?>
< table.height() ) {
<.*?><.*?> // Integer selector
7837
<.*?>
< table.height() ) {
<.*?><.*?> return [ selInt >= 0 ?
7838
<.*?>
< table.height() ) {
<.*?><.*?> selInt : // Count from left
7839
<.*?>
< table.height() ) {
<.*?><.*?> columns.length + selInt // Count from right (+ because its a negative value)
7840
<.*?>
< table.height() ) {
<.*?><.*?> ];
7841
<.*?>
< table.height() ) {
<.*?><.*?> }
7842
<.*?>
< table.height() ) {
<.*?><.*?> else {
7843
<.*?>
< table.height() ) {
<.*?><.*?> var match = typeof s === 'string' ?
7844
<.*?>
< table.height() ) {
<.*?><.*?> s.match( __re_column_selector ) :
7845
<.*?>
< table.height() ) {
<.*?><.*?> '';
7846
 
7847
<.*?>
< table.height() ) {
<.*?><.*?> if ( match ) {
7848
<.*?>
< table.height() ) {
<.*?><.*?> switch( match[2] ) {
7849
<.*?>
< table.height() ) {
<.*?><.*?> case 'visIdx':
7850
<.*?>
< table.height() ) {
<.*?><.*?> case 'visible':
7851
<.*?>
< table.height() ) {
<.*?><.*?> var idx = parseInt( match[1], 10 );
7852
<.*?>
< table.height() ) {
<.*?><.*?> // Visible index given, convert to column index
7853
<.*?>
< table.height() ) {
<.*?><.*?> if ( idx < 0 ) {
7854
<.*?>
< table.height() ) {
<.*?><.*?> // Counting from the right
7855
<.*?>
< table.height() ) {
<.*?><.*?> var visColumns = $.map( columns, function (col,i) {
7856
<.*?>
< table.height() ) {
<.*?><.*?> return col.bVisible ? i : null;
7857
<.*?>
< table.height() ) {
<.*?><.*?> } );
7858
<.*?>
< table.height() ) {
<.*?><.*?> return [ visColumns[ visColumns.length + idx ] ];
7859
<.*?>
< table.height() ) {
<.*?><.*?> }
7860
<.*?>
< table.height() ) {
<.*?><.*?> // Counting from the left
7861
<.*?>
< table.height() ) {
<.*?><.*?> return [ _fnVisibleToColumnIndex( settings, idx ) ];
7862
 
7863
<.*?>
< table.height() ) {
<.*?><.*?> case 'name':
7864
<.*?>
< table.height() ) {
<.*?><.*?> // match by name. `names` is column index complete and in order
7865
<.*?>
< table.height() ) {
<.*?><.*?> return $.map( names, function (name, i) {
7866
<.*?>
< table.height() ) {
<.*?><.*?> return name === match[1] ? i : null;
7867
<.*?>
< table.height() ) {
<.*?><.*?> } );
7868
<.*?>
< table.height() ) {
<.*?><.*?> }
7869
<.*?>
< table.height() ) {
<.*?><.*?> }
7870
<.*?>
< table.height() ) {
<.*?><.*?> else {
7871
<.*?>
< table.height() ) {
<.*?><.*?> // jQuery selector on the TH elements for the columns
7872
<.*?>
< table.height() ) {
<.*?><.*?> return $( nodes )
7873
<.*?>
< table.height() ) {
<.*?><.*?> .filter( s )
7874
<.*?>
< table.height() ) {
<.*?><.*?> .map( function () {
7875
<.*?>
< table.height() ) {
<.*?><.*?> return $.inArray( this, nodes ); // `nodes` is column index complete and in order
7876
<.*?>
< table.height() ) {
<.*?><.*?> } )
7877
<.*?>
< table.height() ) {
<.*?><.*?> .toArray();
7878
<.*?>
< table.height() ) {
<.*?><.*?> }
7879
<.*?>
< table.height() ) {
<.*?><.*?> }
7880
<.*?>
< table.height() ) {
<.*?><.*?> } );
7881
<.*?>
< table.height() ) {
<.*?><.*?> };
7882
 
7883
 
7884
 
7885
 
7886
 
7887
<.*?>
< table.height() ) {
<.*?><.*?> var __setColumnVis = function ( settings, column, vis ) {
7888
<.*?>
< table.height() ) {
<.*?><.*?> var
7889
<.*?>
< table.height() ) {
<.*?><.*?> cols = settings.aoColumns,
7890
<.*?>
< table.height() ) {
<.*?><.*?> col = cols[ column ],
7891
<.*?>
< table.height() ) {
<.*?><.*?> data = settings.aoData,
7892
<.*?>
< table.height() ) {
<.*?><.*?> row, cells, i, ien, tr;
7893
 
7894
<.*?>
< table.height() ) {
<.*?><.*?> // Get
7895
<.*?>
< table.height() ) {
<.*?><.*?> if ( vis === undefined ) {
7896
<.*?>
< table.height() ) {
<.*?><.*?> return col.bVisible;
7897
<.*?>
< table.height() ) {
<.*?><.*?> }
7898
 
7899
<.*?>
< table.height() ) {
<.*?><.*?> // Set
7900
<.*?>
< table.height() ) {
<.*?><.*?> // No change
7901
<.*?>
< table.height() ) {
<.*?><.*?> if ( col.bVisible === vis ) {
7902
<.*?>
< table.height() ) {
<.*?><.*?> return;
7903
<.*?>
< table.height() ) {
<.*?><.*?> }
7904
 
7905
<.*?>
< table.height() ) {
<.*?><.*?> if ( vis ) {
7906
<.*?>
< table.height() ) {
<.*?><.*?> // Insert column
7907
<.*?>
< table.height() ) {
<.*?><.*?> // Need to decide if we should use appendChild or insertBefore
7908
<.*?>
< table.height() ) {
<.*?><.*?> var insertBefore = $.inArray( true, _pluck(cols, 'bVisible'), column+1 );
7909
 
7910
<.*?>
< table.height() ) {
<.*?><.*?> for ( i=0, ien=data.length ; i<ien ; i++ ) {
7911
<.*?>
< table.height() ) {
<.*?><.*?> tr = data[i].nTr;
7912
<.*?>
< table.height() ) {
<.*?><.*?> cells = data[i].anCells;
7913
 
7914
<.*?>
< table.height() ) {
<.*?><.*?> if ( tr ) {
7915
<.*?>
< table.height() ) {
<.*?><.*?> // insertBefore can act like appendChild if 2nd arg is null
7916
<.*?>
< table.height() ) {
<.*?><.*?> tr.insertBefore( cells[ column ], cells[ insertBefore ] || null );
7917
<.*?>
< table.height() ) {
<.*?><.*?> }
7918
<.*?>
< table.height() ) {
<.*?><.*?> }
7919
<.*?>
< table.height() ) {
<.*?><.*?> }
7920
<.*?>
< table.height() ) {
<.*?><.*?> else {
7921
<.*?>
< table.height() ) {
<.*?><.*?> // Remove column
7922
<.*?>
< table.height() ) {
<.*?><.*?> $( _pluck( settings.aoData, 'anCells', column ) ).detach();
7923
 
7924
<.*?>
< table.height() ) {
<.*?><.*?> col.bVisible = false;
7925
<.*?>
< table.height() ) {
<.*?><.*?> _fnDrawHead( settings, settings.aoHeader );
7926
<.*?>
< table.height() ) {
<.*?><.*?> _fnDrawHead( settings, settings.aoFooter );
7927
 
7928
<.*?>
< table.height() ) {
<.*?><.*?> _fnSaveState( settings );
7929
<.*?>
< table.height() ) {
<.*?><.*?> }
7930
 
7931
<.*?>
< table.height() ) {
<.*?><.*?> // Common actions
7932
<.*?>
< table.height() ) {
<.*?><.*?> col.bVisible = vis;
7933
<.*?>
< table.height() ) {
<.*?><.*?> _fnDrawHead( settings, settings.aoHeader );
7934
<.*?>
< table.height() ) {
<.*?><.*?> _fnDrawHead( settings, settings.aoFooter );
7935
 
7936
<.*?>
< table.height() ) {
<.*?><.*?> // Automatically adjust column sizing
7937
<.*?>
< table.height() ) {
<.*?><.*?> _fnAdjustColumnSizing( settings );
7938
 
7939
<.*?>
< table.height() ) {
<.*?><.*?> // Realign columns for scrolling
7940
<.*?>
< table.height() ) {
<.*?><.*?> if ( settings.oScroll.sX || settings.oScroll.sY ) {
7941
<.*?>
< table.height() ) {
<.*?><.*?> _fnScrollDraw( settings );
7942
<.*?>
< table.height() ) {
<.*?><.*?> }
7943
 
7944
<.*?>
< table.height() ) {
<.*?><.*?> _fnCallbackFire( settings, null, 'column-visibility', [settings, column, vis] );
7945
 
7946
<.*?>
< table.height() ) {
<.*?><.*?> _fnSaveState( settings );
7947
<.*?>
< table.height() ) {
<.*?><.*?> };
7948
 
7949
 
7950
<.*?>
< table.height() ) {
<.*?><.*?> /**
7951
<.*?>
< table.height() ) {
<.*?><.*?> *
7952
<.*?>
< table.height() ) {
<.*?><.*?> */
7953
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'columns()', function ( selector, opts ) {
7954
<.*?>
< table.height() ) {
<.*?><.*?> // argument shifting
7955
<.*?>
< table.height() ) {
<.*?><.*?> if ( selector === undefined ) {
7956
<.*?>
< table.height() ) {
<.*?><.*?> selector = '';
7957
<.*?>
< table.height() ) {
<.*?><.*?> }
7958
<.*?>
< table.height() ) {
<.*?><.*?> else if ( $.isPlainObject( selector ) ) {
7959
<.*?>
< table.height() ) {
<.*?><.*?> opts = selector;
7960
<.*?>
< table.height() ) {
<.*?><.*?> selector = '';
7961
<.*?>
< table.height() ) {
<.*?><.*?> }
7962
 
7963
<.*?>
< table.height() ) {
<.*?><.*?> opts = _selector_opts( opts );
7964
 
7965
<.*?>
< table.height() ) {
<.*?><.*?> var inst = this.iterator( 'table', function ( settings ) {
7966
<.*?>
< table.height() ) {
<.*?><.*?> return __column_selector( settings, selector, opts );
7967
<.*?>
< table.height() ) {
<.*?><.*?> } );
7968
 
7969
<.*?>
< table.height() ) {
<.*?><.*?> // Want argument shifting here and in _row_selector?
7970
<.*?>
< table.height() ) {
<.*?><.*?> inst.selector.cols = selector;
7971
<.*?>
< table.height() ) {
<.*?><.*?> inst.selector.opts = opts;
7972
 
7973
<.*?>
< table.height() ) {
<.*?><.*?> return inst;
7974
<.*?>
< table.height() ) {
<.*?><.*?> } );
7975
 
7976
 
7977
<.*?>
< table.height() ) {
<.*?><.*?> /**
7978
<.*?>
< table.height() ) {
<.*?><.*?> *
7979
<.*?>
< table.height() ) {
<.*?><.*?> */
7980
<.*?>
< table.height() ) {
<.*?><.*?> _api_registerPlural( 'columns().header()', 'column().header()', function ( selector, opts ) {
7981
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'column', function ( settings, column ) {
7982
<.*?>
< table.height() ) {
<.*?><.*?> return settings.aoColumns[column].nTh;
7983
<.*?>
< table.height() ) {
<.*?><.*?> } );
7984
<.*?>
< table.height() ) {
<.*?><.*?> } );
7985
 
7986
 
7987
<.*?>
< table.height() ) {
<.*?><.*?> /**
7988
<.*?>
< table.height() ) {
<.*?><.*?> *
7989
<.*?>
< table.height() ) {
<.*?><.*?> */
7990
<.*?>
< table.height() ) {
<.*?><.*?> _api_registerPlural( 'columns().footer()', 'column().footer()', function ( selector, opts ) {
7991
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'column', function ( settings, column ) {
7992
<.*?>
< table.height() ) {
<.*?><.*?> return settings.aoColumns[column].nTf;
7993
<.*?>
< table.height() ) {
<.*?><.*?> } );
7994
<.*?>
< table.height() ) {
<.*?><.*?> } );
7995
 
7996
 
7997
<.*?>
< table.height() ) {
<.*?><.*?> /**
7998
<.*?>
< table.height() ) {
<.*?><.*?> *
7999
<.*?>
< table.height() ) {
<.*?><.*?> */
8000
<.*?>
< table.height() ) {
<.*?><.*?> _api_registerPlural( 'columns().data()', 'column().data()', function () {
8001
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'column-rows', function ( settings, column, i, j, rows ) {
8002
<.*?>
< table.height() ) {
<.*?><.*?> var a = [];
8003
<.*?>
< table.height() ) {
<.*?><.*?> for ( var row=0, ien=rows.length ; row<ien ; row++ ) {
8004
<.*?>
< table.height() ) {
<.*?><.*?> a.push( _fnGetCellData( settings, rows[row], column, '' ) );
8005
<.*?>
< table.height() ) {
<.*?><.*?> }
8006
<.*?>
< table.height() ) {
<.*?><.*?> return a;
8007
<.*?>
< table.height() ) {
<.*?><.*?> } );
8008
<.*?>
< table.height() ) {
<.*?><.*?> } );
8009
 
8010
 
8011
<.*?>
< table.height() ) {
<.*?><.*?> _api_registerPlural( 'columns().cache()', 'column().cache()', function ( type ) {
8012
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'column-rows', function ( settings, column, i, j, rows ) {
8013
<.*?>
< table.height() ) {
<.*?><.*?> return _pluck_order( settings.aoData, rows,
8014
<.*?>
< table.height() ) {
<.*?><.*?> type === 'search' ? '_aFilterData' : '_aSortData', column
8015
<.*?>
< table.height() ) {
<.*?><.*?> );
8016
<.*?>
< table.height() ) {
<.*?><.*?> } );
8017
<.*?>
< table.height() ) {
<.*?><.*?> } );
8018
 
8019
 
8020
<.*?>
< table.height() ) {
<.*?><.*?> _api_registerPlural( 'columns().nodes()', 'column().nodes()', function () {
8021
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'column-rows', function ( settings, column, i, j, rows ) {
8022
<.*?>
< table.height() ) {
<.*?><.*?> return _pluck_order( settings.aoData, rows, 'anCells', column ) ;
8023
<.*?>
< table.height() ) {
<.*?><.*?> } );
8024
<.*?>
< table.height() ) {
<.*?><.*?> } );
8025
 
8026
 
8027
 
8028
<.*?>
< table.height() ) {
<.*?><.*?> _api_registerPlural( 'columns().visible()', 'column().visible()', function ( vis ) {
8029
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'column', function ( settings, column ) {
8030
<.*?>
< table.height() ) {
<.*?><.*?> return vis === undefined ?
8031
<.*?>
< table.height() ) {
<.*?><.*?> settings.aoColumns[ column ].bVisible :
8032
<.*?>
< table.height() ) {
<.*?><.*?> __setColumnVis( settings, column, vis );
8033
<.*?>
< table.height() ) {
<.*?><.*?> } );
8034
<.*?>
< table.height() ) {
<.*?><.*?> } );
8035
 
8036
 
8037
 
8038
<.*?>
< table.height() ) {
<.*?><.*?> _api_registerPlural( 'columns().indexes()', 'column().index()', function ( type ) {
8039
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'column', function ( settings, column ) {
8040
<.*?>
< table.height() ) {
<.*?><.*?> return type === 'visible' ?
8041
<.*?>
< table.height() ) {
<.*?><.*?> _fnColumnIndexToVisible( settings, column ) :
8042
<.*?>
< table.height() ) {
<.*?><.*?> column;
8043
<.*?>
< table.height() ) {
<.*?><.*?> } );
8044
<.*?>
< table.height() ) {
<.*?><.*?> } );
8045
 
8046
 
8047
<.*?>
< table.height() ) {
<.*?><.*?> // _api_register( 'columns().show()', function () {
8048
<.*?>
< table.height() ) {
<.*?><.*?> // var selector = this.selector;
8049
<.*?>
< table.height() ) {
<.*?><.*?> // return this.columns( selector.cols, selector.opts ).visible( true );
8050
<.*?>
< table.height() ) {
<.*?><.*?> // } );
8051
 
8052
 
8053
<.*?>
< table.height() ) {
<.*?><.*?> // _api_register( 'columns().hide()', function () {
8054
<.*?>
< table.height() ) {
<.*?><.*?> // var selector = this.selector;
8055
<.*?>
< table.height() ) {
<.*?><.*?> // return this.columns( selector.cols, selector.opts ).visible( false );
8056
<.*?>
< table.height() ) {
<.*?><.*?> // } );
8057
 
8058
 
8059
 
8060
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'columns.adjust()', function () {
8061
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'table', function ( settings ) {
8062
<.*?>
< table.height() ) {
<.*?><.*?> _fnAdjustColumnSizing( settings );
8063
<.*?>
< table.height() ) {
<.*?><.*?> } );
8064
<.*?>
< table.height() ) {
<.*?><.*?> } );
8065
 
8066
 
8067
<.*?>
< table.height() ) {
<.*?><.*?> // Convert from one column index type, to another type
8068
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'column.index()', function ( type, idx ) {
8069
<.*?>
< table.height() ) {
<.*?><.*?> if ( this.context.length !== 0 ) {
8070
<.*?>
< table.height() ) {
<.*?><.*?> var ctx = this.context[0];
8071
 
8072
<.*?>
< table.height() ) {
<.*?><.*?> if ( type === 'fromVisible' || type === 'toData' ) {
8073
<.*?>
< table.height() ) {
<.*?><.*?> return _fnVisibleToColumnIndex( ctx, idx );
8074
<.*?>
< table.height() ) {
<.*?><.*?> }
8075
<.*?>
< table.height() ) {
<.*?><.*?> else if ( type === 'fromData' || type === 'toVisible' ) {
8076
<.*?>
< table.height() ) {
<.*?><.*?> return _fnColumnIndexToVisible( ctx, idx );
8077
<.*?>
< table.height() ) {
<.*?><.*?> }
8078
<.*?>
< table.height() ) {
<.*?><.*?> }
8079
<.*?>
< table.height() ) {
<.*?><.*?> } );
8080
 
8081
 
8082
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'column()', function ( selector, opts ) {
8083
<.*?>
< table.height() ) {
<.*?><.*?> return _selector_first( this.columns( selector, opts ) );
8084
<.*?>
< table.height() ) {
<.*?><.*?> } );
8085
 
8086
 
8087
 
8088
 
8089
<.*?>
< table.height() ) {
<.*?><.*?> var __cell_selector = function ( settings, selector, opts )
8090
<.*?>
< table.height() ) {
<.*?><.*?> {
8091
<.*?>
< table.height() ) {
<.*?><.*?> var data = settings.aoData;
8092
<.*?>
< table.height() ) {
<.*?><.*?> var rows = _selector_row_indexes( settings, opts );
8093
<.*?>
< table.height() ) {
<.*?><.*?> var cells = _pluck_order( data, rows, 'anCells' );
8094
<.*?>
< table.height() ) {
<.*?><.*?> var allCells = $( [].concat.apply([], cells) );
8095
<.*?>
< table.height() ) {
<.*?><.*?> var row;
8096
<.*?>
< table.height() ) {
<.*?><.*?> var columns = settings.aoColumns.length;
8097
<.*?>
< table.height() ) {
<.*?><.*?> var a, i, ien, j;
8098
 
8099
<.*?>
< table.height() ) {
<.*?><.*?> return _selector_run( selector, function ( s ) {
8100
<.*?>
< table.height() ) {
<.*?><.*?> if ( ! s ) {
8101
<.*?>
< table.height() ) {
<.*?><.*?> // All cells
8102
<.*?>
< table.height() ) {
<.*?><.*?> a = [];
8103
 
8104
<.*?>
< table.height() ) {
<.*?><.*?> for ( i=0, ien=rows.length ; i<ien ; i++ ) {
8105
<.*?>
< table.height() ) {
<.*?><.*?> row = rows[i];
8106
 
8107
<.*?>
< table.height() ) {
<.*?><.*?> for ( j=0 ; j<columns ; j++ ) {
8108
<.*?>
< table.height() ) {
<.*?><.*?> a.push( {
8109
<.*?>
< table.height() ) {
<.*?><.*?> row: row,
8110
<.*?>
< table.height() ) {
<.*?><.*?> column: j
8111
<.*?>
< table.height() ) {
<.*?><.*?> } );
8112
<.*?>
< table.height() ) {
<.*?><.*?> }
8113
<.*?>
< table.height() ) {
<.*?><.*?> }
8114
 
8115
<.*?>
< table.height() ) {
<.*?><.*?> return a;
8116
<.*?>
< table.height() ) {
<.*?><.*?> }
8117
<.*?>
< table.height() ) {
<.*?><.*?> else if ( $.isPlainObject( s ) ) {
8118
<.*?>
< table.height() ) {
<.*?><.*?> return [s];
8119
<.*?>
< table.height() ) {
<.*?><.*?> }
8120
 
8121
<.*?>
< table.height() ) {
<.*?><.*?> // jQuery filtered cells
8122
<.*?>
< table.height() ) {
<.*?><.*?> return allCells
8123
<.*?>
< table.height() ) {
<.*?><.*?> .filter( s )
8124
<.*?>
< table.height() ) {
<.*?><.*?> .map( function (i, el) {
8125
<.*?>
< table.height() ) {
<.*?><.*?> row = el.parentNode._DT_RowIndex;
8126
 
8127
<.*?>
< table.height() ) {
<.*?><.*?> return {
8128
<.*?>
< table.height() ) {
<.*?><.*?> row: row,
8129
<.*?>
< table.height() ) {
<.*?><.*?> column: $.inArray( el, data[ row ].anCells )
8130
<.*?>
< table.height() ) {
<.*?><.*?> };
8131
<.*?>
< table.height() ) {
<.*?><.*?> } )
8132
<.*?>
< table.height() ) {
<.*?><.*?> .toArray();
8133
<.*?>
< table.height() ) {
<.*?><.*?> } );
8134
<.*?>
< table.height() ) {
<.*?><.*?> };
8135
 
8136
 
8137
 
8138
 
8139
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'cells()', function ( rowSelector, columnSelector, opts ) {
8140
<.*?>
< table.height() ) {
<.*?><.*?> // Argument shifting
8141
<.*?>
< table.height() ) {
<.*?><.*?> if ( $.isPlainObject( rowSelector ) ) {
8142
<.*?>
< table.height() ) {
<.*?><.*?> // If passing in a cell index
8143
<.*?>
< table.height() ) {
<.*?><.*?> if ( rowSelector.row ) {
8144
<.*?>
< table.height() ) {
<.*?><.*?> opts = columnSelector;
8145
<.*?>
< table.height() ) {
<.*?><.*?> columnSelector = null;
8146
<.*?>
< table.height() ) {
<.*?><.*?> }
8147
<.*?>
< table.height() ) {
<.*?><.*?> else {
8148
<.*?>
< table.height() ) {
<.*?><.*?> opts = rowSelector;
8149
<.*?>
< table.height() ) {
<.*?><.*?> rowSelector = null;
8150
<.*?>
< table.height() ) {
<.*?><.*?> }
8151
<.*?>
< table.height() ) {
<.*?><.*?> }
8152
<.*?>
< table.height() ) {
<.*?><.*?> if ( $.isPlainObject( columnSelector ) ) {
8153
<.*?>
< table.height() ) {
<.*?><.*?> opts = columnSelector;
8154
<.*?>
< table.height() ) {
<.*?><.*?> columnSelector = null;
8155
<.*?>
< table.height() ) {
<.*?><.*?> }
8156
 
8157
<.*?>
< table.height() ) {
<.*?><.*?> // Cell selector
8158
<.*?>
< table.height() ) {
<.*?><.*?> if ( columnSelector === null || columnSelector === undefined ) {
8159
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'table', function ( settings ) {
8160
<.*?>
< table.height() ) {
<.*?><.*?> return __cell_selector( settings, rowSelector, _selector_opts( opts ) );
8161
<.*?>
< table.height() ) {
<.*?><.*?> } );
8162
<.*?>
< table.height() ) {
<.*?><.*?> }
8163
 
8164
<.*?>
< table.height() ) {
<.*?><.*?> // Row + column selector
8165
<.*?>
< table.height() ) {
<.*?><.*?> var columns = this.columns( columnSelector, opts );
8166
<.*?>
< table.height() ) {
<.*?><.*?> var rows = this.rows( rowSelector, opts );
8167
<.*?>
< table.height() ) {
<.*?><.*?> var a, i, ien, j, jen;
8168
 
8169
<.*?>
< table.height() ) {
<.*?><.*?> var cells = this.iterator( 'table', function ( settings, idx ) {
8170
<.*?>
< table.height() ) {
<.*?><.*?> a = [];
8171
 
8172
<.*?>
< table.height() ) {
<.*?><.*?> for ( i=0, ien=rows[idx].length ; i<ien ; i++ ) {
8173
<.*?>
< table.height() ) {
<.*?><.*?> for ( j=0, jen=columns[idx].length ; j<jen ; j++ ) {
8174
<.*?>
< table.height() ) {
<.*?><.*?> a.push( {
8175
<.*?>
< table.height() ) {
<.*?><.*?> row: rows[idx][i],
8176
<.*?>
< table.height() ) {
<.*?><.*?> column: columns[idx][j]
8177
<.*?>
< table.height() ) {
<.*?><.*?> } );
8178
<.*?>
< table.height() ) {
<.*?><.*?> }
8179
<.*?>
< table.height() ) {
<.*?><.*?> }
8180
 
8181
<.*?>
< table.height() ) {
<.*?><.*?> return a;
8182
<.*?>
< table.height() ) {
<.*?><.*?> } );
8183
 
8184
<.*?>
< table.height() ) {
<.*?><.*?> $.extend( cells.selector, {
8185
<.*?>
< table.height() ) {
<.*?><.*?> cols: columnSelector,
8186
<.*?>
< table.height() ) {
<.*?><.*?> rows: rowSelector,
8187
<.*?>
< table.height() ) {
<.*?><.*?> opts: opts
8188
<.*?>
< table.height() ) {
<.*?><.*?> } );
8189
 
8190
<.*?>
< table.height() ) {
<.*?><.*?> return cells;
8191
<.*?>
< table.height() ) {
<.*?><.*?> } );
8192
 
8193
 
8194
<.*?>
< table.height() ) {
<.*?><.*?> _api_registerPlural( 'cells().nodes()', 'cell().node()', function () {
8195
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'cell', function ( settings, row, column ) {
8196
<.*?>
< table.height() ) {
<.*?><.*?> return settings.aoData[ row ].anCells[ column ];
8197
<.*?>
< table.height() ) {
<.*?><.*?> } );
8198
<.*?>
< table.height() ) {
<.*?><.*?> } );
8199
 
8200
 
8201
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'cells().data()', function () {
8202
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'cell', function ( settings, row, column ) {
8203
<.*?>
< table.height() ) {
<.*?><.*?> return _fnGetCellData( settings, row, column );
8204
<.*?>
< table.height() ) {
<.*?><.*?> } );
8205
<.*?>
< table.height() ) {
<.*?><.*?> } );
8206
 
8207
 
8208
<.*?>
< table.height() ) {
<.*?><.*?> _api_registerPlural( 'cells().cache()', 'cell().cache()', function ( type ) {
8209
<.*?>
< table.height() ) {
<.*?><.*?> type = type === 'search' ? '_aFilterData' : '_aSortData';
8210
 
8211
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'cell', function ( settings, row, column ) {
8212
<.*?>
< table.height() ) {
<.*?><.*?> return settings.aoData[ row ][ type ][ column ];
8213
<.*?>
< table.height() ) {
<.*?><.*?> } );
8214
<.*?>
< table.height() ) {
<.*?><.*?> } );
8215
 
8216
 
8217
<.*?>
< table.height() ) {
<.*?><.*?> _api_registerPlural( 'cells().indexes()', 'cell().index()', function () {
8218
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'cell', function ( settings, row, column ) {
8219
<.*?>
< table.height() ) {
<.*?><.*?> return {
8220
<.*?>
< table.height() ) {
<.*?><.*?> row: row,
8221
<.*?>
< table.height() ) {
<.*?><.*?> column: column,
8222
<.*?>
< table.height() ) {
<.*?><.*?> columnVisible: _fnColumnIndexToVisible( settings, column )
8223
<.*?>
< table.height() ) {
<.*?><.*?> };
8224
<.*?>
< table.height() ) {
<.*?><.*?> } );
8225
<.*?>
< table.height() ) {
<.*?><.*?> } );
8226
 
8227
 
8228
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( [
8229
<.*?>
< table.height() ) {
<.*?><.*?> 'cells().invalidate()',
8230
<.*?>
< table.height() ) {
<.*?><.*?> 'cell().invalidate()'
8231
<.*?>
< table.height() ) {
<.*?><.*?> ], function ( src ) {
8232
<.*?>
< table.height() ) {
<.*?><.*?> var selector = this.selector;
8233
 
8234
<.*?>
< table.height() ) {
<.*?><.*?> // Use the rows method of the instance to perform the invalidation, rather
8235
<.*?>
< table.height() ) {
<.*?><.*?> // than doing it here. This avoids needing to handle duplicate rows from
8236
<.*?>
< table.height() ) {
<.*?><.*?> // the cells.
8237
<.*?>
< table.height() ) {
<.*?><.*?> this.rows( selector.rows, selector.opts ).invalidate( src );
8238
 
8239
<.*?>
< table.height() ) {
<.*?><.*?> return this;
8240
<.*?>
< table.height() ) {
<.*?><.*?> } );
8241
 
8242
 
8243
 
8244
 
8245
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'cell()', function ( rowSelector, columnSelector, opts ) {
8246
<.*?>
< table.height() ) {
<.*?><.*?> return _selector_first( this.cells( rowSelector, columnSelector, opts ) );
8247
<.*?>
< table.height() ) {
<.*?><.*?> } );
8248
 
8249
 
8250
 
8251
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'cell().data()', function ( data ) {
8252
<.*?>
< table.height() ) {
<.*?><.*?> var ctx = this.context;
8253
<.*?>
< table.height() ) {
<.*?><.*?> var cell = this[0];
8254
 
8255
<.*?>
< table.height() ) {
<.*?><.*?> if ( data === undefined ) {
8256
<.*?>
< table.height() ) {
<.*?><.*?> // Get
8257
<.*?>
< table.height() ) {
<.*?><.*?> return ctx.length && cell.length ?
8258
<.*?>
< table.height() ) {
<.*?><.*?> _fnGetCellData( ctx[0], cell[0].row, cell[0].column ) :
8259
<.*?>
< table.height() ) {
<.*?><.*?> undefined;
8260
<.*?>
< table.height() ) {
<.*?><.*?> }
8261
 
8262
<.*?>
< table.height() ) {
<.*?><.*?> // Set
8263
<.*?>
< table.height() ) {
<.*?><.*?> _fnSetCellData( ctx[0], cell[0].row, cell[0].column, data );
8264
<.*?>
< table.height() ) {
<.*?><.*?> _fnInvalidateRow( ctx[0], cell[0].row, 'data', cell[0].column );
8265
 
8266
<.*?>
< table.height() ) {
<.*?><.*?> return this;
8267
<.*?>
< table.height() ) {
<.*?><.*?> } );
8268
 
8269
 
8270
 
8271
<.*?>
< table.height() ) {
<.*?><.*?> /**
8272
<.*?>
< table.height() ) {
<.*?><.*?> * Get current ordering (sorting) that has been applied to the table.
8273
<.*?>
< table.height() ) {
<.*?><.*?> *
8274
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {array} 2D array containing the sorting information for the first
8275
<.*?>
< table.height() ) {
<.*?><.*?> * table in the current context. Each element in the parent array represents
8276
<.*?>
< table.height() ) {
<.*?><.*?> * a column being sorted upon (i.e. multi-sorting with two columns would have
8277
<.*?>
< table.height() ) {
<.*?><.*?> * 2 inner arrays). The inner arrays may have 2 or 3 elements. The first is
8278
<.*?>
< table.height() ) {
<.*?><.*?> * the column index that the sorting condition applies to, the second is the
8279
<.*?>
< table.height() ) {
<.*?><.*?> * direction of the sort (`desc` or `asc`) and, optionally, the third is the
8280
<.*?>
< table.height() ) {
<.*?><.*?> * index of the sorting order from the `column.sorting` initialisation array.
8281
<.*?>
< table.height() ) {
<.*?><.*?> *//**
8282
<.*?>
< table.height() ) {
<.*?><.*?> * Set the ordering for the table.
8283
<.*?>
< table.height() ) {
<.*?><.*?> *
8284
<.*?>
< table.height() ) {
<.*?><.*?> * @param {integer} order Column index to sort upon.
8285
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string} direction Direction of the sort to be applied (`asc` or `desc`)
8286
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {DataTables.Api} this
8287
<.*?>
< table.height() ) {
<.*?><.*?> *//**
8288
<.*?>
< table.height() ) {
<.*?><.*?> * Set the ordering for the table.
8289
<.*?>
< table.height() ) {
<.*?><.*?> *
8290
<.*?>
< table.height() ) {
<.*?><.*?> * @param {array} order 1D array of sorting information to be applied.
8291
<.*?>
< table.height() ) {
<.*?><.*?> * @param {array} [...] Optional additional sorting conditions
8292
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {DataTables.Api} this
8293
<.*?>
< table.height() ) {
<.*?><.*?> *//**
8294
<.*?>
< table.height() ) {
<.*?><.*?> * Set the ordering for the table.
8295
<.*?>
< table.height() ) {
<.*?><.*?> *
8296
<.*?>
< table.height() ) {
<.*?><.*?> * @param {array} order 2D array of sorting information to be applied.
8297
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {DataTables.Api} this
8298
<.*?>
< table.height() ) {
<.*?><.*?> */
8299
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'order()', function ( order, dir ) {
8300
<.*?>
< table.height() ) {
<.*?><.*?> var ctx = this.context;
8301
 
8302
<.*?>
< table.height() ) {
<.*?><.*?> if ( order === undefined ) {
8303
<.*?>
< table.height() ) {
<.*?><.*?> // get
8304
<.*?>
< table.height() ) {
<.*?><.*?> return ctx.length !== 0 ?
8305
<.*?>
< table.height() ) {
<.*?><.*?> ctx[0].aaSorting :
8306
<.*?>
< table.height() ) {
<.*?><.*?> undefined;
8307
<.*?>
< table.height() ) {
<.*?><.*?> }
8308
 
8309
<.*?>
< table.height() ) {
<.*?><.*?> // set
8310
<.*?>
< table.height() ) {
<.*?><.*?> if ( typeof order === 'number' ) {
8311
<.*?>
< table.height() ) {
<.*?><.*?> // Simple column / direction passed in
8312
<.*?>
< table.height() ) {
<.*?><.*?> order = [ [ order, dir ] ];
8313
<.*?>
< table.height() ) {
<.*?><.*?> }
8314
<.*?>
< table.height() ) {
<.*?><.*?> else if ( ! $.isArray( order[0] ) ) {
8315
<.*?>
< table.height() ) {
<.*?><.*?> // Arguments passed in (list of 1D arrays)
8316
<.*?>
< table.height() ) {
<.*?><.*?> order = Array.prototype.slice.call( arguments );
8317
<.*?>
< table.height() ) {
<.*?><.*?> }
8318
<.*?>
< table.height() ) {
<.*?><.*?> // otherwise a 2D array was passed in
8319
 
8320
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'table', function ( settings ) {
8321
<.*?>
< table.height() ) {
<.*?><.*?> settings.aaSorting = order.slice();
8322
<.*?>
< table.height() ) {
<.*?><.*?> } );
8323
<.*?>
< table.height() ) {
<.*?><.*?> } );
8324
 
8325
 
8326
<.*?>
< table.height() ) {
<.*?><.*?> /**
8327
<.*?>
< table.height() ) {
<.*?><.*?> * Attach a sort listener to an element for a given column
8328
<.*?>
< table.height() ) {
<.*?><.*?> *
8329
<.*?>
< table.height() ) {
<.*?><.*?> * @param {node|jQuery|string} node Identifier for the element(s) to attach the
8330
<.*?>
< table.height() ) {
<.*?><.*?> * listener to. This can take the form of a single DOM node, a jQuery
8331
<.*?>
< table.height() ) {
<.*?><.*?> * collection of nodes or a jQuery selector which will identify the node(s).
8332
<.*?>
< table.height() ) {
<.*?><.*?> * @param {integer} column the column that a click on this node will sort on
8333
<.*?>
< table.height() ) {
<.*?><.*?> * @param {function} [callback] callback function when sort is run
8334
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {DataTables.Api} this
8335
<.*?>
< table.height() ) {
<.*?><.*?> */
8336
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'order.listener()', function ( node, column, callback ) {
8337
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'table', function ( settings ) {
8338
<.*?>
< table.height() ) {
<.*?><.*?> _fnSortAttachListener( settings, node, column, callback );
8339
<.*?>
< table.height() ) {
<.*?><.*?> } );
8340
<.*?>
< table.height() ) {
<.*?><.*?> } );
8341
 
8342
 
8343
<.*?>
< table.height() ) {
<.*?><.*?> // Order by the selected column(s)
8344
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( [
8345
<.*?>
< table.height() ) {
<.*?><.*?> 'columns().order()',
8346
<.*?>
< table.height() ) {
<.*?><.*?> 'column().order()'
8347
<.*?>
< table.height() ) {
<.*?><.*?> ], function ( dir ) {
8348
<.*?>
< table.height() ) {
<.*?><.*?> var that = this;
8349
 
8350
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'table', function ( settings, i ) {
8351
<.*?>
< table.height() ) {
<.*?><.*?> var sort = [];
8352
 
8353
<.*?>
< table.height() ) {
<.*?><.*?> $.each( that[i], function (j, col) {
8354
<.*?>
< table.height() ) {
<.*?><.*?> sort.push( [ col, dir ] );
8355
<.*?>
< table.height() ) {
<.*?><.*?> } );
8356
 
8357
<.*?>
< table.height() ) {
<.*?><.*?> settings.aaSorting = sort;
8358
<.*?>
< table.height() ) {
<.*?><.*?> } );
8359
<.*?>
< table.height() ) {
<.*?><.*?> } );
8360
 
8361
 
8362
 
8363
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'search()', function ( input, regex, smart, caseInsen ) {
8364
<.*?>
< table.height() ) {
<.*?><.*?> var ctx = this.context;
8365
 
8366
<.*?>
< table.height() ) {
<.*?><.*?> if ( input === undefined ) {
8367
<.*?>
< table.height() ) {
<.*?><.*?> // get
8368
<.*?>
< table.height() ) {
<.*?><.*?> return ctx.length !== 0 ?
8369
<.*?>
< table.height() ) {
<.*?><.*?> ctx[0].oPreviousSearch.sSearch :
8370
<.*?>
< table.height() ) {
<.*?><.*?> undefined;
8371
<.*?>
< table.height() ) {
<.*?><.*?> }
8372
 
8373
<.*?>
< table.height() ) {
<.*?><.*?> // set
8374
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'table', function ( settings ) {
8375
<.*?>
< table.height() ) {
<.*?><.*?> if ( ! settings.oFeatures.bFilter ) {
8376
<.*?>
< table.height() ) {
<.*?><.*?> return;
8377
<.*?>
< table.height() ) {
<.*?><.*?> }
8378
 
8379
<.*?>
< table.height() ) {
<.*?><.*?> _fnFilterComplete( settings, $.extend( {}, settings.oPreviousSearch, {
8380
<.*?>
< table.height() ) {
<.*?><.*?> "sSearch": input+"",
8381
<.*?>
< table.height() ) {
<.*?><.*?> "bRegex": regex === null ? false : regex,
8382
<.*?>
< table.height() ) {
<.*?><.*?> "bSmart": smart === null ? true : smart,
8383
<.*?>
< table.height() ) {
<.*?><.*?> "bCaseInsensitive": caseInsen === null ? true : caseInsen
8384
<.*?>
< table.height() ) {
<.*?><.*?> } ), 1 );
8385
<.*?>
< table.height() ) {
<.*?><.*?> } );
8386
<.*?>
< table.height() ) {
<.*?><.*?> } );
8387
 
8388
 
8389
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( [
8390
<.*?>
< table.height() ) {
<.*?><.*?> 'columns().search()',
8391
<.*?>
< table.height() ) {
<.*?><.*?> 'column().search()'
8392
<.*?>
< table.height() ) {
<.*?><.*?> ], function ( input, regex, smart, caseInsen ) {
8393
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'column', function ( settings, column ) {
8394
<.*?>
< table.height() ) {
<.*?><.*?> var preSearch = settings.aoPreSearchCols;
8395
 
8396
<.*?>
< table.height() ) {
<.*?><.*?> if ( input === undefined ) {
8397
<.*?>
< table.height() ) {
<.*?><.*?> // get
8398
<.*?>
< table.height() ) {
<.*?><.*?> return preSearch[ column ].sSearch;
8399
<.*?>
< table.height() ) {
<.*?><.*?> }
8400
 
8401
<.*?>
< table.height() ) {
<.*?><.*?> // set
8402
<.*?>
< table.height() ) {
<.*?><.*?> if ( ! settings.oFeatures.bFilter ) {
8403
<.*?>
< table.height() ) {
<.*?><.*?> return;
8404
<.*?>
< table.height() ) {
<.*?><.*?> }
8405
 
8406
<.*?>
< table.height() ) {
<.*?><.*?> $.extend( preSearch[ column ], {
8407
<.*?>
< table.height() ) {
<.*?><.*?> "sSearch": input+"",
8408
<.*?>
< table.height() ) {
<.*?><.*?> "bRegex": regex === null ? false : regex,
8409
<.*?>
< table.height() ) {
<.*?><.*?> "bSmart": smart === null ? true : smart,
8410
<.*?>
< table.height() ) {
<.*?><.*?> "bCaseInsensitive": caseInsen === null ? true : caseInsen
8411
<.*?>
< table.height() ) {
<.*?><.*?> } );
8412
 
8413
<.*?>
< table.height() ) {
<.*?><.*?> _fnFilterComplete( settings, settings.oPreviousSearch, 1 );
8414
<.*?>
< table.height() ) {
<.*?><.*?> } );
8415
<.*?>
< table.height() ) {
<.*?><.*?> } );
8416
 
8417
 
8418
 
8419
<.*?>
< table.height() ) {
<.*?><.*?> /**
8420
<.*?>
< table.height() ) {
<.*?><.*?> * Provide a common method for plug-ins to check the version of DataTables being
8421
<.*?>
< table.height() ) {
<.*?><.*?> * used, in order to ensure compatibility.
8422
<.*?>
< table.height() ) {
<.*?><.*?> *
8423
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string} version Version string to check for, in the format "X.Y.Z".
8424
<.*?>
< table.height() ) {
<.*?><.*?> * Note that the formats "X" and "X.Y" are also acceptable.
8425
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {boolean} true if this version of DataTables is greater or equal to
8426
<.*?>
< table.height() ) {
<.*?><.*?> * the required version, or false if this version of DataTales is not
8427
<.*?>
< table.height() ) {
<.*?><.*?> * suitable
8428
<.*?>
< table.height() ) {
<.*?><.*?> * @static
8429
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API-Static
8430
<.*?>
< table.height() ) {
<.*?><.*?> *
8431
<.*?>
< table.height() ) {
<.*?><.*?> * @example
8432
<.*?>
< table.height() ) {
<.*?><.*?> * alert( $.fn.dataTable.versionCheck( '1.9.0' ) );
8433
<.*?>
< table.height() ) {
<.*?><.*?> */
8434
<.*?>
< table.height() ) {
<.*?><.*?> DataTable.versionCheck = DataTable.fnVersionCheck = function( version )
8435
<.*?>
< table.height() ) {
<.*?><.*?> {
8436
<.*?>
< table.height() ) {
<.*?><.*?> var aThis = DataTable.version.split('.');
8437
<.*?>
< table.height() ) {
<.*?><.*?> var aThat = version.split('.');
8438
<.*?>
< table.height() ) {
<.*?><.*?> var iThis, iThat;
8439
 
8440
<.*?>
< table.height() ) {
<.*?><.*?> for ( var i=0, iLen=aThat.length ; i<iLen ; i++ ) {
8441
<.*?>
< table.height() ) {
<.*?><.*?> iThis = parseInt( aThis[i], 10 ) || 0;
8442
<.*?>
< table.height() ) {
<.*?><.*?> iThat = parseInt( aThat[i], 10 ) || 0;
8443
 
8444
<.*?>
< table.height() ) {
<.*?><.*?> // Parts are the same, keep comparing
8445
<.*?>
< table.height() ) {
<.*?><.*?> if (iThis === iThat) {
8446
<.*?>
< table.height() ) {
<.*?><.*?> continue;
8447
<.*?>
< table.height() ) {
<.*?><.*?> }
8448
 
8449
<.*?>
< table.height() ) {
<.*?><.*?> // Parts are different, return immediately
8450
<.*?>
< table.height() ) {
<.*?><.*?> return iThis > iThat;
8451
<.*?>
< table.height() ) {
<.*?><.*?> }
8452
 
8453
<.*?>
< table.height() ) {
<.*?><.*?> return true;
8454
<.*?>
< table.height() ) {
<.*?><.*?> };
8455
 
8456
 
8457
<.*?>
< table.height() ) {
<.*?><.*?> /**
8458
<.*?>
< table.height() ) {
<.*?><.*?> * Check if a `<table>` node is a DataTable table already or not.
8459
<.*?>
< table.height() ) {
<.*?><.*?> *
8460
<.*?>
< table.height() ) {
<.*?><.*?> * @param {node|jquery|string} table Table node, jQuery object or jQuery
8461
<.*?>
< table.height() ) {
<.*?><.*?> * selector for the table to test. Note that if more than more than one
8462
<.*?>
< table.height() ) {
<.*?><.*?> * table is passed on, only the first will be checked
8463
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {boolean} true the table given is a DataTable, or false otherwise
8464
<.*?>
< table.height() ) {
<.*?><.*?> * @static
8465
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API-Static
8466
<.*?>
< table.height() ) {
<.*?><.*?> *
8467
<.*?>
< table.height() ) {
<.*?><.*?> * @example
8468
<.*?>
< table.height() ) {
<.*?><.*?> * if ( ! $.fn.DataTable.isDataTable( '#example' ) ) {
8469
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable();
8470
<.*?>
< table.height() ) {
<.*?><.*?> * }
8471
<.*?>
< table.height() ) {
<.*?><.*?> */
8472
<.*?>
< table.height() ) {
<.*?><.*?> DataTable.isDataTable = DataTable.fnIsDataTable = function ( table )
8473
<.*?>
< table.height() ) {
<.*?><.*?> {
8474
<.*?>
< table.height() ) {
<.*?><.*?> var t = $(table).get(0);
8475
<.*?>
< table.height() ) {
<.*?><.*?> var is = false;
8476
 
8477
<.*?>
< table.height() ) {
<.*?><.*?> $.each( DataTable.settings, function (i, o) {
8478
<.*?>
< table.height() ) {
<.*?><.*?> if ( o.nTable === t || o.nScrollHead === t || o.nScrollFoot === t ) {
8479
<.*?>
< table.height() ) {
<.*?><.*?> is = true;
8480
<.*?>
< table.height() ) {
<.*?><.*?> }
8481
<.*?>
< table.height() ) {
<.*?><.*?> } );
8482
 
8483
<.*?>
< table.height() ) {
<.*?><.*?> return is;
8484
<.*?>
< table.height() ) {
<.*?><.*?> };
8485
 
8486
 
8487
<.*?>
< table.height() ) {
<.*?><.*?> /**
8488
<.*?>
< table.height() ) {
<.*?><.*?> * Get all DataTable tables that have been initialised - optionally you can
8489
<.*?>
< table.height() ) {
<.*?><.*?> * select to get only currently visible tables.
8490
<.*?>
< table.height() ) {
<.*?><.*?> *
8491
<.*?>
< table.height() ) {
<.*?><.*?> * @param {boolean} [visible=false] Flag to indicate if you want all (default)
8492
<.*?>
< table.height() ) {
<.*?><.*?> * or visible tables only.
8493
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {array} Array of `table` nodes (not DataTable instances) which are
8494
<.*?>
< table.height() ) {
<.*?><.*?> * DataTables
8495
<.*?>
< table.height() ) {
<.*?><.*?> * @static
8496
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt API-Static
8497
<.*?>
< table.height() ) {
<.*?><.*?> *
8498
<.*?>
< table.height() ) {
<.*?><.*?> * @example
8499
<.*?>
< table.height() ) {
<.*?><.*?> * $.each( $.fn.dataTable.tables(true), function () {
8500
<.*?>
< table.height() ) {
<.*?><.*?> * $(table).DataTable().columns.adjust();
8501
<.*?>
< table.height() ) {
<.*?><.*?> * } );
8502
<.*?>
< table.height() ) {
<.*?><.*?> */
8503
<.*?>
< table.height() ) {
<.*?><.*?> DataTable.tables = DataTable.fnTables = function ( visible )
8504
<.*?>
< table.height() ) {
<.*?><.*?> {
8505
<.*?>
< table.height() ) {
<.*?><.*?> return jQuery.map( DataTable.settings, function (o) {
8506
<.*?>
< table.height() ) {
<.*?><.*?> if ( !visible || (visible && $(o.nTable).is(':visible')) ) {
8507
<.*?>
< table.height() ) {
<.*?><.*?> return o.nTable;
8508
<.*?>
< table.height() ) {
<.*?><.*?> }
8509
<.*?>
< table.height() ) {
<.*?><.*?> } );
8510
<.*?>
< table.height() ) {
<.*?><.*?> };
8511
 
8512
 
8513
<.*?>
< table.height() ) {
<.*?><.*?> /**
8514
<.*?>
< table.height() ) {
<.*?><.*?> * Convert from camel case parameters to Hungarian notation. This is made public
8515
<.*?>
< table.height() ) {
<.*?><.*?> * for the extensions to provide the same ability as DataTables core to accept
8516
<.*?>
< table.height() ) {
<.*?><.*?> * either the 1.9 style Hungarian notation, or the 1.10+ style camelCase
8517
<.*?>
< table.height() ) {
<.*?><.*?> * parameters.
8518
<.*?>
< table.height() ) {
<.*?><.*?> *
8519
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} src The model object which holds all parameters that can be
8520
<.*?>
< table.height() ) {
<.*?><.*?> * mapped.
8521
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} user The object to convert from camel case to Hungarian.
8522
<.*?>
< table.height() ) {
<.*?><.*?> * @param {boolean} force When set to `true`, properties which already have a
8523
<.*?>
< table.height() ) {
<.*?><.*?> * Hungarian value in the `user` object will be overwritten. Otherwise they
8524
<.*?>
< table.height() ) {
<.*?><.*?> * won't be.
8525
<.*?>
< table.height() ) {
<.*?><.*?> */
8526
<.*?>
< table.height() ) {
<.*?><.*?> DataTable.camelToHungarian = _fnCamelToHungarian;
8527
 
8528
 
8529
 
8530
<.*?>
< table.height() ) {
<.*?><.*?> /**
8531
<.*?>
< table.height() ) {
<.*?><.*?> *
8532
<.*?>
< table.height() ) {
<.*?><.*?> */
8533
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( '$()', function ( selector, opts ) {
8534
<.*?>
< table.height() ) {
<.*?><.*?> var
8535
<.*?>
< table.height() ) {
<.*?><.*?> rows = this.rows( opts ).nodes(), // Get all rows
8536
<.*?>
< table.height() ) {
<.*?><.*?> jqRows = $(rows);
8537
 
8538
<.*?>
< table.height() ) {
<.*?><.*?> return $( [].concat(
8539
<.*?>
< table.height() ) {
<.*?><.*?> jqRows.filter( selector ).toArray(),
8540
<.*?>
< table.height() ) {
<.*?><.*?> jqRows.find( selector ).toArray()
8541
<.*?>
< table.height() ) {
<.*?><.*?> ) );
8542
<.*?>
< table.height() ) {
<.*?><.*?> } );
8543
 
8544
 
8545
<.*?>
< table.height() ) {
<.*?><.*?> // jQuery functions to operate on the tables
8546
<.*?>
< table.height() ) {
<.*?><.*?> $.each( [ 'on', 'one', 'off' ], function (i, key) {
8547
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( key+'()', function ( /* event, handler */ ) {
8548
<.*?>
< table.height() ) {
<.*?><.*?> var args = Array.prototype.slice.call(arguments);
8549
 
8550
<.*?>
< table.height() ) {
<.*?><.*?> // Add the `dt` namespace automatically if it isn't already present
8551
<.*?>
< table.height() ) {
<.*?><.*?> if ( args[0].indexOf( '.dt' ) === -1 ) {
8552
<.*?>
< table.height() ) {
<.*?><.*?> args[0] += '.dt';
8553
<.*?>
< table.height() ) {
<.*?><.*?> }
8554
 
8555
<.*?>
< table.height() ) {
<.*?><.*?> var inst = $( this.tables().nodes() );
8556
<.*?>
< table.height() ) {
<.*?><.*?> inst[key].apply( inst, args );
8557
<.*?>
< table.height() ) {
<.*?><.*?> return this;
8558
<.*?>
< table.height() ) {
<.*?><.*?> } );
8559
<.*?>
< table.height() ) {
<.*?><.*?> } );
8560
 
8561
 
8562
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'clear()', function () {
8563
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'table', function ( settings ) {
8564
<.*?>
< table.height() ) {
<.*?><.*?> _fnClearTable( settings );
8565
<.*?>
< table.height() ) {
<.*?><.*?> } );
8566
<.*?>
< table.height() ) {
<.*?><.*?> } );
8567
 
8568
 
8569
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'settings()', function () {
8570
<.*?>
< table.height() ) {
<.*?><.*?> return new _Api( this.context, this.context );
8571
<.*?>
< table.height() ) {
<.*?><.*?> } );
8572
 
8573
 
8574
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'data()', function () {
8575
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'table', function ( settings ) {
8576
<.*?>
< table.height() ) {
<.*?><.*?> return _pluck( settings.aoData, '_aData' );
8577
<.*?>
< table.height() ) {
<.*?><.*?> } ).flatten();
8578
<.*?>
< table.height() ) {
<.*?><.*?> } );
8579
 
8580
 
8581
<.*?>
< table.height() ) {
<.*?><.*?> _api_register( 'destroy()', function ( remove ) {
8582
<.*?>
< table.height() ) {
<.*?><.*?> remove = remove || false;
8583
 
8584
<.*?>
< table.height() ) {
<.*?><.*?> return this.iterator( 'table', function ( settings ) {
8585
<.*?>
< table.height() ) {
<.*?><.*?> var orig = settings.nTableWrapper.parentNode;
8586
<.*?>
< table.height() ) {
<.*?><.*?> var classes = settings.oClasses;
8587
<.*?>
< table.height() ) {
<.*?><.*?> var table = settings.nTable;
8588
<.*?>
< table.height() ) {
<.*?><.*?> var tbody = settings.nTBody;
8589
<.*?>
< table.height() ) {
<.*?><.*?> var thead = settings.nTHead;
8590
<.*?>
< table.height() ) {
<.*?><.*?> var tfoot = settings.nTFoot;
8591
<.*?>
< table.height() ) {
<.*?><.*?> var jqTable = $(table);
8592
<.*?>
< table.height() ) {
<.*?><.*?> var jqTbody = $(tbody);
8593
<.*?>
< table.height() ) {
<.*?><.*?> var jqWrapper = $(settings.nTableWrapper);
8594
<.*?>
< table.height() ) {
<.*?><.*?> var rows = $.map( settings.aoData, function (r) { return r.nTr; } );
8595
<.*?>
< table.height() ) {
<.*?><.*?> var i, ien;
8596
 
8597
<.*?>
< table.height() ) {
<.*?><.*?> // Flag to note that the table is currently being destroyed - no action
8598
<.*?>
< table.height() ) {
<.*?><.*?> // should be taken
8599
<.*?>
< table.height() ) {
<.*?><.*?> settings.bDestroying = true;
8600
 
8601
<.*?>
< table.height() ) {
<.*?><.*?> // Fire off the destroy callbacks for plug-ins etc
8602
<.*?>
< table.height() ) {
<.*?><.*?> _fnCallbackFire( settings, "aoDestroyCallback", "destroy", [settings] );
8603
 
8604
<.*?>
< table.height() ) {
<.*?><.*?> // If not being removed from the document, make all columns visible
8605
<.*?>
< table.height() ) {
<.*?><.*?> if ( ! remove ) {
8606
<.*?>
< table.height() ) {
<.*?><.*?> new _Api( settings ).columns().visible( true );
8607
<.*?>
< table.height() ) {
<.*?><.*?> }
8608
 
8609
<.*?>
< table.height() ) {
<.*?><.*?> // Blitz all `DT` namespaced events (these are internal events, the
8610
<.*?>
< table.height() ) {
<.*?><.*?> // lowercase, `dt` events are user subscribed and they are responsible
8611
<.*?>
< table.height() ) {
<.*?><.*?> // for removing them
8612
<.*?>
< table.height() ) {
<.*?><.*?> jqWrapper.unbind('.DT').find(':not(tbody *)').unbind('.DT');
8613
<.*?>
< table.height() ) {
<.*?><.*?> $(window).unbind('.DT-'+settings.sInstance);
8614
 
8615
<.*?>
< table.height() ) {
<.*?><.*?> // When scrolling we had to break the table up - restore it
8616
<.*?>
< table.height() ) {
<.*?><.*?> if ( table != thead.parentNode ) {
8617
<.*?>
< table.height() ) {
<.*?><.*?> jqTable.children('thead').detach();
8618
<.*?>
< table.height() ) {
<.*?><.*?> jqTable.append( thead );
8619
<.*?>
< table.height() ) {
<.*?><.*?> }
8620
 
8621
<.*?>
< table.height() ) {
<.*?><.*?> if ( tfoot && table != tfoot.parentNode ) {
8622
<.*?>
< table.height() ) {
<.*?><.*?> jqTable.children('tfoot').detach();
8623
<.*?>
< table.height() ) {
<.*?><.*?> jqTable.append( tfoot );
8624
<.*?>
< table.height() ) {
<.*?><.*?> }
8625
 
8626
<.*?>
< table.height() ) {
<.*?><.*?> // Remove the DataTables generated nodes, events and classes
8627
<.*?>
< table.height() ) {
<.*?><.*?> jqTable.detach();
8628
<.*?>
< table.height() ) {
<.*?><.*?> jqWrapper.detach();
8629
 
8630
<.*?>
< table.height() ) {
<.*?><.*?> settings.aaSorting = [];
8631
<.*?>
< table.height() ) {
<.*?><.*?> settings.aaSortingFixed = [];
8632
<.*?>
< table.height() ) {
<.*?><.*?> _fnSortingClasses( settings );
8633
 
8634
<.*?>
< table.height() ) {
<.*?><.*?> $( rows ).removeClass( settings.asStripeClasses.join(' ') );
8635
 
8636
<.*?>
< table.height() ) {
<.*?><.*?> $('th, td', thead).removeClass( classes.sSortable+' '+
8637
<.*?>
< table.height() ) {
<.*?><.*?> classes.sSortableAsc+' '+classes.sSortableDesc+' '+classes.sSortableNone
8638
<.*?>
< table.height() ) {
<.*?><.*?> );
8639
 
8640
<.*?>
< table.height() ) {
<.*?><.*?> if ( settings.bJUI ) {
8641
<.*?>
< table.height() ) {
<.*?><.*?> $('th span.'+classes.sSortIcon+ ', td span.'+classes.sSortIcon, thead).detach();
8642
<.*?>
< table.height() ) {
<.*?><.*?> $('th, td', thead).each( function () {
8643
<.*?>
< table.height() ) {
<.*?><.*?> var wrapper = $('div.'+classes.sSortJUIWrapper, this);
8644
<.*?>
< table.height() ) {
<.*?><.*?> $(this).append( wrapper.contents() );
8645
<.*?>
< table.height() ) {
<.*?><.*?> wrapper.detach();
8646
<.*?>
< table.height() ) {
<.*?><.*?> } );
8647
<.*?>
< table.height() ) {
<.*?><.*?> }
8648
 
8649
<.*?>
< table.height() ) {
<.*?><.*?> if ( ! remove && orig ) {
8650
<.*?>
< table.height() ) {
<.*?><.*?> // insertBefore acts like appendChild if !arg[1]
8651
<.*?>
< table.height() ) {
<.*?><.*?> orig.insertBefore( table, settings.nTableReinsertBefore );
8652
<.*?>
< table.height() ) {
<.*?><.*?> }
8653
 
8654
<.*?>
< table.height() ) {
<.*?><.*?> // Add the TR elements back into the table in their original order
8655
<.*?>
< table.height() ) {
<.*?><.*?> jqTbody.children().detach();
8656
<.*?>
< table.height() ) {
<.*?><.*?> jqTbody.append( rows );
8657
 
8658
<.*?>
< table.height() ) {
<.*?><.*?> // Restore the width of the original table - was read from the style property,
8659
<.*?>
< table.height() ) {
<.*?><.*?> // so we can restore directly to that
8660
<.*?>
< table.height() ) {
<.*?><.*?> jqTable
8661
<.*?>
< table.height() ) {
<.*?><.*?> .css( 'width', settings.sDestroyWidth )
8662
<.*?>
< table.height() ) {
<.*?><.*?> .removeClass( classes.sTable );
8663
 
8664
<.*?>
< table.height() ) {
<.*?><.*?> // If the were originally stripe classes - then we add them back here.
8665
<.*?>
< table.height() ) {
<.*?><.*?> // Note this is not fool proof (for example if not all rows had stripe
8666
<.*?>
< table.height() ) {
<.*?><.*?> // classes - but it's a good effort without getting carried away
8667
<.*?>
< table.height() ) {
<.*?><.*?> ien = settings.asDestroyStripes.length;
8668
 
8669
<.*?>
< table.height() ) {
<.*?><.*?> if ( ien ) {
8670
<.*?>
< table.height() ) {
<.*?><.*?> jqTbody.children().each( function (i) {
8671
<.*?>
< table.height() ) {
<.*?><.*?> $(this).addClass( settings.asDestroyStripes[i % ien] );
8672
<.*?>
< table.height() ) {
<.*?><.*?> } );
8673
<.*?>
< table.height() ) {
<.*?><.*?> }
8674
 
8675
<.*?>
< table.height() ) {
<.*?><.*?> /* Remove the settings object from the settings array */
8676
<.*?>
< table.height() ) {
<.*?><.*?> var idx = $.inArray( settings, DataTable.settings );
8677
<.*?>
< table.height() ) {
<.*?><.*?> if ( idx !== -1 ) {
8678
<.*?>
< table.height() ) {
<.*?><.*?> DataTable.settings.splice( idx, 1 );
8679
<.*?>
< table.height() ) {
<.*?><.*?> }
8680
<.*?>
< table.height() ) {
<.*?><.*?> } );
8681
<.*?>
< table.height() ) {
<.*?><.*?> } );
8682
 
8683
 
8684
<.*?>
< table.height() ) {
<.*?><.*?> /**
8685
<.*?>
< table.height() ) {
<.*?><.*?> * Version string for plug-ins to check compatibility. Allowed format is
8686
<.*?>
< table.height() ) {
<.*?><.*?> * `a.b.c-d` where: a:int, b:int, c:int, d:string(dev|beta|alpha). `d` is used
8687
<.*?>
< table.height() ) {
<.*?><.*?> * only for non-release builds. See http://semver.org/ for more information.
8688
<.*?>
< table.height() ) {
<.*?><.*?> * @member
8689
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
8690
<.*?>
< table.height() ) {
<.*?><.*?> * @default Version number
8691
<.*?>
< table.height() ) {
<.*?><.*?> */
8692
<.*?>
< table.height() ) {
<.*?><.*?> DataTable.version = "1.10.0";
8693
 
8694
<.*?>
< table.height() ) {
<.*?><.*?> /**
8695
<.*?>
< table.height() ) {
<.*?><.*?> * Private data store, containing all of the settings objects that are
8696
<.*?>
< table.height() ) {
<.*?><.*?> * created for the tables on a given page.
8697
<.*?>
< table.height() ) {
<.*?><.*?> *
8698
<.*?>
< table.height() ) {
<.*?><.*?> * Note that the `DataTable.settings` object is aliased to
8699
<.*?>
< table.height() ) {
<.*?><.*?> * `jQuery.fn.dataTableExt` through which it may be accessed and
8700
<.*?>
< table.height() ) {
<.*?><.*?> * manipulated, or `jQuery.fn.dataTable.settings`.
8701
<.*?>
< table.height() ) {
<.*?><.*?> * @member
8702
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
8703
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
8704
<.*?>
< table.height() ) {
<.*?><.*?> * @private
8705
<.*?>
< table.height() ) {
<.*?><.*?> */
8706
<.*?>
< table.height() ) {
<.*?><.*?> DataTable.settings = [];
8707
 
8708
<.*?>
< table.height() ) {
<.*?><.*?> /**
8709
<.*?>
< table.height() ) {
<.*?><.*?> * Object models container, for the various models that DataTables has
8710
<.*?>
< table.height() ) {
<.*?><.*?> * available to it. These models define the objects that are used to hold
8711
<.*?>
< table.height() ) {
<.*?><.*?> * the active state and configuration of the table.
8712
<.*?>
< table.height() ) {
<.*?><.*?> * @namespace
8713
<.*?>
< table.height() ) {
<.*?><.*?> */
8714
<.*?>
< table.height() ) {
<.*?><.*?> DataTable.models = {};
8715
 
8716
 
8717
 
8718
<.*?>
< table.height() ) {
<.*?><.*?> /**
8719
<.*?>
< table.height() ) {
<.*?><.*?> * Template object for the way in which DataTables holds information about
8720
<.*?>
< table.height() ) {
<.*?><.*?> * search information for the global filter and individual column filters.
8721
<.*?>
< table.height() ) {
<.*?><.*?> * @namespace
8722
<.*?>
< table.height() ) {
<.*?><.*?> */
8723
<.*?>
< table.height() ) {
<.*?><.*?> DataTable.models.oSearch = {
8724
<.*?>
< table.height() ) {
<.*?><.*?> /**
8725
<.*?>
< table.height() ) {
<.*?><.*?> * Flag to indicate if the filtering should be case insensitive or not
8726
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
8727
<.*?>
< table.height() ) {
<.*?><.*?> * @default true
8728
<.*?>
< table.height() ) {
<.*?><.*?> */
8729
<.*?>
< table.height() ) {
<.*?><.*?> "bCaseInsensitive": true,
8730
 
8731
<.*?>
< table.height() ) {
<.*?><.*?> /**
8732
<.*?>
< table.height() ) {
<.*?><.*?> * Applied search term
8733
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
8734
<.*?>
< table.height() ) {
<.*?><.*?> * @default <i>Empty string</i>
8735
<.*?>
< table.height() ) {
<.*?><.*?> */
8736
<.*?>
< table.height() ) {
<.*?><.*?> "sSearch": "",
8737
 
8738
<.*?>
< table.height() ) {
<.*?><.*?> /**
8739
<.*?>
< table.height() ) {
<.*?><.*?> * Flag to indicate if the search term should be interpreted as a
8740
<.*?>
< table.height() ) {
<.*?><.*?> * regular expression (true) or not (false) and therefore and special
8741
<.*?>
< table.height() ) {
<.*?><.*?> * regex characters escaped.
8742
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
8743
<.*?>
< table.height() ) {
<.*?><.*?> * @default false
8744
<.*?>
< table.height() ) {
<.*?><.*?> */
8745
<.*?>
< table.height() ) {
<.*?><.*?> "bRegex": false,
8746
 
8747
<.*?>
< table.height() ) {
<.*?><.*?> /**
8748
<.*?>
< table.height() ) {
<.*?><.*?> * Flag to indicate if DataTables is to use its smart filtering or not.
8749
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
8750
<.*?>
< table.height() ) {
<.*?><.*?> * @default true
8751
<.*?>
< table.height() ) {
<.*?><.*?> */
8752
<.*?>
< table.height() ) {
<.*?><.*?> "bSmart": true
8753
<.*?>
< table.height() ) {
<.*?><.*?> };
8754
 
8755
 
8756
 
8757
 
8758
<.*?>
< table.height() ) {
<.*?><.*?> /**
8759
<.*?>
< table.height() ) {
<.*?><.*?> * Template object for the way in which DataTables holds information about
8760
<.*?>
< table.height() ) {
<.*?><.*?> * each individual row. This is the object format used for the settings
8761
<.*?>
< table.height() ) {
<.*?><.*?> * aoData array.
8762
<.*?>
< table.height() ) {
<.*?><.*?> * @namespace
8763
<.*?>
< table.height() ) {
<.*?><.*?> */
8764
<.*?>
< table.height() ) {
<.*?><.*?> DataTable.models.oRow = {
8765
<.*?>
< table.height() ) {
<.*?><.*?> /**
8766
<.*?>
< table.height() ) {
<.*?><.*?> * TR element for the row
8767
<.*?>
< table.height() ) {
<.*?><.*?> * @type node
8768
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
8769
<.*?>
< table.height() ) {
<.*?><.*?> */
8770
<.*?>
< table.height() ) {
<.*?><.*?> "nTr": null,
8771
 
8772
<.*?>
< table.height() ) {
<.*?><.*?> /**
8773
<.*?>
< table.height() ) {
<.*?><.*?> * Array of TD elements for each row. This is null until the row has been
8774
<.*?>
< table.height() ) {
<.*?><.*?> * created.
8775
<.*?>
< table.height() ) {
<.*?><.*?> * @type array nodes
8776
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
8777
<.*?>
< table.height() ) {
<.*?><.*?> */
8778
<.*?>
< table.height() ) {
<.*?><.*?> "anCells": null,
8779
 
8780
<.*?>
< table.height() ) {
<.*?><.*?> /**
8781
<.*?>
< table.height() ) {
<.*?><.*?> * Data object from the original data source for the row. This is either
8782
<.*?>
< table.height() ) {
<.*?><.*?> * an array if using the traditional form of DataTables, or an object if
8783
<.*?>
< table.height() ) {
<.*?><.*?> * using mData options. The exact type will depend on the passed in
8784
<.*?>
< table.height() ) {
<.*?><.*?> * data from the data source, or will be an array if using DOM a data
8785
<.*?>
< table.height() ) {
<.*?><.*?> * source.
8786
<.*?>
< table.height() ) {
<.*?><.*?> * @type array|object
8787
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
8788
<.*?>
< table.height() ) {
<.*?><.*?> */
8789
<.*?>
< table.height() ) {
<.*?><.*?> "_aData": [],
8790
 
8791
<.*?>
< table.height() ) {
<.*?><.*?> /**
8792
<.*?>
< table.height() ) {
<.*?><.*?> * Sorting data cache - this array is ostensibly the same length as the
8793
<.*?>
< table.height() ) {
<.*?><.*?> * number of columns (although each index is generated only as it is
8794
<.*?>
< table.height() ) {
<.*?><.*?> * needed), and holds the data that is used for sorting each column in the
8795
<.*?>
< table.height() ) {
<.*?><.*?> * row. We do this cache generation at the start of the sort in order that
8796
<.*?>
< table.height() ) {
<.*?><.*?> * the formatting of the sort data need be done only once for each cell
8797
<.*?>
< table.height() ) {
<.*?><.*?> * per sort. This array should not be read from or written to by anything
8798
<.*?>
< table.height() ) {
<.*?><.*?> * other than the master sorting methods.
8799
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
8800
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
8801
<.*?>
< table.height() ) {
<.*?><.*?> * @private
8802
<.*?>
< table.height() ) {
<.*?><.*?> */
8803
<.*?>
< table.height() ) {
<.*?><.*?> "_aSortData": null,
8804
 
8805
<.*?>
< table.height() ) {
<.*?><.*?> /**
8806
<.*?>
< table.height() ) {
<.*?><.*?> * Per cell filtering data cache. As per the sort data cache, used to
8807
<.*?>
< table.height() ) {
<.*?><.*?> * increase the performance of the filtering in DataTables
8808
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
8809
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
8810
<.*?>
< table.height() ) {
<.*?><.*?> * @private
8811
<.*?>
< table.height() ) {
<.*?><.*?> */
8812
<.*?>
< table.height() ) {
<.*?><.*?> "_aFilterData": null,
8813
 
8814
<.*?>
< table.height() ) {
<.*?><.*?> /**
8815
<.*?>
< table.height() ) {
<.*?><.*?> * Filtering data cache. This is the same as the cell filtering cache, but
8816
<.*?>
< table.height() ) {
<.*?><.*?> * in this case a string rather than an array. This is easily computed with
8817
<.*?>
< table.height() ) {
<.*?><.*?> * a join on `_aFilterData`, but is provided as a cache so the join isn't
8818
<.*?>
< table.height() ) {
<.*?><.*?> * needed on every search (memory traded for performance)
8819
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
8820
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
8821
<.*?>
< table.height() ) {
<.*?><.*?> * @private
8822
<.*?>
< table.height() ) {
<.*?><.*?> */
8823
<.*?>
< table.height() ) {
<.*?><.*?> "_sFilterRow": null,
8824
 
8825
<.*?>
< table.height() ) {
<.*?><.*?> /**
8826
<.*?>
< table.height() ) {
<.*?><.*?> * Cache of the class name that DataTables has applied to the row, so we
8827
<.*?>
< table.height() ) {
<.*?><.*?> * can quickly look at this variable rather than needing to do a DOM check
8828
<.*?>
< table.height() ) {
<.*?><.*?> * on className for the nTr property.
8829
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
8830
<.*?>
< table.height() ) {
<.*?><.*?> * @default <i>Empty string</i>
8831
<.*?>
< table.height() ) {
<.*?><.*?> * @private
8832
<.*?>
< table.height() ) {
<.*?><.*?> */
8833
<.*?>
< table.height() ) {
<.*?><.*?> "_sRowStripe": "",
8834
 
8835
<.*?>
< table.height() ) {
<.*?><.*?> /**
8836
<.*?>
< table.height() ) {
<.*?><.*?> * Denote if the original data source was from the DOM, or the data source
8837
<.*?>
< table.height() ) {
<.*?><.*?> * object. This is used for invalidating data, so DataTables can
8838
<.*?>
< table.height() ) {
<.*?><.*?> * automatically read data from the original source, unless uninstructed
8839
<.*?>
< table.height() ) {
<.*?><.*?> * otherwise.
8840
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
8841
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
8842
<.*?>
< table.height() ) {
<.*?><.*?> * @private
8843
<.*?>
< table.height() ) {
<.*?><.*?> */
8844
<.*?>
< table.height() ) {
<.*?><.*?> "src": null
8845
<.*?>
< table.height() ) {
<.*?><.*?> };
8846
 
8847
 
8848
<.*?>
< table.height() ) {
<.*?><.*?> /**
8849
<.*?>
< table.height() ) {
<.*?><.*?> * Template object for the column information object in DataTables. This object
8850
<.*?>
< table.height() ) {
<.*?><.*?> * is held in the settings aoColumns array and contains all the information that
8851
<.*?>
< table.height() ) {
<.*?><.*?> * DataTables needs about each individual column.
8852
<.*?>
< table.height() ) {
<.*?><.*?> *
8853
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this object is related to {@link DataTable.defaults.column}
8854
<.*?>
< table.height() ) {
<.*?><.*?> * but this one is the internal data store for DataTables's cache of columns.
8855
<.*?>
< table.height() ) {
<.*?><.*?> * It should NOT be manipulated outside of DataTables. Any configuration should
8856
<.*?>
< table.height() ) {
<.*?><.*?> * be done through the initialisation options.
8857
<.*?>
< table.height() ) {
<.*?><.*?> * @namespace
8858
<.*?>
< table.height() ) {
<.*?><.*?> */
8859
<.*?>
< table.height() ) {
<.*?><.*?> DataTable.models.oColumn = {
8860
<.*?>
< table.height() ) {
<.*?><.*?> /**
8861
<.*?>
< table.height() ) {
<.*?><.*?> * Column index. This could be worked out on-the-fly with $.inArray, but it
8862
<.*?>
< table.height() ) {
<.*?><.*?> * is faster to just hold it as a variable
8863
<.*?>
< table.height() ) {
<.*?><.*?> * @type integer
8864
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
8865
<.*?>
< table.height() ) {
<.*?><.*?> */
8866
<.*?>
< table.height() ) {
<.*?><.*?> "idx": null,
8867
 
8868
<.*?>
< table.height() ) {
<.*?><.*?> /**
8869
<.*?>
< table.height() ) {
<.*?><.*?> * A list of the columns that sorting should occur on when this column
8870
<.*?>
< table.height() ) {
<.*?><.*?> * is sorted. That this property is an array allows multi-column sorting
8871
<.*?>
< table.height() ) {
<.*?><.*?> * to be defined for a column (for example first name / last name columns
8872
<.*?>
< table.height() ) {
<.*?><.*?> * would benefit from this). The values are integers pointing to the
8873
<.*?>
< table.height() ) {
<.*?><.*?> * columns to be sorted on (typically it will be a single integer pointing
8874
<.*?>
< table.height() ) {
<.*?><.*?> * at itself, but that doesn't need to be the case).
8875
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
8876
<.*?>
< table.height() ) {
<.*?><.*?> */
8877
<.*?>
< table.height() ) {
<.*?><.*?> "aDataSort": null,
8878
 
8879
<.*?>
< table.height() ) {
<.*?><.*?> /**
8880
<.*?>
< table.height() ) {
<.*?><.*?> * Define the sorting directions that are applied to the column, in sequence
8881
<.*?>
< table.height() ) {
<.*?><.*?> * as the column is repeatedly sorted upon - i.e. the first value is used
8882
<.*?>
< table.height() ) {
<.*?><.*?> * as the sorting direction when the column if first sorted (clicked on).
8883
<.*?>
< table.height() ) {
<.*?><.*?> * Sort it again (click again) and it will move on to the next index.
8884
<.*?>
< table.height() ) {
<.*?><.*?> * Repeat until loop.
8885
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
8886
<.*?>
< table.height() ) {
<.*?><.*?> */
8887
<.*?>
< table.height() ) {
<.*?><.*?> "asSorting": null,
8888
 
8889
<.*?>
< table.height() ) {
<.*?><.*?> /**
8890
<.*?>
< table.height() ) {
<.*?><.*?> * Flag to indicate if the column is searchable, and thus should be included
8891
<.*?>
< table.height() ) {
<.*?><.*?> * in the filtering or not.
8892
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
8893
<.*?>
< table.height() ) {
<.*?><.*?> */
8894
<.*?>
< table.height() ) {
<.*?><.*?> "bSearchable": null,
8895
 
8896
<.*?>
< table.height() ) {
<.*?><.*?> /**
8897
<.*?>
< table.height() ) {
<.*?><.*?> * Flag to indicate if the column is sortable or not.
8898
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
8899
<.*?>
< table.height() ) {
<.*?><.*?> */
8900
<.*?>
< table.height() ) {
<.*?><.*?> "bSortable": null,
8901
 
8902
<.*?>
< table.height() ) {
<.*?><.*?> /**
8903
<.*?>
< table.height() ) {
<.*?><.*?> * Flag to indicate if the column is currently visible in the table or not
8904
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
8905
<.*?>
< table.height() ) {
<.*?><.*?> */
8906
<.*?>
< table.height() ) {
<.*?><.*?> "bVisible": null,
8907
 
8908
<.*?>
< table.height() ) {
<.*?><.*?> /**
8909
<.*?>
< table.height() ) {
<.*?><.*?> * Store for manual type assignment using the `column.type` option. This
8910
<.*?>
< table.height() ) {
<.*?><.*?> * is held in store so we can manipulate the column's `sType` property.
8911
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
8912
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
8913
<.*?>
< table.height() ) {
<.*?><.*?> * @private
8914
<.*?>
< table.height() ) {
<.*?><.*?> */
8915
<.*?>
< table.height() ) {
<.*?><.*?> "_sManualType": null,
8916
 
8917
<.*?>
< table.height() ) {
<.*?><.*?> /**
8918
<.*?>
< table.height() ) {
<.*?><.*?> * Flag to indicate if HTML5 data attributes should be used as the data
8919
<.*?>
< table.height() ) {
<.*?><.*?> * source for filtering or sorting. True is either are.
8920
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
8921
<.*?>
< table.height() ) {
<.*?><.*?> * @default false
8922
<.*?>
< table.height() ) {
<.*?><.*?> * @private
8923
<.*?>
< table.height() ) {
<.*?><.*?> */
8924
<.*?>
< table.height() ) {
<.*?><.*?> "_bAttrSrc": false,
8925
 
8926
<.*?>
< table.height() ) {
<.*?><.*?> /**
8927
<.*?>
< table.height() ) {
<.*?><.*?> * Developer definable function that is called whenever a cell is created (Ajax source,
8928
<.*?>
< table.height() ) {
<.*?><.*?> * etc) or processed for input (DOM source). This can be used as a compliment to mRender
8929
<.*?>
< table.height() ) {
<.*?><.*?> * allowing you to modify the DOM element (add background colour for example) when the
8930
<.*?>
< table.height() ) {
<.*?><.*?> * element is available.
8931
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
8932
<.*?>
< table.height() ) {
<.*?><.*?> * @param {element} nTd The TD node that has been created
8933
<.*?>
< table.height() ) {
<.*?><.*?> * @param {*} sData The Data for the cell
8934
<.*?>
< table.height() ) {
<.*?><.*?> * @param {array|object} oData The data for the whole row
8935
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} iRow The row index for the aoData data store
8936
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
8937
<.*?>
< table.height() ) {
<.*?><.*?> */
8938
<.*?>
< table.height() ) {
<.*?><.*?> "fnCreatedCell": null,
8939
 
8940
<.*?>
< table.height() ) {
<.*?><.*?> /**
8941
<.*?>
< table.height() ) {
<.*?><.*?> * Function to get data from a cell in a column. You should <b>never</b>
8942
<.*?>
< table.height() ) {
<.*?><.*?> * access data directly through _aData internally in DataTables - always use
8943
<.*?>
< table.height() ) {
<.*?><.*?> * the method attached to this property. It allows mData to function as
8944
<.*?>
< table.height() ) {
<.*?><.*?> * required. This function is automatically assigned by the column
8945
<.*?>
< table.height() ) {
<.*?><.*?> * initialisation method
8946
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
8947
<.*?>
< table.height() ) {
<.*?><.*?> * @param {array|object} oData The data array/object for the array
8948
<.*?>
< table.height() ) {
<.*?><.*?> * (i.e. aoData[]._aData)
8949
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string} sSpecific The specific data type you want to get -
8950
<.*?>
< table.height() ) {
<.*?><.*?> * 'display', 'type' 'filter' 'sort'
8951
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {*} The data for the cell from the given row's data
8952
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
8953
<.*?>
< table.height() ) {
<.*?><.*?> */
8954
<.*?>
< table.height() ) {
<.*?><.*?> "fnGetData": null,
8955
 
8956
<.*?>
< table.height() ) {
<.*?><.*?> /**
8957
<.*?>
< table.height() ) {
<.*?><.*?> * Function to set data for a cell in the column. You should <b>never</b>
8958
<.*?>
< table.height() ) {
<.*?><.*?> * set the data directly to _aData internally in DataTables - always use
8959
<.*?>
< table.height() ) {
<.*?><.*?> * this method. It allows mData to function as required. This function
8960
<.*?>
< table.height() ) {
<.*?><.*?> * is automatically assigned by the column initialisation method
8961
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
8962
<.*?>
< table.height() ) {
<.*?><.*?> * @param {array|object} oData The data array/object for the array
8963
<.*?>
< table.height() ) {
<.*?><.*?> * (i.e. aoData[]._aData)
8964
<.*?>
< table.height() ) {
<.*?><.*?> * @param {*} sValue Value to set
8965
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
8966
<.*?>
< table.height() ) {
<.*?><.*?> */
8967
<.*?>
< table.height() ) {
<.*?><.*?> "fnSetData": null,
8968
 
8969
<.*?>
< table.height() ) {
<.*?><.*?> /**
8970
<.*?>
< table.height() ) {
<.*?><.*?> * Property to read the value for the cells in the column from the data
8971
<.*?>
< table.height() ) {
<.*?><.*?> * source array / object. If null, then the default content is used, if a
8972
<.*?>
< table.height() ) {
<.*?><.*?> * function is given then the return from the function is used.
8973
<.*?>
< table.height() ) {
<.*?><.*?> * @type function|int|string|null
8974
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
8975
<.*?>
< table.height() ) {
<.*?><.*?> */
8976
<.*?>
< table.height() ) {
<.*?><.*?> "mData": null,
8977
 
8978
<.*?>
< table.height() ) {
<.*?><.*?> /**
8979
<.*?>
< table.height() ) {
<.*?><.*?> * Partner property to mData which is used (only when defined) to get
8980
<.*?>
< table.height() ) {
<.*?><.*?> * the data - i.e. it is basically the same as mData, but without the
8981
<.*?>
< table.height() ) {
<.*?><.*?> * 'set' option, and also the data fed to it is the result from mData.
8982
<.*?>
< table.height() ) {
<.*?><.*?> * This is the rendering method to match the data method of mData.
8983
<.*?>
< table.height() ) {
<.*?><.*?> * @type function|int|string|null
8984
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
8985
<.*?>
< table.height() ) {
<.*?><.*?> */
8986
<.*?>
< table.height() ) {
<.*?><.*?> "mRender": null,
8987
 
8988
<.*?>
< table.height() ) {
<.*?><.*?> /**
8989
<.*?>
< table.height() ) {
<.*?><.*?> * Unique header TH/TD element for this column - this is what the sorting
8990
<.*?>
< table.height() ) {
<.*?><.*?> * listener is attached to (if sorting is enabled.)
8991
<.*?>
< table.height() ) {
<.*?><.*?> * @type node
8992
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
8993
<.*?>
< table.height() ) {
<.*?><.*?> */
8994
<.*?>
< table.height() ) {
<.*?><.*?> "nTh": null,
8995
 
8996
<.*?>
< table.height() ) {
<.*?><.*?> /**
8997
<.*?>
< table.height() ) {
<.*?><.*?> * Unique footer TH/TD element for this column (if there is one). Not used
8998
<.*?>
< table.height() ) {
<.*?><.*?> * in DataTables as such, but can be used for plug-ins to reference the
8999
<.*?>
< table.height() ) {
<.*?><.*?> * footer for each column.
9000
<.*?>
< table.height() ) {
<.*?><.*?> * @type node
9001
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
9002
<.*?>
< table.height() ) {
<.*?><.*?> */
9003
<.*?>
< table.height() ) {
<.*?><.*?> "nTf": null,
9004
 
9005
<.*?>
< table.height() ) {
<.*?><.*?> /**
9006
<.*?>
< table.height() ) {
<.*?><.*?> * The class to apply to all TD elements in the table's TBODY for the column
9007
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
9008
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
9009
<.*?>
< table.height() ) {
<.*?><.*?> */
9010
<.*?>
< table.height() ) {
<.*?><.*?> "sClass": null,
9011
 
9012
<.*?>
< table.height() ) {
<.*?><.*?> /**
9013
<.*?>
< table.height() ) {
<.*?><.*?> * When DataTables calculates the column widths to assign to each column,
9014
<.*?>
< table.height() ) {
<.*?><.*?> * it finds the longest string in each column and then constructs a
9015
<.*?>
< table.height() ) {
<.*?><.*?> * temporary table and reads the widths from that. The problem with this
9016
<.*?>
< table.height() ) {
<.*?><.*?> * is that "mmm" is much wider then "iiii", but the latter is a longer
9017
<.*?>
< table.height() ) {
<.*?><.*?> * string - thus the calculation can go wrong (doing it properly and putting
9018
<.*?>
< table.height() ) {
<.*?><.*?> * it into an DOM object and measuring that is horribly(!) slow). Thus as
9019
<.*?>
< table.height() ) {
<.*?><.*?> * a "work around" we provide this option. It will append its value to the
9020
<.*?>
< table.height() ) {
<.*?><.*?> * text that is found to be the longest string for the column - i.e. padding.
9021
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
9022
<.*?>
< table.height() ) {
<.*?><.*?> */
9023
<.*?>
< table.height() ) {
<.*?><.*?> "sContentPadding": null,
9024
 
9025
<.*?>
< table.height() ) {
<.*?><.*?> /**
9026
<.*?>
< table.height() ) {
<.*?><.*?> * Allows a default value to be given for a column's data, and will be used
9027
<.*?>
< table.height() ) {
<.*?><.*?> * whenever a null data source is encountered (this can be because mData
9028
<.*?>
< table.height() ) {
<.*?><.*?> * is set to null, or because the data source itself is null).
9029
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
9030
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
9031
<.*?>
< table.height() ) {
<.*?><.*?> */
9032
<.*?>
< table.height() ) {
<.*?><.*?> "sDefaultContent": null,
9033
 
9034
<.*?>
< table.height() ) {
<.*?><.*?> /**
9035
<.*?>
< table.height() ) {
<.*?><.*?> * Name for the column, allowing reference to the column by name as well as
9036
<.*?>
< table.height() ) {
<.*?><.*?> * by index (needs a lookup to work by name).
9037
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
9038
<.*?>
< table.height() ) {
<.*?><.*?> */
9039
<.*?>
< table.height() ) {
<.*?><.*?> "sName": null,
9040
 
9041
<.*?>
< table.height() ) {
<.*?><.*?> /**
9042
<.*?>
< table.height() ) {
<.*?><.*?> * Custom sorting data type - defines which of the available plug-ins in
9043
<.*?>
< table.height() ) {
<.*?><.*?> * afnSortData the custom sorting will use - if any is defined.
9044
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
9045
<.*?>
< table.height() ) {
<.*?><.*?> * @default std
9046
<.*?>
< table.height() ) {
<.*?><.*?> */
9047
<.*?>
< table.height() ) {
<.*?><.*?> "sSortDataType": 'std',
9048
 
9049
<.*?>
< table.height() ) {
<.*?><.*?> /**
9050
<.*?>
< table.height() ) {
<.*?><.*?> * Class to be applied to the header element when sorting on this column
9051
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
9052
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
9053
<.*?>
< table.height() ) {
<.*?><.*?> */
9054
<.*?>
< table.height() ) {
<.*?><.*?> "sSortingClass": null,
9055
 
9056
<.*?>
< table.height() ) {
<.*?><.*?> /**
9057
<.*?>
< table.height() ) {
<.*?><.*?> * Class to be applied to the header element when sorting on this column -
9058
<.*?>
< table.height() ) {
<.*?><.*?> * when jQuery UI theming is used.
9059
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
9060
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
9061
<.*?>
< table.height() ) {
<.*?><.*?> */
9062
<.*?>
< table.height() ) {
<.*?><.*?> "sSortingClassJUI": null,
9063
 
9064
<.*?>
< table.height() ) {
<.*?><.*?> /**
9065
<.*?>
< table.height() ) {
<.*?><.*?> * Title of the column - what is seen in the TH element (nTh).
9066
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
9067
<.*?>
< table.height() ) {
<.*?><.*?> */
9068
<.*?>
< table.height() ) {
<.*?><.*?> "sTitle": null,
9069
 
9070
<.*?>
< table.height() ) {
<.*?><.*?> /**
9071
<.*?>
< table.height() ) {
<.*?><.*?> * Column sorting and filtering type
9072
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
9073
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
9074
<.*?>
< table.height() ) {
<.*?><.*?> */
9075
<.*?>
< table.height() ) {
<.*?><.*?> "sType": null,
9076
 
9077
<.*?>
< table.height() ) {
<.*?><.*?> /**
9078
<.*?>
< table.height() ) {
<.*?><.*?> * Width of the column
9079
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
9080
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
9081
<.*?>
< table.height() ) {
<.*?><.*?> */
9082
<.*?>
< table.height() ) {
<.*?><.*?> "sWidth": null,
9083
 
9084
<.*?>
< table.height() ) {
<.*?><.*?> /**
9085
<.*?>
< table.height() ) {
<.*?><.*?> * Width of the column when it was first "encountered"
9086
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
9087
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
9088
<.*?>
< table.height() ) {
<.*?><.*?> */
9089
<.*?>
< table.height() ) {
<.*?><.*?> "sWidthOrig": null
9090
<.*?>
< table.height() ) {
<.*?><.*?> };
9091
 
9092
 
9093
<.*?>
< table.height() ) {
<.*?><.*?> /*
9094
<.*?>
< table.height() ) {
<.*?><.*?> * Developer note: The properties of the object below are given in Hungarian
9095
<.*?>
< table.height() ) {
<.*?><.*?> * notation, that was used as the interface for DataTables prior to v1.10, however
9096
<.*?>
< table.height() ) {
<.*?><.*?> * from v1.10 onwards the primary interface is camel case. In order to avoid
9097
<.*?>
< table.height() ) {
<.*?><.*?> * breaking backwards compatibility utterly with this change, the Hungarian
9098
<.*?>
< table.height() ) {
<.*?><.*?> * version is still, internally the primary interface, but is is not documented
9099
<.*?>
< table.height() ) {
<.*?><.*?> * - hence the @name tags in each doc comment. This allows a Javascript function
9100
<.*?>
< table.height() ) {
<.*?><.*?> * to create a map from Hungarian notation to camel case (going the other direction
9101
<.*?>
< table.height() ) {
<.*?><.*?> * would require each property to be listed, which would at around 3K to the size
9102
<.*?>
< table.height() ) {
<.*?><.*?> * of DataTables, while this method is about a 0.5K hit.
9103
<.*?>
< table.height() ) {
<.*?><.*?> *
9104
<.*?>
< table.height() ) {
<.*?><.*?> * Ultimately this does pave the way for Hungarian notation to be dropped
9105
<.*?>
< table.height() ) {
<.*?><.*?> * completely, but that is a massive amount of work and will break current
9106
<.*?>
< table.height() ) {
<.*?><.*?> * installs (therefore is on-hold until v2).
9107
<.*?>
< table.height() ) {
<.*?><.*?> */
9108
 
9109
<.*?>
< table.height() ) {
<.*?><.*?> /**
9110
<.*?>
< table.height() ) {
<.*?><.*?> * Initialisation options that can be given to DataTables at initialisation
9111
<.*?>
< table.height() ) {
<.*?><.*?> * time.
9112
<.*?>
< table.height() ) {
<.*?><.*?> * @namespace
9113
<.*?>
< table.height() ) {
<.*?><.*?> */
9114
<.*?>
< table.height() ) {
<.*?><.*?> DataTable.defaults = {
9115
<.*?>
< table.height() ) {
<.*?><.*?> /**
9116
<.*?>
< table.height() ) {
<.*?><.*?> * An array of data to use for the table, passed in at initialisation which
9117
<.*?>
< table.height() ) {
<.*?><.*?> * will be used in preference to any data which is already in the DOM. This is
9118
<.*?>
< table.height() ) {
<.*?><.*?> * particularly useful for constructing tables purely in Javascript, for
9119
<.*?>
< table.height() ) {
<.*?><.*?> * example with a custom Ajax call.
9120
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
9121
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
9122
<.*?>
< table.height() ) {
<.*?><.*?> *
9123
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Option
9124
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.data
9125
<.*?>
< table.height() ) {
<.*?><.*?> *
9126
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9127
<.*?>
< table.height() ) {
<.*?><.*?> * // Using a 2D array data source
9128
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function () {
9129
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9130
<.*?>
< table.height() ) {
<.*?><.*?> * "data": [
9131
<.*?>
< table.height() ) {
<.*?><.*?> * ['Trident', 'Internet Explorer 4.0', 'Win 95+', 4, 'X'],
9132
<.*?>
< table.height() ) {
<.*?><.*?> * ['Trident', 'Internet Explorer 5.0', 'Win 95+', 5, 'C'],
9133
<.*?>
< table.height() ) {
<.*?><.*?> * ],
9134
<.*?>
< table.height() ) {
<.*?><.*?> * "columns": [
9135
<.*?>
< table.height() ) {
<.*?><.*?> * { "title": "Engine" },
9136
<.*?>
< table.height() ) {
<.*?><.*?> * { "title": "Browser" },
9137
<.*?>
< table.height() ) {
<.*?><.*?> * { "title": "Platform" },
9138
<.*?>
< table.height() ) {
<.*?><.*?> * { "title": "Version" },
9139
<.*?>
< table.height() ) {
<.*?><.*?> * { "title": "Grade" }
9140
<.*?>
< table.height() ) {
<.*?><.*?> * ]
9141
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9142
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9143
<.*?>
< table.height() ) {
<.*?><.*?> *
9144
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9145
<.*?>
< table.height() ) {
<.*?><.*?> * // Using an array of objects as a data source (`data`)
9146
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function () {
9147
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9148
<.*?>
< table.height() ) {
<.*?><.*?> * "data": [
9149
<.*?>
< table.height() ) {
<.*?><.*?> * {
9150
<.*?>
< table.height() ) {
<.*?><.*?> * "engine": "Trident",
9151
<.*?>
< table.height() ) {
<.*?><.*?> * "browser": "Internet Explorer 4.0",
9152
<.*?>
< table.height() ) {
<.*?><.*?> * "platform": "Win 95+",
9153
<.*?>
< table.height() ) {
<.*?><.*?> * "version": 4,
9154
<.*?>
< table.height() ) {
<.*?><.*?> * "grade": "X"
9155
<.*?>
< table.height() ) {
<.*?><.*?> * },
9156
<.*?>
< table.height() ) {
<.*?><.*?> * {
9157
<.*?>
< table.height() ) {
<.*?><.*?> * "engine": "Trident",
9158
<.*?>
< table.height() ) {
<.*?><.*?> * "browser": "Internet Explorer 5.0",
9159
<.*?>
< table.height() ) {
<.*?><.*?> * "platform": "Win 95+",
9160
<.*?>
< table.height() ) {
<.*?><.*?> * "version": 5,
9161
<.*?>
< table.height() ) {
<.*?><.*?> * "grade": "C"
9162
<.*?>
< table.height() ) {
<.*?><.*?> * }
9163
<.*?>
< table.height() ) {
<.*?><.*?> * ],
9164
<.*?>
< table.height() ) {
<.*?><.*?> * "columns": [
9165
<.*?>
< table.height() ) {
<.*?><.*?> * { "title": "Engine", "data": "engine" },
9166
<.*?>
< table.height() ) {
<.*?><.*?> * { "title": "Browser", "data": "browser" },
9167
<.*?>
< table.height() ) {
<.*?><.*?> * { "title": "Platform", "data": "platform" },
9168
<.*?>
< table.height() ) {
<.*?><.*?> * { "title": "Version", "data": "version" },
9169
<.*?>
< table.height() ) {
<.*?><.*?> * { "title": "Grade", "data": "grade" }
9170
<.*?>
< table.height() ) {
<.*?><.*?> * ]
9171
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9172
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9173
<.*?>
< table.height() ) {
<.*?><.*?> */
9174
<.*?>
< table.height() ) {
<.*?><.*?> "aaData": null,
9175
 
9176
 
9177
<.*?>
< table.height() ) {
<.*?><.*?> /**
9178
<.*?>
< table.height() ) {
<.*?><.*?> * If ordering is enabled, then DataTables will perform a first pass sort on
9179
<.*?>
< table.height() ) {
<.*?><.*?> * initialisation. You can define which column(s) the sort is performed
9180
<.*?>
< table.height() ) {
<.*?><.*?> * upon, and the sorting direction, with this variable. The `sorting` array
9181
<.*?>
< table.height() ) {
<.*?><.*?> * should contain an array for each column to be sorted initially containing
9182
<.*?>
< table.height() ) {
<.*?><.*?> * the column's index and a direction string ('asc' or 'desc').
9183
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
9184
<.*?>
< table.height() ) {
<.*?><.*?> * @default [[0,'asc']]
9185
<.*?>
< table.height() ) {
<.*?><.*?> *
9186
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Option
9187
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.order
9188
<.*?>
< table.height() ) {
<.*?><.*?> *
9189
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9190
<.*?>
< table.height() ) {
<.*?><.*?> * // Sort by 3rd column first, and then 4th column
9191
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
9192
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9193
<.*?>
< table.height() ) {
<.*?><.*?> * "order": [[2,'asc'], [3,'desc']]
9194
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9195
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9196
<.*?>
< table.height() ) {
<.*?><.*?> *
9197
<.*?>
< table.height() ) {
<.*?><.*?> * // No initial sorting
9198
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
9199
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9200
<.*?>
< table.height() ) {
<.*?><.*?> * "order": []
9201
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9202
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9203
<.*?>
< table.height() ) {
<.*?><.*?> */
9204
<.*?>
< table.height() ) {
<.*?><.*?> "aaSorting": [[0,'asc']],
9205
 
9206
 
9207
<.*?>
< table.height() ) {
<.*?><.*?> /**
9208
<.*?>
< table.height() ) {
<.*?><.*?> * This parameter is basically identical to the `sorting` parameter, but
9209
<.*?>
< table.height() ) {
<.*?><.*?> * cannot be overridden by user interaction with the table. What this means
9210
<.*?>
< table.height() ) {
<.*?><.*?> * is that you could have a column (visible or hidden) which the sorting
9211
<.*?>
< table.height() ) {
<.*?><.*?> * will always be forced on first - any sorting after that (from the user)
9212
<.*?>
< table.height() ) {
<.*?><.*?> * will then be performed as required. This can be useful for grouping rows
9213
<.*?>
< table.height() ) {
<.*?><.*?> * together.
9214
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
9215
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
9216
<.*?>
< table.height() ) {
<.*?><.*?> *
9217
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Option
9218
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.orderFixed
9219
<.*?>
< table.height() ) {
<.*?><.*?> *
9220
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9221
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
9222
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9223
<.*?>
< table.height() ) {
<.*?><.*?> * "orderFixed": [[0,'asc']]
9224
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9225
<.*?>
< table.height() ) {
<.*?><.*?> * } )
9226
<.*?>
< table.height() ) {
<.*?><.*?> */
9227
<.*?>
< table.height() ) {
<.*?><.*?> "aaSortingFixed": [],
9228
 
9229
 
9230
<.*?>
< table.height() ) {
<.*?><.*?> /**
9231
<.*?>
< table.height() ) {
<.*?><.*?> * DataTables can be instructed to load data to display in the table from a
9232
<.*?>
< table.height() ) {
<.*?><.*?> * Ajax source. This option defines how that Ajax call is made and where to.
9233
<.*?>
< table.height() ) {
<.*?><.*?> *
9234
<.*?>
< table.height() ) {
<.*?><.*?> * The `ajax` property has three different modes of operation, depending on
9235
<.*?>
< table.height() ) {
<.*?><.*?> * how it is defined. These are:
9236
<.*?>
< table.height() ) {
<.*?><.*?> *
9237
<.*?>
< table.height() ) {
<.*?><.*?> * * `string` - Set the URL from where the data should be loaded from.
9238
<.*?>
< table.height() ) {
<.*?><.*?> * * `object` - Define properties for `jQuery.ajax`.
9239
<.*?>
< table.height() ) {
<.*?><.*?> * * `function` - Custom data get function
9240
<.*?>
< table.height() ) {
<.*?><.*?> *
9241
<.*?>
< table.height() ) {
<.*?><.*?> * `string`
9242
<.*?>
< table.height() ) {
<.*?><.*?> * --------
9243
<.*?>
< table.height() ) {
<.*?><.*?> *
9244
<.*?>
< table.height() ) {
<.*?><.*?> * As a string, the `ajax` property simply defines the URL from which
9245
<.*?>
< table.height() ) {
<.*?><.*?> * DataTables will load data.
9246
<.*?>
< table.height() ) {
<.*?><.*?> *
9247
<.*?>
< table.height() ) {
<.*?><.*?> * `object`
9248
<.*?>
< table.height() ) {
<.*?><.*?> * --------
9249
<.*?>
< table.height() ) {
<.*?><.*?> *
9250
<.*?>
< table.height() ) {
<.*?><.*?> * As an object, the parameters in the object are passed to
9251
<.*?>
< table.height() ) {
<.*?><.*?> * [jQuery.ajax](http://api.jquery.com/jQuery.ajax/) allowing fine control
9252
<.*?>
< table.height() ) {
<.*?><.*?> * of the Ajax request. DataTables has a number of default parameters which
9253
<.*?>
< table.height() ) {
<.*?><.*?> * you can override using this option. Please refer to the jQuery
9254
<.*?>
< table.height() ) {
<.*?><.*?> * documentation for a full description of the options available, although
9255
<.*?>
< table.height() ) {
<.*?><.*?> * the following parameters provide additional options in DataTables or
9256
<.*?>
< table.height() ) {
<.*?><.*?> * require special consideration:
9257
<.*?>
< table.height() ) {
<.*?><.*?> *
9258
<.*?>
< table.height() ) {
<.*?><.*?> * * `data` - As with jQuery, `data` can be provided as an object, but it
9259
<.*?>
< table.height() ) {
<.*?><.*?> * can also be used as a function to manipulate the data DataTables sends
9260
<.*?>
< table.height() ) {
<.*?><.*?> * to the server. The function takes a single parameter, an object of
9261
<.*?>
< table.height() ) {
<.*?><.*?> * parameters with the values that DataTables has readied for sending. An
9262
<.*?>
< table.height() ) {
<.*?><.*?> * object may be returned which will be merged into the DataTables
9263
<.*?>
< table.height() ) {
<.*?><.*?> * defaults, or you can add the items to the object that was passed in and
9264
<.*?>
< table.height() ) {
<.*?><.*?> * not return anything from the function. This supersedes `fnServerParams`
9265
<.*?>
< table.height() ) {
<.*?><.*?> * from DataTables 1.9-.
9266
<.*?>
< table.height() ) {
<.*?><.*?> *
9267
<.*?>
< table.height() ) {
<.*?><.*?> * * `dataSrc` - By default DataTables will look for the property `data` (or
9268
<.*?>
< table.height() ) {
<.*?><.*?> * `aaData` for compatibility with DataTables 1.9-) when obtaining data
9269
<.*?>
< table.height() ) {
<.*?><.*?> * from an Ajax source or for server-side processing - this parameter
9270
<.*?>
< table.height() ) {
<.*?><.*?> * allows that property to be changed. You can use Javascript dotted
9271
<.*?>
< table.height() ) {
<.*?><.*?> * object notation to get a data source for multiple levels of nesting, or
9272
<.*?>
< table.height() ) {
<.*?><.*?> * it my be used as a function. As a function it takes a single parameter,
9273
<.*?>
< table.height() ) {
<.*?><.*?> * the JSON returned from the server, which can be manipulated as
9274
<.*?>
< table.height() ) {
<.*?><.*?> * required, with the returned value being that used by DataTables as the
9275
<.*?>
< table.height() ) {
<.*?><.*?> * data source for the table. This supersedes `sAjaxDataProp` from
9276
<.*?>
< table.height() ) {
<.*?><.*?> * DataTables 1.9-.
9277
<.*?>
< table.height() ) {
<.*?><.*?> *
9278
<.*?>
< table.height() ) {
<.*?><.*?> * * `success` - Should not be overridden it is used internally in
9279
<.*?>
< table.height() ) {
<.*?><.*?> * DataTables. To manipulate / transform the data returned by the server
9280
<.*?>
< table.height() ) {
<.*?><.*?> * use `ajax.dataSrc`, or use `ajax` as a function (see below).
9281
<.*?>
< table.height() ) {
<.*?><.*?> *
9282
<.*?>
< table.height() ) {
<.*?><.*?> * `function`
9283
<.*?>
< table.height() ) {
<.*?><.*?> * ----------
9284
<.*?>
< table.height() ) {
<.*?><.*?> *
9285
<.*?>
< table.height() ) {
<.*?><.*?> * As a function, making the Ajax call is left up to yourself allowing
9286
<.*?>
< table.height() ) {
<.*?><.*?> * complete control of the Ajax request. Indeed, if desired, a method other
9287
<.*?>
< table.height() ) {
<.*?><.*?> * than Ajax could be used to obtain the required data, such as Web storage
9288
<.*?>
< table.height() ) {
<.*?><.*?> * or an AIR database.
9289
<.*?>
< table.height() ) {
<.*?><.*?> *
9290
<.*?>
< table.height() ) {
<.*?><.*?> * The function is given four parameters and no return is required. The
9291
<.*?>
< table.height() ) {
<.*?><.*?> * parameters are:
9292
<.*?>
< table.height() ) {
<.*?><.*?> *
9293
<.*?>
< table.height() ) {
<.*?><.*?> * 1. _object_ - Data to send to the server
9294
<.*?>
< table.height() ) {
<.*?><.*?> * 2. _function_ - Callback function that must be executed when the required
9295
<.*?>
< table.height() ) {
<.*?><.*?> * data has been obtained. That data should be passed into the callback
9296
<.*?>
< table.height() ) {
<.*?><.*?> * as the only parameter
9297
<.*?>
< table.height() ) {
<.*?><.*?> * 3. _object_ - DataTables settings object for the table
9298
<.*?>
< table.height() ) {
<.*?><.*?> *
9299
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this supersedes `fnServerData` from DataTables 1.9-.
9300
<.*?>
< table.height() ) {
<.*?><.*?> *
9301
<.*?>
< table.height() ) {
<.*?><.*?> * @type string|object|function
9302
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
9303
<.*?>
< table.height() ) {
<.*?><.*?> *
9304
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Option
9305
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.ajax
9306
<.*?>
< table.height() ) {
<.*?><.*?> * @since 1.10.0
9307
<.*?>
< table.height() ) {
<.*?><.*?> *
9308
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9309
<.*?>
< table.height() ) {
<.*?><.*?> * // Get JSON data from a file via Ajax.
9310
<.*?>
< table.height() ) {
<.*?><.*?> * // Note DataTables expects data in the form `{ data: [ ...data... ] }` by default).
9311
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9312
<.*?>
< table.height() ) {
<.*?><.*?> * "ajax": "data.json"
9313
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9314
<.*?>
< table.height() ) {
<.*?><.*?> *
9315
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9316
<.*?>
< table.height() ) {
<.*?><.*?> * // Get JSON data from a file via Ajax, using `dataSrc` to change
9317
<.*?>
< table.height() ) {
<.*?><.*?> * // `data` to `tableData` (i.e. `{ tableData: [ ...data... ] }`)
9318
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9319
<.*?>
< table.height() ) {
<.*?><.*?> * "ajax": {
9320
<.*?>
< table.height() ) {
<.*?><.*?> * "url": "data.json",
9321
<.*?>
< table.height() ) {
<.*?><.*?> * "dataSrc": "tableData"
9322
<.*?>
< table.height() ) {
<.*?><.*?> * }
9323
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9324
<.*?>
< table.height() ) {
<.*?><.*?> *
9325
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9326
<.*?>
< table.height() ) {
<.*?><.*?> * // Get JSON data from a file via Ajax, using `dataSrc` to read data
9327
<.*?>
< table.height() ) {
<.*?><.*?> * // from a plain array rather than an array in an object
9328
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9329
<.*?>
< table.height() ) {
<.*?><.*?> * "ajax": {
9330
<.*?>
< table.height() ) {
<.*?><.*?> * "url": "data.json",
9331
<.*?>
< table.height() ) {
<.*?><.*?> * "dataSrc": ""
9332
<.*?>
< table.height() ) {
<.*?><.*?> * }
9333
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9334
<.*?>
< table.height() ) {
<.*?><.*?> *
9335
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9336
<.*?>
< table.height() ) {
<.*?><.*?> * // Manipulate the data returned from the server - add a link to data
9337
<.*?>
< table.height() ) {
<.*?><.*?> * // (note this can, should, be done using `render` for the column - this
9338
<.*?>
< table.height() ) {
<.*?><.*?> * // is just a simple example of how the data can be manipulated).
9339
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9340
<.*?>
< table.height() ) {
<.*?><.*?> * "ajax": {
9341
<.*?>
< table.height() ) {
<.*?><.*?> * "url": "data.json",
9342
<.*?>
< table.height() ) {
<.*?><.*?> * "dataSrc": function ( json ) {
9343
<.*?>
< table.height() ) {
<.*?><.*?> * for ( var i=0, ien=json.length ; i<ien ; i++ ) {
9344
<.*?>
< table.height() ) {
<.*?><.*?> * json[i][0] = '<a href="/message/'+json[i][0]+'>View message</a>';
9345
<.*?>
< table.height() ) {
<.*?><.*?> * }
9346
<.*?>
< table.height() ) {
<.*?><.*?> * return json;
9347
<.*?>
< table.height() ) {
<.*?><.*?> * }
9348
<.*?>
< table.height() ) {
<.*?><.*?> * }
9349
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9350
<.*?>
< table.height() ) {
<.*?><.*?> *
9351
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9352
<.*?>
< table.height() ) {
<.*?><.*?> * // Add data to the request
9353
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9354
<.*?>
< table.height() ) {
<.*?><.*?> * "ajax": {
9355
<.*?>
< table.height() ) {
<.*?><.*?> * "url": "data.json",
9356
<.*?>
< table.height() ) {
<.*?><.*?> * "data": function ( d ) {
9357
<.*?>
< table.height() ) {
<.*?><.*?> * return {
9358
<.*?>
< table.height() ) {
<.*?><.*?> * "extra_search": $('#extra').val()
9359
<.*?>
< table.height() ) {
<.*?><.*?> * };
9360
<.*?>
< table.height() ) {
<.*?><.*?> * }
9361
<.*?>
< table.height() ) {
<.*?><.*?> * }
9362
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9363
<.*?>
< table.height() ) {
<.*?><.*?> *
9364
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9365
<.*?>
< table.height() ) {
<.*?><.*?> * // Send request as POST
9366
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9367
<.*?>
< table.height() ) {
<.*?><.*?> * "ajax": {
9368
<.*?>
< table.height() ) {
<.*?><.*?> * "url": "data.json",
9369
<.*?>
< table.height() ) {
<.*?><.*?> * "type": "POST"
9370
<.*?>
< table.height() ) {
<.*?><.*?> * }
9371
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9372
<.*?>
< table.height() ) {
<.*?><.*?> *
9373
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9374
<.*?>
< table.height() ) {
<.*?><.*?> * // Get the data from localStorage (could interface with a form for
9375
<.*?>
< table.height() ) {
<.*?><.*?> * // adding, editing and removing rows).
9376
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9377
<.*?>
< table.height() ) {
<.*?><.*?> * "ajax": function (data, callback, settings) {
9378
<.*?>
< table.height() ) {
<.*?><.*?> * callback(
9379
<.*?>
< table.height() ) {
<.*?><.*?> * JSON.parse( localStorage.getItem('dataTablesData') )
9380
<.*?>
< table.height() ) {
<.*?><.*?> * );
9381
<.*?>
< table.height() ) {
<.*?><.*?> * }
9382
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9383
<.*?>
< table.height() ) {
<.*?><.*?> */
9384
<.*?>
< table.height() ) {
<.*?><.*?> "ajax": null,
9385
 
9386
 
9387
<.*?>
< table.height() ) {
<.*?><.*?> /**
9388
<.*?>
< table.height() ) {
<.*?><.*?> * This parameter allows you to readily specify the entries in the length drop
9389
<.*?>
< table.height() ) {
<.*?><.*?> * down menu that DataTables shows when pagination is enabled. It can be
9390
<.*?>
< table.height() ) {
<.*?><.*?> * either a 1D array of options which will be used for both the displayed
9391
<.*?>
< table.height() ) {
<.*?><.*?> * option and the value, or a 2D array which will use the array in the first
9392
<.*?>
< table.height() ) {
<.*?><.*?> * position as the value, and the array in the second position as the
9393
<.*?>
< table.height() ) {
<.*?><.*?> * displayed options (useful for language strings such as 'All').
9394
<.*?>
< table.height() ) {
<.*?><.*?> *
9395
<.*?>
< table.height() ) {
<.*?><.*?> * Note that the `pageLength` property will be automatically set to the
9396
<.*?>
< table.height() ) {
<.*?><.*?> * first value given in this array, unless `pageLength` is also provided.
9397
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
9398
<.*?>
< table.height() ) {
<.*?><.*?> * @default [ 10, 25, 50, 100 ]
9399
<.*?>
< table.height() ) {
<.*?><.*?> *
9400
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Option
9401
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.lengthMenu
9402
<.*?>
< table.height() ) {
<.*?><.*?> *
9403
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9404
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
9405
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9406
<.*?>
< table.height() ) {
<.*?><.*?> * "lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]]
9407
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9408
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9409
<.*?>
< table.height() ) {
<.*?><.*?> */
9410
<.*?>
< table.height() ) {
<.*?><.*?> "aLengthMenu": [ 10, 25, 50, 100 ],
9411
 
9412
 
9413
<.*?>
< table.height() ) {
<.*?><.*?> /**
9414
<.*?>
< table.height() ) {
<.*?><.*?> * The `columns` option in the initialisation parameter allows you to define
9415
<.*?>
< table.height() ) {
<.*?><.*?> * details about the way individual columns behave. For a full list of
9416
<.*?>
< table.height() ) {
<.*?><.*?> * column options that can be set, please see
9417
<.*?>
< table.height() ) {
<.*?><.*?> * {@link DataTable.defaults.column}. Note that if you use `columns` to
9418
<.*?>
< table.height() ) {
<.*?><.*?> * define your columns, you must have an entry in the array for every single
9419
<.*?>
< table.height() ) {
<.*?><.*?> * column that you have in your table (these can be null if you don't which
9420
<.*?>
< table.height() ) {
<.*?><.*?> * to specify any options).
9421
<.*?>
< table.height() ) {
<.*?><.*?> * @member
9422
<.*?>
< table.height() ) {
<.*?><.*?> *
9423
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.column
9424
<.*?>
< table.height() ) {
<.*?><.*?> */
9425
<.*?>
< table.height() ) {
<.*?><.*?> "aoColumns": null,
9426
 
9427
<.*?>
< table.height() ) {
<.*?><.*?> /**
9428
<.*?>
< table.height() ) {
<.*?><.*?> * Very similar to `columns`, `columnDefs` allows you to target a specific
9429
<.*?>
< table.height() ) {
<.*?><.*?> * column, multiple columns, or all columns, using the `targets` property of
9430
<.*?>
< table.height() ) {
<.*?><.*?> * each object in the array. This allows great flexibility when creating
9431
<.*?>
< table.height() ) {
<.*?><.*?> * tables, as the `columnDefs` arrays can be of any length, targeting the
9432
<.*?>
< table.height() ) {
<.*?><.*?> * columns you specifically want. `columnDefs` may use any of the column
9433
<.*?>
< table.height() ) {
<.*?><.*?> * options available: {@link DataTable.defaults.column}, but it _must_
9434
<.*?>
< table.height() ) {
<.*?><.*?> * have `targets` defined in each object in the array. Values in the `targets`
9435
<.*?>
< table.height() ) {
<.*?><.*?> * array may be:
9436
<.*?>
< table.height() ) {
<.*?><.*?> * <ul>
9437
<.*?>
< table.height() ) {
<.*?><.*?> * <li>a string - class name will be matched on the TH for the column</li>
9438
<.*?>
< table.height() ) {
<.*?><.*?> * <li>0 or a positive integer - column index counting from the left</li>
9439
<.*?>
< table.height() ) {
<.*?><.*?> * <li>a negative integer - column index counting from the right</li>
9440
<.*?>
< table.height() ) {
<.*?><.*?> * <li>the string "_all" - all columns (i.e. assign a default)</li>
9441
<.*?>
< table.height() ) {
<.*?><.*?> * </ul>
9442
<.*?>
< table.height() ) {
<.*?><.*?> * @member
9443
<.*?>
< table.height() ) {
<.*?><.*?> *
9444
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.columnDefs
9445
<.*?>
< table.height() ) {
<.*?><.*?> */
9446
<.*?>
< table.height() ) {
<.*?><.*?> "aoColumnDefs": null,
9447
 
9448
 
9449
<.*?>
< table.height() ) {
<.*?><.*?> /**
9450
<.*?>
< table.height() ) {
<.*?><.*?> * Basically the same as `search`, this parameter defines the individual column
9451
<.*?>
< table.height() ) {
<.*?><.*?> * filtering state at initialisation time. The array must be of the same size
9452
<.*?>
< table.height() ) {
<.*?><.*?> * as the number of columns, and each element be an object with the parameters
9453
<.*?>
< table.height() ) {
<.*?><.*?> * `search` and `escapeRegex` (the latter is optional). 'null' is also
9454
<.*?>
< table.height() ) {
<.*?><.*?> * accepted and the default will be used.
9455
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
9456
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
9457
<.*?>
< table.height() ) {
<.*?><.*?> *
9458
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Option
9459
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.searchCols
9460
<.*?>
< table.height() ) {
<.*?><.*?> *
9461
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9462
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
9463
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9464
<.*?>
< table.height() ) {
<.*?><.*?> * "searchCols": [
9465
<.*?>
< table.height() ) {
<.*?><.*?> * null,
9466
<.*?>
< table.height() ) {
<.*?><.*?> * { "search": "My filter" },
9467
<.*?>
< table.height() ) {
<.*?><.*?> * null,
9468
<.*?>
< table.height() ) {
<.*?><.*?> * { "search": "^[0-9]", "escapeRegex": false }
9469
<.*?>
< table.height() ) {
<.*?><.*?> * ]
9470
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9471
<.*?>
< table.height() ) {
<.*?><.*?> * } )
9472
<.*?>
< table.height() ) {
<.*?><.*?> */
9473
<.*?>
< table.height() ) {
<.*?><.*?> "aoSearchCols": [],
9474
 
9475
 
9476
<.*?>
< table.height() ) {
<.*?><.*?> /**
9477
<.*?>
< table.height() ) {
<.*?><.*?> * An array of CSS classes that should be applied to displayed rows. This
9478
<.*?>
< table.height() ) {
<.*?><.*?> * array may be of any length, and DataTables will apply each class
9479
<.*?>
< table.height() ) {
<.*?><.*?> * sequentially, looping when required.
9480
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
9481
<.*?>
< table.height() ) {
<.*?><.*?> * @default null <i>Will take the values determined by the `oClasses.stripe*`
9482
<.*?>
< table.height() ) {
<.*?><.*?> * options</i>
9483
<.*?>
< table.height() ) {
<.*?><.*?> *
9484
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Option
9485
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.stripeClasses
9486
<.*?>
< table.height() ) {
<.*?><.*?> *
9487
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9488
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
9489
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9490
<.*?>
< table.height() ) {
<.*?><.*?> * "stripeClasses": [ 'strip1', 'strip2', 'strip3' ]
9491
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9492
<.*?>
< table.height() ) {
<.*?><.*?> * } )
9493
<.*?>
< table.height() ) {
<.*?><.*?> */
9494
<.*?>
< table.height() ) {
<.*?><.*?> "asStripeClasses": null,
9495
 
9496
 
9497
<.*?>
< table.height() ) {
<.*?><.*?> /**
9498
<.*?>
< table.height() ) {
<.*?><.*?> * Enable or disable automatic column width calculation. This can be disabled
9499
<.*?>
< table.height() ) {
<.*?><.*?> * as an optimisation (it takes some time to calculate the widths) if the
9500
<.*?>
< table.height() ) {
<.*?><.*?> * tables widths are passed in using `columns`.
9501
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
9502
<.*?>
< table.height() ) {
<.*?><.*?> * @default true
9503
<.*?>
< table.height() ) {
<.*?><.*?> *
9504
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Features
9505
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.autoWidth
9506
<.*?>
< table.height() ) {
<.*?><.*?> *
9507
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9508
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function () {
9509
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9510
<.*?>
< table.height() ) {
<.*?><.*?> * "autoWidth": false
9511
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9512
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9513
<.*?>
< table.height() ) {
<.*?><.*?> */
9514
<.*?>
< table.height() ) {
<.*?><.*?> "bAutoWidth": true,
9515
 
9516
 
9517
<.*?>
< table.height() ) {
<.*?><.*?> /**
9518
<.*?>
< table.height() ) {
<.*?><.*?> * Deferred rendering can provide DataTables with a huge speed boost when you
9519
<.*?>
< table.height() ) {
<.*?><.*?> * are using an Ajax or JS data source for the table. This option, when set to
9520
<.*?>
< table.height() ) {
<.*?><.*?> * true, will cause DataTables to defer the creation of the table elements for
9521
<.*?>
< table.height() ) {
<.*?><.*?> * each row until they are needed for a draw - saving a significant amount of
9522
<.*?>
< table.height() ) {
<.*?><.*?> * time.
9523
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
9524
<.*?>
< table.height() ) {
<.*?><.*?> * @default false
9525
<.*?>
< table.height() ) {
<.*?><.*?> *
9526
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Features
9527
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.deferRender
9528
<.*?>
< table.height() ) {
<.*?><.*?> *
9529
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9530
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
9531
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9532
<.*?>
< table.height() ) {
<.*?><.*?> * "ajax": "sources/arrays.txt",
9533
<.*?>
< table.height() ) {
<.*?><.*?> * "deferRender": true
9534
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9535
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9536
<.*?>
< table.height() ) {
<.*?><.*?> */
9537
<.*?>
< table.height() ) {
<.*?><.*?> "bDeferRender": false,
9538
 
9539
 
9540
<.*?>
< table.height() ) {
<.*?><.*?> /**
9541
<.*?>
< table.height() ) {
<.*?><.*?> * Replace a DataTable which matches the given selector and replace it with
9542
<.*?>
< table.height() ) {
<.*?><.*?> * one which has the properties of the new initialisation object passed. If no
9543
<.*?>
< table.height() ) {
<.*?><.*?> * table matches the selector, then the new DataTable will be constructed as
9544
<.*?>
< table.height() ) {
<.*?><.*?> * per normal.
9545
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
9546
<.*?>
< table.height() ) {
<.*?><.*?> * @default false
9547
<.*?>
< table.height() ) {
<.*?><.*?> *
9548
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Options
9549
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.destroy
9550
<.*?>
< table.height() ) {
<.*?><.*?> *
9551
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9552
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
9553
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9554
<.*?>
< table.height() ) {
<.*?><.*?> * "srollY": "200px",
9555
<.*?>
< table.height() ) {
<.*?><.*?> * "paginate": false
9556
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9557
<.*?>
< table.height() ) {
<.*?><.*?> *
9558
<.*?>
< table.height() ) {
<.*?><.*?> * // Some time later....
9559
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9560
<.*?>
< table.height() ) {
<.*?><.*?> * "filter": false,
9561
<.*?>
< table.height() ) {
<.*?><.*?> * "destroy": true
9562
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9563
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9564
<.*?>
< table.height() ) {
<.*?><.*?> */
9565
<.*?>
< table.height() ) {
<.*?><.*?> "bDestroy": false,
9566
 
9567
 
9568
<.*?>
< table.height() ) {
<.*?><.*?> /**
9569
<.*?>
< table.height() ) {
<.*?><.*?> * Enable or disable filtering of data. Filtering in DataTables is "smart" in
9570
<.*?>
< table.height() ) {
<.*?><.*?> * that it allows the end user to input multiple words (space separated) and
9571
<.*?>
< table.height() ) {
<.*?><.*?> * will match a row containing those words, even if not in the order that was
9572
<.*?>
< table.height() ) {
<.*?><.*?> * specified (this allow matching across multiple columns). Note that if you
9573
<.*?>
< table.height() ) {
<.*?><.*?> * wish to use filtering in DataTables this must remain 'true' - to remove the
9574
<.*?>
< table.height() ) {
<.*?><.*?> * default filtering input box and retain filtering abilities, please use
9575
<.*?>
< table.height() ) {
<.*?><.*?> * {@link DataTable.defaults.dom}.
9576
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
9577
<.*?>
< table.height() ) {
<.*?><.*?> * @default true
9578
<.*?>
< table.height() ) {
<.*?><.*?> *
9579
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Features
9580
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.searching
9581
<.*?>
< table.height() ) {
<.*?><.*?> *
9582
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9583
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function () {
9584
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9585
<.*?>
< table.height() ) {
<.*?><.*?> * "searching": false
9586
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9587
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9588
<.*?>
< table.height() ) {
<.*?><.*?> */
9589
<.*?>
< table.height() ) {
<.*?><.*?> "bFilter": true,
9590
 
9591
 
9592
<.*?>
< table.height() ) {
<.*?><.*?> /**
9593
<.*?>
< table.height() ) {
<.*?><.*?> * Enable or disable the table information display. This shows information
9594
<.*?>
< table.height() ) {
<.*?><.*?> * about the data that is currently visible on the page, including information
9595
<.*?>
< table.height() ) {
<.*?><.*?> * about filtered data if that action is being performed.
9596
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
9597
<.*?>
< table.height() ) {
<.*?><.*?> * @default true
9598
<.*?>
< table.height() ) {
<.*?><.*?> *
9599
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Features
9600
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.info
9601
<.*?>
< table.height() ) {
<.*?><.*?> *
9602
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9603
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function () {
9604
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9605
<.*?>
< table.height() ) {
<.*?><.*?> * "info": false
9606
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9607
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9608
<.*?>
< table.height() ) {
<.*?><.*?> */
9609
<.*?>
< table.height() ) {
<.*?><.*?> "bInfo": true,
9610
 
9611
 
9612
<.*?>
< table.height() ) {
<.*?><.*?> /**
9613
<.*?>
< table.height() ) {
<.*?><.*?> * Enable jQuery UI ThemeRoller support (required as ThemeRoller requires some
9614
<.*?>
< table.height() ) {
<.*?><.*?> * slightly different and additional mark-up from what DataTables has
9615
<.*?>
< table.height() ) {
<.*?><.*?> * traditionally used).
9616
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
9617
<.*?>
< table.height() ) {
<.*?><.*?> * @default false
9618
<.*?>
< table.height() ) {
<.*?><.*?> *
9619
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Features
9620
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.jQueryUI
9621
<.*?>
< table.height() ) {
<.*?><.*?> *
9622
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9623
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
9624
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9625
<.*?>
< table.height() ) {
<.*?><.*?> * "jQueryUI": true
9626
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9627
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9628
<.*?>
< table.height() ) {
<.*?><.*?> */
9629
<.*?>
< table.height() ) {
<.*?><.*?> "bJQueryUI": false,
9630
 
9631
 
9632
<.*?>
< table.height() ) {
<.*?><.*?> /**
9633
<.*?>
< table.height() ) {
<.*?><.*?> * Allows the end user to select the size of a formatted page from a select
9634
<.*?>
< table.height() ) {
<.*?><.*?> * menu (sizes are 10, 25, 50 and 100). Requires pagination (`paginate`).
9635
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
9636
<.*?>
< table.height() ) {
<.*?><.*?> * @default true
9637
<.*?>
< table.height() ) {
<.*?><.*?> *
9638
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Features
9639
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.lengthChange
9640
<.*?>
< table.height() ) {
<.*?><.*?> *
9641
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9642
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function () {
9643
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9644
<.*?>
< table.height() ) {
<.*?><.*?> * "lengthChange": false
9645
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9646
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9647
<.*?>
< table.height() ) {
<.*?><.*?> */
9648
<.*?>
< table.height() ) {
<.*?><.*?> "bLengthChange": true,
9649
 
9650
 
9651
<.*?>
< table.height() ) {
<.*?><.*?> /**
9652
<.*?>
< table.height() ) {
<.*?><.*?> * Enable or disable pagination.
9653
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
9654
<.*?>
< table.height() ) {
<.*?><.*?> * @default true
9655
<.*?>
< table.height() ) {
<.*?><.*?> *
9656
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Features
9657
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.paging
9658
<.*?>
< table.height() ) {
<.*?><.*?> *
9659
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9660
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function () {
9661
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9662
<.*?>
< table.height() ) {
<.*?><.*?> * "paging": false
9663
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9664
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9665
<.*?>
< table.height() ) {
<.*?><.*?> */
9666
<.*?>
< table.height() ) {
<.*?><.*?> "bPaginate": true,
9667
 
9668
 
9669
<.*?>
< table.height() ) {
<.*?><.*?> /**
9670
<.*?>
< table.height() ) {
<.*?><.*?> * Enable or disable the display of a 'processing' indicator when the table is
9671
<.*?>
< table.height() ) {
<.*?><.*?> * being processed (e.g. a sort). This is particularly useful for tables with
9672
<.*?>
< table.height() ) {
<.*?><.*?> * large amounts of data where it can take a noticeable amount of time to sort
9673
<.*?>
< table.height() ) {
<.*?><.*?> * the entries.
9674
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
9675
<.*?>
< table.height() ) {
<.*?><.*?> * @default false
9676
<.*?>
< table.height() ) {
<.*?><.*?> *
9677
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Features
9678
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.processing
9679
<.*?>
< table.height() ) {
<.*?><.*?> *
9680
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9681
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function () {
9682
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9683
<.*?>
< table.height() ) {
<.*?><.*?> * "processing": true
9684
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9685
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9686
<.*?>
< table.height() ) {
<.*?><.*?> */
9687
<.*?>
< table.height() ) {
<.*?><.*?> "bProcessing": false,
9688
 
9689
 
9690
<.*?>
< table.height() ) {
<.*?><.*?> /**
9691
<.*?>
< table.height() ) {
<.*?><.*?> * Retrieve the DataTables object for the given selector. Note that if the
9692
<.*?>
< table.height() ) {
<.*?><.*?> * table has already been initialised, this parameter will cause DataTables
9693
<.*?>
< table.height() ) {
<.*?><.*?> * to simply return the object that has already been set up - it will not take
9694
<.*?>
< table.height() ) {
<.*?><.*?> * account of any changes you might have made to the initialisation object
9695
<.*?>
< table.height() ) {
<.*?><.*?> * passed to DataTables (setting this parameter to true is an acknowledgement
9696
<.*?>
< table.height() ) {
<.*?><.*?> * that you understand this). `destroy` can be used to reinitialise a table if
9697
<.*?>
< table.height() ) {
<.*?><.*?> * you need.
9698
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
9699
<.*?>
< table.height() ) {
<.*?><.*?> * @default false
9700
<.*?>
< table.height() ) {
<.*?><.*?> *
9701
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Options
9702
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.retrieve
9703
<.*?>
< table.height() ) {
<.*?><.*?> *
9704
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9705
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
9706
<.*?>
< table.height() ) {
<.*?><.*?> * initTable();
9707
<.*?>
< table.height() ) {
<.*?><.*?> * tableActions();
9708
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9709
<.*?>
< table.height() ) {
<.*?><.*?> *
9710
<.*?>
< table.height() ) {
<.*?><.*?> * function initTable ()
9711
<.*?>
< table.height() ) {
<.*?><.*?> * {
9712
<.*?>
< table.height() ) {
<.*?><.*?> * return $('#example').dataTable( {
9713
<.*?>
< table.height() ) {
<.*?><.*?> * "scrollY": "200px",
9714
<.*?>
< table.height() ) {
<.*?><.*?> * "paginate": false,
9715
<.*?>
< table.height() ) {
<.*?><.*?> * "retrieve": true
9716
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9717
<.*?>
< table.height() ) {
<.*?><.*?> * }
9718
<.*?>
< table.height() ) {
<.*?><.*?> *
9719
<.*?>
< table.height() ) {
<.*?><.*?> * function tableActions ()
9720
<.*?>
< table.height() ) {
<.*?><.*?> * {
9721
<.*?>
< table.height() ) {
<.*?><.*?> * var table = initTable();
9722
<.*?>
< table.height() ) {
<.*?><.*?> * // perform API operations with oTable
9723
<.*?>
< table.height() ) {
<.*?><.*?> * }
9724
<.*?>
< table.height() ) {
<.*?><.*?> */
9725
<.*?>
< table.height() ) {
<.*?><.*?> "bRetrieve": false,
9726
 
9727
 
9728
<.*?>
< table.height() ) {
<.*?><.*?> /**
9729
<.*?>
< table.height() ) {
<.*?><.*?> * When vertical (y) scrolling is enabled, DataTables will force the height of
9730
<.*?>
< table.height() ) {
<.*?><.*?> * the table's viewport to the given height at all times (useful for layout).
9731
<.*?>
< table.height() ) {
<.*?><.*?> * However, this can look odd when filtering data down to a small data set,
9732
<.*?>
< table.height() ) {
<.*?><.*?> * and the footer is left "floating" further down. This parameter (when
9733
<.*?>
< table.height() ) {
<.*?><.*?> * enabled) will cause DataTables to collapse the table's viewport down when
9734
<.*?>
< table.height() ) {
<.*?><.*?> * the result set will fit within the given Y height.
9735
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
9736
<.*?>
< table.height() ) {
<.*?><.*?> * @default false
9737
<.*?>
< table.height() ) {
<.*?><.*?> *
9738
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Options
9739
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.scrollCollapse
9740
<.*?>
< table.height() ) {
<.*?><.*?> *
9741
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9742
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
9743
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9744
<.*?>
< table.height() ) {
<.*?><.*?> * "scrollY": "200",
9745
<.*?>
< table.height() ) {
<.*?><.*?> * "scrollCollapse": true
9746
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9747
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9748
<.*?>
< table.height() ) {
<.*?><.*?> */
9749
<.*?>
< table.height() ) {
<.*?><.*?> "bScrollCollapse": false,
9750
 
9751
 
9752
<.*?>
< table.height() ) {
<.*?><.*?> /**
9753
<.*?>
< table.height() ) {
<.*?><.*?> * Configure DataTables to use server-side processing. Note that the
9754
<.*?>
< table.height() ) {
<.*?><.*?> * `ajax` parameter must also be given in order to give DataTables a
9755
<.*?>
< table.height() ) {
<.*?><.*?> * source to obtain the required data for each draw.
9756
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
9757
<.*?>
< table.height() ) {
<.*?><.*?> * @default false
9758
<.*?>
< table.height() ) {
<.*?><.*?> *
9759
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Features
9760
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Server-side
9761
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.serverSide
9762
<.*?>
< table.height() ) {
<.*?><.*?> *
9763
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9764
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function () {
9765
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9766
<.*?>
< table.height() ) {
<.*?><.*?> * "serverSide": true,
9767
<.*?>
< table.height() ) {
<.*?><.*?> * "ajax": "xhr.php"
9768
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9769
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9770
<.*?>
< table.height() ) {
<.*?><.*?> */
9771
<.*?>
< table.height() ) {
<.*?><.*?> "bServerSide": false,
9772
 
9773
 
9774
<.*?>
< table.height() ) {
<.*?><.*?> /**
9775
<.*?>
< table.height() ) {
<.*?><.*?> * Enable or disable sorting of columns. Sorting of individual columns can be
9776
<.*?>
< table.height() ) {
<.*?><.*?> * disabled by the `sortable` option for each column.
9777
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
9778
<.*?>
< table.height() ) {
<.*?><.*?> * @default true
9779
<.*?>
< table.height() ) {
<.*?><.*?> *
9780
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Features
9781
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.ordering
9782
<.*?>
< table.height() ) {
<.*?><.*?> *
9783
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9784
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function () {
9785
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9786
<.*?>
< table.height() ) {
<.*?><.*?> * "ordering": false
9787
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9788
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9789
<.*?>
< table.height() ) {
<.*?><.*?> */
9790
<.*?>
< table.height() ) {
<.*?><.*?> "bSort": true,
9791
 
9792
 
9793
<.*?>
< table.height() ) {
<.*?><.*?> /**
9794
<.*?>
< table.height() ) {
<.*?><.*?> * Enable or display DataTables' ability to sort multiple columns at the
9795
<.*?>
< table.height() ) {
<.*?><.*?> * same time (activated by shift-click by the user).
9796
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
9797
<.*?>
< table.height() ) {
<.*?><.*?> * @default true
9798
<.*?>
< table.height() ) {
<.*?><.*?> *
9799
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Options
9800
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.orderMulti
9801
<.*?>
< table.height() ) {
<.*?><.*?> *
9802
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9803
<.*?>
< table.height() ) {
<.*?><.*?> * // Disable multiple column sorting ability
9804
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function () {
9805
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9806
<.*?>
< table.height() ) {
<.*?><.*?> * "orderMulti": false
9807
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9808
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9809
<.*?>
< table.height() ) {
<.*?><.*?> */
9810
<.*?>
< table.height() ) {
<.*?><.*?> "bSortMulti": true,
9811
 
9812
 
9813
<.*?>
< table.height() ) {
<.*?><.*?> /**
9814
<.*?>
< table.height() ) {
<.*?><.*?> * Allows control over whether DataTables should use the top (true) unique
9815
<.*?>
< table.height() ) {
<.*?><.*?> * cell that is found for a single column, or the bottom (false - default).
9816
<.*?>
< table.height() ) {
<.*?><.*?> * This is useful when using complex headers.
9817
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
9818
<.*?>
< table.height() ) {
<.*?><.*?> * @default false
9819
<.*?>
< table.height() ) {
<.*?><.*?> *
9820
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Options
9821
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.orderCellsTop
9822
<.*?>
< table.height() ) {
<.*?><.*?> *
9823
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9824
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
9825
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9826
<.*?>
< table.height() ) {
<.*?><.*?> * "orderCellsTop": true
9827
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9828
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9829
<.*?>
< table.height() ) {
<.*?><.*?> */
9830
<.*?>
< table.height() ) {
<.*?><.*?> "bSortCellsTop": false,
9831
 
9832
 
9833
<.*?>
< table.height() ) {
<.*?><.*?> /**
9834
<.*?>
< table.height() ) {
<.*?><.*?> * Enable or disable the addition of the classes `sorting\_1`, `sorting\_2` and
9835
<.*?>
< table.height() ) {
<.*?><.*?> * `sorting\_3` to the columns which are currently being sorted on. This is
9836
<.*?>
< table.height() ) {
<.*?><.*?> * presented as a feature switch as it can increase processing time (while
9837
<.*?>
< table.height() ) {
<.*?><.*?> * classes are removed and added) so for large data sets you might want to
9838
<.*?>
< table.height() ) {
<.*?><.*?> * turn this off.
9839
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
9840
<.*?>
< table.height() ) {
<.*?><.*?> * @default true
9841
<.*?>
< table.height() ) {
<.*?><.*?> *
9842
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Features
9843
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.orderClasses
9844
<.*?>
< table.height() ) {
<.*?><.*?> *
9845
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9846
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function () {
9847
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9848
<.*?>
< table.height() ) {
<.*?><.*?> * "orderClasses": false
9849
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9850
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9851
<.*?>
< table.height() ) {
<.*?><.*?> */
9852
<.*?>
< table.height() ) {
<.*?><.*?> "bSortClasses": true,
9853
 
9854
 
9855
<.*?>
< table.height() ) {
<.*?><.*?> /**
9856
<.*?>
< table.height() ) {
<.*?><.*?> * Enable or disable state saving. When enabled HTML5 `localStorage` will be
9857
<.*?>
< table.height() ) {
<.*?><.*?> * used to save table display information such as pagination information,
9858
<.*?>
< table.height() ) {
<.*?><.*?> * display length, filtering and sorting. As such when the end user reloads
9859
<.*?>
< table.height() ) {
<.*?><.*?> * the page the display display will match what thy had previously set up.
9860
<.*?>
< table.height() ) {
<.*?><.*?> *
9861
<.*?>
< table.height() ) {
<.*?><.*?> * Due to the use of `localStorage` the default state saving is not supported
9862
<.*?>
< table.height() ) {
<.*?><.*?> * in IE6 or 7. If state saving is required in those browsers, use
9863
<.*?>
< table.height() ) {
<.*?><.*?> * `stateSaveCallback` to provide a storage solution such as cookies.
9864
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
9865
<.*?>
< table.height() ) {
<.*?><.*?> * @default false
9866
<.*?>
< table.height() ) {
<.*?><.*?> *
9867
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Features
9868
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.stateSave
9869
<.*?>
< table.height() ) {
<.*?><.*?> *
9870
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9871
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function () {
9872
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9873
<.*?>
< table.height() ) {
<.*?><.*?> * "stateSave": true
9874
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9875
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9876
<.*?>
< table.height() ) {
<.*?><.*?> */
9877
<.*?>
< table.height() ) {
<.*?><.*?> "bStateSave": false,
9878
 
9879
 
9880
<.*?>
< table.height() ) {
<.*?><.*?> /**
9881
<.*?>
< table.height() ) {
<.*?><.*?> * This function is called when a TR element is created (and all TD child
9882
<.*?>
< table.height() ) {
<.*?><.*?> * elements have been inserted), or registered if using a DOM source, allowing
9883
<.*?>
< table.height() ) {
<.*?><.*?> * manipulation of the TR element (adding classes etc).
9884
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
9885
<.*?>
< table.height() ) {
<.*?><.*?> * @param {node} row "TR" element for the current row
9886
<.*?>
< table.height() ) {
<.*?><.*?> * @param {array} data Raw data array for this row
9887
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} dataIndex The index of this row in the internal aoData array
9888
<.*?>
< table.height() ) {
<.*?><.*?> *
9889
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Callbacks
9890
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.createdRow
9891
<.*?>
< table.height() ) {
<.*?><.*?> *
9892
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9893
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
9894
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9895
<.*?>
< table.height() ) {
<.*?><.*?> * "createdRow": function( row, data, dataIndex ) {
9896
<.*?>
< table.height() ) {
<.*?><.*?> * // Bold the grade for all 'A' grade browsers
9897
<.*?>
< table.height() ) {
<.*?><.*?> * if ( data[4] == "A" )
9898
<.*?>
< table.height() ) {
<.*?><.*?> * {
9899
<.*?>
< table.height() ) {
<.*?><.*?> * $('td:eq(4)', row).html( '<b>A</b>' );
9900
<.*?>
< table.height() ) {
<.*?><.*?> * }
9901
<.*?>
< table.height() ) {
<.*?><.*?> * }
9902
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9903
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9904
<.*?>
< table.height() ) {
<.*?><.*?> */
9905
<.*?>
< table.height() ) {
<.*?><.*?> "fnCreatedRow": null,
9906
 
9907
 
9908
<.*?>
< table.height() ) {
<.*?><.*?> /**
9909
<.*?>
< table.height() ) {
<.*?><.*?> * This function is called on every 'draw' event, and allows you to
9910
<.*?>
< table.height() ) {
<.*?><.*?> * dynamically modify any aspect you want about the created DOM.
9911
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
9912
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} settings DataTables settings object
9913
<.*?>
< table.height() ) {
<.*?><.*?> *
9914
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Callbacks
9915
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.drawCallback
9916
<.*?>
< table.height() ) {
<.*?><.*?> *
9917
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9918
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
9919
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9920
<.*?>
< table.height() ) {
<.*?><.*?> * "drawCallback": function( settings ) {
9921
<.*?>
< table.height() ) {
<.*?><.*?> * alert( 'DataTables has redrawn the table' );
9922
<.*?>
< table.height() ) {
<.*?><.*?> * }
9923
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9924
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9925
<.*?>
< table.height() ) {
<.*?><.*?> */
9926
<.*?>
< table.height() ) {
<.*?><.*?> "fnDrawCallback": null,
9927
 
9928
 
9929
<.*?>
< table.height() ) {
<.*?><.*?> /**
9930
<.*?>
< table.height() ) {
<.*?><.*?> * Identical to fnHeaderCallback() but for the table footer this function
9931
<.*?>
< table.height() ) {
<.*?><.*?> * allows you to modify the table footer on every 'draw' event.
9932
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
9933
<.*?>
< table.height() ) {
<.*?><.*?> * @param {node} foot "TR" element for the footer
9934
<.*?>
< table.height() ) {
<.*?><.*?> * @param {array} data Full table data (as derived from the original HTML)
9935
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} start Index for the current display starting point in the
9936
<.*?>
< table.height() ) {
<.*?><.*?> * display array
9937
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} end Index for the current display ending point in the
9938
<.*?>
< table.height() ) {
<.*?><.*?> * display array
9939
<.*?>
< table.height() ) {
<.*?><.*?> * @param {array int} display Index array to translate the visual position
9940
<.*?>
< table.height() ) {
<.*?><.*?> * to the full data array
9941
<.*?>
< table.height() ) {
<.*?><.*?> *
9942
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Callbacks
9943
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.footerCallback
9944
<.*?>
< table.height() ) {
<.*?><.*?> *
9945
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9946
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
9947
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9948
<.*?>
< table.height() ) {
<.*?><.*?> * "footerCallback": function( tfoot, data, start, end, display ) {
9949
<.*?>
< table.height() ) {
<.*?><.*?> * tfoot.getElementsByTagName('th')[0].innerHTML = "Starting index is "+start;
9950
<.*?>
< table.height() ) {
<.*?><.*?> * }
9951
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9952
<.*?>
< table.height() ) {
<.*?><.*?> * } )
9953
<.*?>
< table.height() ) {
<.*?><.*?> */
9954
<.*?>
< table.height() ) {
<.*?><.*?> "fnFooterCallback": null,
9955
 
9956
 
9957
<.*?>
< table.height() ) {
<.*?><.*?> /**
9958
<.*?>
< table.height() ) {
<.*?><.*?> * When rendering large numbers in the information element for the table
9959
<.*?>
< table.height() ) {
<.*?><.*?> * (i.e. "Showing 1 to 10 of 57 entries") DataTables will render large numbers
9960
<.*?>
< table.height() ) {
<.*?><.*?> * to have a comma separator for the 'thousands' units (e.g. 1 million is
9961
<.*?>
< table.height() ) {
<.*?><.*?> * rendered as "1,000,000") to help readability for the end user. This
9962
<.*?>
< table.height() ) {
<.*?><.*?> * function will override the default method DataTables uses.
9963
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
9964
<.*?>
< table.height() ) {
<.*?><.*?> * @member
9965
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} toFormat number to be formatted
9966
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {string} formatted string for DataTables to show the number
9967
<.*?>
< table.height() ) {
<.*?><.*?> *
9968
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Callbacks
9969
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.formatNumber
9970
<.*?>
< table.height() ) {
<.*?><.*?> *
9971
<.*?>
< table.height() ) {
<.*?><.*?> * @example
9972
<.*?>
< table.height() ) {
<.*?><.*?> * // Format a number using a single quote for the separator (note that
9973
<.*?>
< table.height() ) {
<.*?><.*?> * // this can also be done with the language.thousands option)
9974
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
9975
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
9976
<.*?>
< table.height() ) {
<.*?><.*?> * "formatNumber": function ( toFormat ) {
9977
<.*?>
< table.height() ) {
<.*?><.*?> * return toFormat.toString().replace(
9978
<.*?>
< table.height() ) {
<.*?><.*?> * /\B(?=(\d{3})+(?!\d))/g, "'"
9979
<.*?>
< table.height() ) {
<.*?><.*?> * );
9980
<.*?>
< table.height() ) {
<.*?><.*?> * };
9981
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9982
<.*?>
< table.height() ) {
<.*?><.*?> * } );
9983
<.*?>
< table.height() ) {
<.*?><.*?> */
9984
<.*?>
< table.height() ) {
<.*?><.*?> "fnFormatNumber": function ( toFormat ) {
9985
<.*?>
< table.height() ) {
<.*?><.*?> return toFormat.toString().replace(
9986
<.*?>
< table.height() ) {
<.*?><.*?> /\B(?=(\d{3})+(?!\d))/g,
9987
<.*?>
< table.height() ) {
<.*?><.*?> this.oLanguage.sThousands
9988
<.*?>
< table.height() ) {
<.*?><.*?> );
9989
<.*?>
< table.height() ) {
<.*?><.*?> },
9990
 
9991
 
9992
<.*?>
< table.height() ) {
<.*?><.*?> /**
9993
<.*?>
< table.height() ) {
<.*?><.*?> * This function is called on every 'draw' event, and allows you to
9994
<.*?>
< table.height() ) {
<.*?><.*?> * dynamically modify the header row. This can be used to calculate and
9995
<.*?>
< table.height() ) {
<.*?><.*?> * display useful information about the table.
9996
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
9997
<.*?>
< table.height() ) {
<.*?><.*?> * @param {node} head "TR" element for the header
9998
<.*?>
< table.height() ) {
<.*?><.*?> * @param {array} data Full table data (as derived from the original HTML)
9999
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} start Index for the current display starting point in the
10000
<.*?>
< table.height() ) {
<.*?><.*?> * display array
10001
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} end Index for the current display ending point in the
10002
<.*?>
< table.height() ) {
<.*?><.*?> * display array
10003
<.*?>
< table.height() ) {
<.*?><.*?> * @param {array int} display Index array to translate the visual position
10004
<.*?>
< table.height() ) {
<.*?><.*?> * to the full data array
10005
<.*?>
< table.height() ) {
<.*?><.*?> *
10006
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Callbacks
10007
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.headerCallback
10008
<.*?>
< table.height() ) {
<.*?><.*?> *
10009
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10010
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10011
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10012
<.*?>
< table.height() ) {
<.*?><.*?> * "fheaderCallback": function( head, data, start, end, display ) {
10013
<.*?>
< table.height() ) {
<.*?><.*?> * head.getElementsByTagName('th')[0].innerHTML = "Displaying "+(end-start)+" records";
10014
<.*?>
< table.height() ) {
<.*?><.*?> * }
10015
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10016
<.*?>
< table.height() ) {
<.*?><.*?> * } )
10017
<.*?>
< table.height() ) {
<.*?><.*?> */
10018
<.*?>
< table.height() ) {
<.*?><.*?> "fnHeaderCallback": null,
10019
 
10020
 
10021
<.*?>
< table.height() ) {
<.*?><.*?> /**
10022
<.*?>
< table.height() ) {
<.*?><.*?> * The information element can be used to convey information about the current
10023
<.*?>
< table.height() ) {
<.*?><.*?> * state of the table. Although the internationalisation options presented by
10024
<.*?>
< table.height() ) {
<.*?><.*?> * DataTables are quite capable of dealing with most customisations, there may
10025
<.*?>
< table.height() ) {
<.*?><.*?> * be times where you wish to customise the string further. This callback
10026
<.*?>
< table.height() ) {
<.*?><.*?> * allows you to do exactly that.
10027
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
10028
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} oSettings DataTables settings object
10029
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} start Starting position in data for the draw
10030
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} end End position in data for the draw
10031
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} max Total number of rows in the table (regardless of
10032
<.*?>
< table.height() ) {
<.*?><.*?> * filtering)
10033
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} total Total number of rows in the data set, after filtering
10034
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string} pre The string that DataTables has formatted using it's
10035
<.*?>
< table.height() ) {
<.*?><.*?> * own rules
10036
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {string} The string to be displayed in the information element.
10037
<.*?>
< table.height() ) {
<.*?><.*?> *
10038
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Callbacks
10039
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.infoCallback
10040
<.*?>
< table.height() ) {
<.*?><.*?> *
10041
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10042
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10043
<.*?>
< table.height() ) {
<.*?><.*?> * "infoCallback": function( settings, start, end, max, total, pre ) {
10044
<.*?>
< table.height() ) {
<.*?><.*?> * return start +" to "+ end;
10045
<.*?>
< table.height() ) {
<.*?><.*?> * }
10046
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10047
<.*?>
< table.height() ) {
<.*?><.*?> */
10048
<.*?>
< table.height() ) {
<.*?><.*?> "fnInfoCallback": null,
10049
 
10050
 
10051
<.*?>
< table.height() ) {
<.*?><.*?> /**
10052
<.*?>
< table.height() ) {
<.*?><.*?> * Called when the table has been initialised. Normally DataTables will
10053
<.*?>
< table.height() ) {
<.*?><.*?> * initialise sequentially and there will be no need for this function,
10054
<.*?>
< table.height() ) {
<.*?><.*?> * however, this does not hold true when using external language information
10055
<.*?>
< table.height() ) {
<.*?><.*?> * since that is obtained using an async XHR call.
10056
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
10057
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} settings DataTables settings object
10058
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} json The JSON object request from the server - only
10059
<.*?>
< table.height() ) {
<.*?><.*?> * present if client-side Ajax sourced data is used
10060
<.*?>
< table.height() ) {
<.*?><.*?> *
10061
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Callbacks
10062
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.initComplete
10063
<.*?>
< table.height() ) {
<.*?><.*?> *
10064
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10065
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10066
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10067
<.*?>
< table.height() ) {
<.*?><.*?> * "initComplete": function(settings, json) {
10068
<.*?>
< table.height() ) {
<.*?><.*?> * alert( 'DataTables has finished its initialisation.' );
10069
<.*?>
< table.height() ) {
<.*?><.*?> * }
10070
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10071
<.*?>
< table.height() ) {
<.*?><.*?> * } )
10072
<.*?>
< table.height() ) {
<.*?><.*?> */
10073
<.*?>
< table.height() ) {
<.*?><.*?> "fnInitComplete": null,
10074
 
10075
 
10076
<.*?>
< table.height() ) {
<.*?><.*?> /**
10077
<.*?>
< table.height() ) {
<.*?><.*?> * Called at the very start of each table draw and can be used to cancel the
10078
<.*?>
< table.height() ) {
<.*?><.*?> * draw by returning false, any other return (including undefined) results in
10079
<.*?>
< table.height() ) {
<.*?><.*?> * the full draw occurring).
10080
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
10081
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} settings DataTables settings object
10082
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {boolean} False will cancel the draw, anything else (including no
10083
<.*?>
< table.height() ) {
<.*?><.*?> * return) will allow it to complete.
10084
<.*?>
< table.height() ) {
<.*?><.*?> *
10085
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Callbacks
10086
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.preDrawCallback
10087
<.*?>
< table.height() ) {
<.*?><.*?> *
10088
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10089
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10090
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10091
<.*?>
< table.height() ) {
<.*?><.*?> * "preDrawCallback": function( settings ) {
10092
<.*?>
< table.height() ) {
<.*?><.*?> * if ( $('#test').val() == 1 ) {
10093
<.*?>
< table.height() ) {
<.*?><.*?> * return false;
10094
<.*?>
< table.height() ) {
<.*?><.*?> * }
10095
<.*?>
< table.height() ) {
<.*?><.*?> * }
10096
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10097
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10098
<.*?>
< table.height() ) {
<.*?><.*?> */
10099
<.*?>
< table.height() ) {
<.*?><.*?> "fnPreDrawCallback": null,
10100
 
10101
 
10102
<.*?>
< table.height() ) {
<.*?><.*?> /**
10103
<.*?>
< table.height() ) {
<.*?><.*?> * This function allows you to 'post process' each row after it have been
10104
<.*?>
< table.height() ) {
<.*?><.*?> * generated for each table draw, but before it is rendered on screen. This
10105
<.*?>
< table.height() ) {
<.*?><.*?> * function might be used for setting the row class name etc.
10106
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
10107
<.*?>
< table.height() ) {
<.*?><.*?> * @param {node} row "TR" element for the current row
10108
<.*?>
< table.height() ) {
<.*?><.*?> * @param {array} data Raw data array for this row
10109
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} displayIndex The display index for the current table draw
10110
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} displayIndexFull The index of the data in the full list of
10111
<.*?>
< table.height() ) {
<.*?><.*?> * rows (after filtering)
10112
<.*?>
< table.height() ) {
<.*?><.*?> *
10113
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Callbacks
10114
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.rowCallback
10115
<.*?>
< table.height() ) {
<.*?><.*?> *
10116
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10117
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10118
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10119
<.*?>
< table.height() ) {
<.*?><.*?> * "rowCallback": function( row, data, displayIndex, displayIndexFull ) {
10120
<.*?>
< table.height() ) {
<.*?><.*?> * // Bold the grade for all 'A' grade browsers
10121
<.*?>
< table.height() ) {
<.*?><.*?> * if ( data[4] == "A" ) {
10122
<.*?>
< table.height() ) {
<.*?><.*?> * $('td:eq(4)', row).html( '<b>A</b>' );
10123
<.*?>
< table.height() ) {
<.*?><.*?> * }
10124
<.*?>
< table.height() ) {
<.*?><.*?> * }
10125
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10126
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10127
<.*?>
< table.height() ) {
<.*?><.*?> */
10128
<.*?>
< table.height() ) {
<.*?><.*?> "fnRowCallback": null,
10129
 
10130
 
10131
<.*?>
< table.height() ) {
<.*?><.*?> /**
10132
<.*?>
< table.height() ) {
<.*?><.*?> * __Deprecated__ The functionality provided by this parameter has now been
10133
<.*?>
< table.height() ) {
<.*?><.*?> * superseded by that provided through `ajax`, which should be used instead.
10134
<.*?>
< table.height() ) {
<.*?><.*?> *
10135
<.*?>
< table.height() ) {
<.*?><.*?> * This parameter allows you to override the default function which obtains
10136
<.*?>
< table.height() ) {
<.*?><.*?> * the data from the server so something more suitable for your application.
10137
<.*?>
< table.height() ) {
<.*?><.*?> * For example you could use POST data, or pull information from a Gears or
10138
<.*?>
< table.height() ) {
<.*?><.*?> * AIR database.
10139
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
10140
<.*?>
< table.height() ) {
<.*?><.*?> * @member
10141
<.*?>
< table.height() ) {
<.*?><.*?> * @param {string} source HTTP source to obtain the data from (`ajax`)
10142
<.*?>
< table.height() ) {
<.*?><.*?> * @param {array} data A key/value pair object containing the data to send
10143
<.*?>
< table.height() ) {
<.*?><.*?> * to the server
10144
<.*?>
< table.height() ) {
<.*?><.*?> * @param {function} callback to be called on completion of the data get
10145
<.*?>
< table.height() ) {
<.*?><.*?> * process that will draw the data on the page.
10146
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} settings DataTables settings object
10147
<.*?>
< table.height() ) {
<.*?><.*?> *
10148
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Callbacks
10149
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Server-side
10150
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.serverData
10151
<.*?>
< table.height() ) {
<.*?><.*?> *
10152
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated 1.10. Please use `ajax` for this functionality now.
10153
<.*?>
< table.height() ) {
<.*?><.*?> */
10154
<.*?>
< table.height() ) {
<.*?><.*?> "fnServerData": null,
10155
 
10156
 
10157
<.*?>
< table.height() ) {
<.*?><.*?> /**
10158
<.*?>
< table.height() ) {
<.*?><.*?> * __Deprecated__ The functionality provided by this parameter has now been
10159
<.*?>
< table.height() ) {
<.*?><.*?> * superseded by that provided through `ajax`, which should be used instead.
10160
<.*?>
< table.height() ) {
<.*?><.*?> *
10161
<.*?>
< table.height() ) {
<.*?><.*?> * It is often useful to send extra data to the server when making an Ajax
10162
<.*?>
< table.height() ) {
<.*?><.*?> * request - for example custom filtering information, and this callback
10163
<.*?>
< table.height() ) {
<.*?><.*?> * function makes it trivial to send extra information to the server. The
10164
<.*?>
< table.height() ) {
<.*?><.*?> * passed in parameter is the data set that has been constructed by
10165
<.*?>
< table.height() ) {
<.*?><.*?> * DataTables, and you can add to this or modify it as you require.
10166
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
10167
<.*?>
< table.height() ) {
<.*?><.*?> * @param {array} data Data array (array of objects which are name/value
10168
<.*?>
< table.height() ) {
<.*?><.*?> * pairs) that has been constructed by DataTables and will be sent to the
10169
<.*?>
< table.height() ) {
<.*?><.*?> * server. In the case of Ajax sourced data with server-side processing
10170
<.*?>
< table.height() ) {
<.*?><.*?> * this will be an empty array, for server-side processing there will be a
10171
<.*?>
< table.height() ) {
<.*?><.*?> * significant number of parameters!
10172
<.*?>
< table.height() ) {
<.*?><.*?> * @returns {undefined} Ensure that you modify the data array passed in,
10173
<.*?>
< table.height() ) {
<.*?><.*?> * as this is passed by reference.
10174
<.*?>
< table.height() ) {
<.*?><.*?> *
10175
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Callbacks
10176
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Server-side
10177
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.serverParams
10178
<.*?>
< table.height() ) {
<.*?><.*?> *
10179
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated 1.10. Please use `ajax` for this functionality now.
10180
<.*?>
< table.height() ) {
<.*?><.*?> */
10181
<.*?>
< table.height() ) {
<.*?><.*?> "fnServerParams": null,
10182
 
10183
 
10184
<.*?>
< table.height() ) {
<.*?><.*?> /**
10185
<.*?>
< table.height() ) {
<.*?><.*?> * Load the table state. With this function you can define from where, and how, the
10186
<.*?>
< table.height() ) {
<.*?><.*?> * state of a table is loaded. By default DataTables will load from `localStorage`
10187
<.*?>
< table.height() ) {
<.*?><.*?> * but you might wish to use a server-side database or cookies.
10188
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
10189
<.*?>
< table.height() ) {
<.*?><.*?> * @member
10190
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} settings DataTables settings object
10191
<.*?>
< table.height() ) {
<.*?><.*?> * @return {object} The DataTables state object to be loaded
10192
<.*?>
< table.height() ) {
<.*?><.*?> *
10193
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Callbacks
10194
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.stateLoadCallback
10195
<.*?>
< table.height() ) {
<.*?><.*?> *
10196
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10197
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10198
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10199
<.*?>
< table.height() ) {
<.*?><.*?> * "stateSave": true,
10200
<.*?>
< table.height() ) {
<.*?><.*?> * "stateLoadCallback": function (settings) {
10201
<.*?>
< table.height() ) {
<.*?><.*?> * var o;
10202
<.*?>
< table.height() ) {
<.*?><.*?> *
10203
<.*?>
< table.height() ) {
<.*?><.*?> * // Send an Ajax request to the server to get the data. Note that
10204
<.*?>
< table.height() ) {
<.*?><.*?> * // this is a synchronous request.
10205
<.*?>
< table.height() ) {
<.*?><.*?> * $.ajax( {
10206
<.*?>
< table.height() ) {
<.*?><.*?> * "url": "/state_load",
10207
<.*?>
< table.height() ) {
<.*?><.*?> * "async": false,
10208
<.*?>
< table.height() ) {
<.*?><.*?> * "dataType": "json",
10209
<.*?>
< table.height() ) {
<.*?><.*?> * "success": function (json) {
10210
<.*?>
< table.height() ) {
<.*?><.*?> * o = json;
10211
<.*?>
< table.height() ) {
<.*?><.*?> * }
10212
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10213
<.*?>
< table.height() ) {
<.*?><.*?> *
10214
<.*?>
< table.height() ) {
<.*?><.*?> * return o;
10215
<.*?>
< table.height() ) {
<.*?><.*?> * }
10216
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10217
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10218
<.*?>
< table.height() ) {
<.*?><.*?> */
10219
<.*?>
< table.height() ) {
<.*?><.*?> "fnStateLoadCallback": function ( settings ) {
10220
<.*?>
< table.height() ) {
<.*?><.*?> try {
10221
<.*?>
< table.height() ) {
<.*?><.*?> return JSON.parse(
10222
<.*?>
< table.height() ) {
<.*?><.*?> (settings.iStateDuration === -1 ? sessionStorage : localStorage).getItem(
10223
<.*?>
< table.height() ) {
<.*?><.*?> 'DataTables_'+settings.sInstance+'_'+location.pathname
10224
<.*?>
< table.height() ) {
<.*?><.*?> )
10225
<.*?>
< table.height() ) {
<.*?><.*?> );
10226
<.*?>
< table.height() ) {
<.*?><.*?> } catch (e) {}
10227
<.*?>
< table.height() ) {
<.*?><.*?> },
10228
 
10229
 
10230
<.*?>
< table.height() ) {
<.*?><.*?> /**
10231
<.*?>
< table.height() ) {
<.*?><.*?> * Callback which allows modification of the saved state prior to loading that state.
10232
<.*?>
< table.height() ) {
<.*?><.*?> * This callback is called when the table is loading state from the stored data, but
10233
<.*?>
< table.height() ) {
<.*?><.*?> * prior to the settings object being modified by the saved state. Note that for
10234
<.*?>
< table.height() ) {
<.*?><.*?> * plug-in authors, you should use the `stateLoadParams` event to load parameters for
10235
<.*?>
< table.height() ) {
<.*?><.*?> * a plug-in.
10236
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
10237
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} settings DataTables settings object
10238
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} data The state object that is to be loaded
10239
<.*?>
< table.height() ) {
<.*?><.*?> *
10240
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Callbacks
10241
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.stateLoadParams
10242
<.*?>
< table.height() ) {
<.*?><.*?> *
10243
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10244
<.*?>
< table.height() ) {
<.*?><.*?> * // Remove a saved filter, so filtering is never loaded
10245
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10246
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10247
<.*?>
< table.height() ) {
<.*?><.*?> * "stateSave": true,
10248
<.*?>
< table.height() ) {
<.*?><.*?> * "stateLoadParams": function (settings, data) {
10249
<.*?>
< table.height() ) {
<.*?><.*?> * data.oSearch.sSearch = "";
10250
<.*?>
< table.height() ) {
<.*?><.*?> * }
10251
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10252
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10253
<.*?>
< table.height() ) {
<.*?><.*?> *
10254
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10255
<.*?>
< table.height() ) {
<.*?><.*?> * // Disallow state loading by returning false
10256
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10257
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10258
<.*?>
< table.height() ) {
<.*?><.*?> * "stateSave": true,
10259
<.*?>
< table.height() ) {
<.*?><.*?> * "stateLoadParams": function (settings, data) {
10260
<.*?>
< table.height() ) {
<.*?><.*?> * return false;
10261
<.*?>
< table.height() ) {
<.*?><.*?> * }
10262
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10263
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10264
<.*?>
< table.height() ) {
<.*?><.*?> */
10265
<.*?>
< table.height() ) {
<.*?><.*?> "fnStateLoadParams": null,
10266
 
10267
 
10268
<.*?>
< table.height() ) {
<.*?><.*?> /**
10269
<.*?>
< table.height() ) {
<.*?><.*?> * Callback that is called when the state has been loaded from the state saving method
10270
<.*?>
< table.height() ) {
<.*?><.*?> * and the DataTables settings object has been modified as a result of the loaded state.
10271
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
10272
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} settings DataTables settings object
10273
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} data The state object that was loaded
10274
<.*?>
< table.height() ) {
<.*?><.*?> *
10275
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Callbacks
10276
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.stateLoaded
10277
<.*?>
< table.height() ) {
<.*?><.*?> *
10278
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10279
<.*?>
< table.height() ) {
<.*?><.*?> * // Show an alert with the filtering value that was saved
10280
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10281
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10282
<.*?>
< table.height() ) {
<.*?><.*?> * "stateSave": true,
10283
<.*?>
< table.height() ) {
<.*?><.*?> * "stateLoaded": function (settings, data) {
10284
<.*?>
< table.height() ) {
<.*?><.*?> * alert( 'Saved filter was: '+data.oSearch.sSearch );
10285
<.*?>
< table.height() ) {
<.*?><.*?> * }
10286
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10287
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10288
<.*?>
< table.height() ) {
<.*?><.*?> */
10289
<.*?>
< table.height() ) {
<.*?><.*?> "fnStateLoaded": null,
10290
 
10291
 
10292
<.*?>
< table.height() ) {
<.*?><.*?> /**
10293
<.*?>
< table.height() ) {
<.*?><.*?> * Save the table state. This function allows you to define where and how the state
10294
<.*?>
< table.height() ) {
<.*?><.*?> * information for the table is stored By default DataTables will use `localStorage`
10295
<.*?>
< table.height() ) {
<.*?><.*?> * but you might wish to use a server-side database or cookies.
10296
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
10297
<.*?>
< table.height() ) {
<.*?><.*?> * @member
10298
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} settings DataTables settings object
10299
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} data The state object to be saved
10300
<.*?>
< table.height() ) {
<.*?><.*?> *
10301
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Callbacks
10302
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.stateSaveCallback
10303
<.*?>
< table.height() ) {
<.*?><.*?> *
10304
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10305
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10306
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10307
<.*?>
< table.height() ) {
<.*?><.*?> * "stateSave": true,
10308
<.*?>
< table.height() ) {
<.*?><.*?> * "stateSaveCallback": function (settings, data) {
10309
<.*?>
< table.height() ) {
<.*?><.*?> * // Send an Ajax request to the server with the state object
10310
<.*?>
< table.height() ) {
<.*?><.*?> * $.ajax( {
10311
<.*?>
< table.height() ) {
<.*?><.*?> * "url": "/state_save",
10312
<.*?>
< table.height() ) {
<.*?><.*?> * "data": data,
10313
<.*?>
< table.height() ) {
<.*?><.*?> * "dataType": "json",
10314
<.*?>
< table.height() ) {
<.*?><.*?> * "method": "POST"
10315
<.*?>
< table.height() ) {
<.*?><.*?> * "success": function () {}
10316
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10317
<.*?>
< table.height() ) {
<.*?><.*?> * }
10318
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10319
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10320
<.*?>
< table.height() ) {
<.*?><.*?> */
10321
<.*?>
< table.height() ) {
<.*?><.*?> "fnStateSaveCallback": function ( settings, data ) {
10322
<.*?>
< table.height() ) {
<.*?><.*?> try {
10323
<.*?>
< table.height() ) {
<.*?><.*?> (settings.iStateDuration === -1 ? sessionStorage : localStorage).setItem(
10324
<.*?>
< table.height() ) {
<.*?><.*?> 'DataTables_'+settings.sInstance+'_'+location.pathname,
10325
<.*?>
< table.height() ) {
<.*?><.*?> JSON.stringify( data )
10326
<.*?>
< table.height() ) {
<.*?><.*?> );
10327
<.*?>
< table.height() ) {
<.*?><.*?> } catch (e) {}
10328
<.*?>
< table.height() ) {
<.*?><.*?> },
10329
 
10330
 
10331
<.*?>
< table.height() ) {
<.*?><.*?> /**
10332
<.*?>
< table.height() ) {
<.*?><.*?> * Callback which allows modification of the state to be saved. Called when the table
10333
<.*?>
< table.height() ) {
<.*?><.*?> * has changed state a new state save is required. This method allows modification of
10334
<.*?>
< table.height() ) {
<.*?><.*?> * the state saving object prior to actually doing the save, including addition or
10335
<.*?>
< table.height() ) {
<.*?><.*?> * other state properties or modification. Note that for plug-in authors, you should
10336
<.*?>
< table.height() ) {
<.*?><.*?> * use the `stateSaveParams` event to save parameters for a plug-in.
10337
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
10338
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} settings DataTables settings object
10339
<.*?>
< table.height() ) {
<.*?><.*?> * @param {object} data The state object to be saved
10340
<.*?>
< table.height() ) {
<.*?><.*?> *
10341
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Callbacks
10342
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.stateSaveParams
10343
<.*?>
< table.height() ) {
<.*?><.*?> *
10344
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10345
<.*?>
< table.height() ) {
<.*?><.*?> * // Remove a saved filter, so filtering is never saved
10346
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10347
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10348
<.*?>
< table.height() ) {
<.*?><.*?> * "stateSave": true,
10349
<.*?>
< table.height() ) {
<.*?><.*?> * "stateSaveParams": function (settings, data) {
10350
<.*?>
< table.height() ) {
<.*?><.*?> * data.oSearch.sSearch = "";
10351
<.*?>
< table.height() ) {
<.*?><.*?> * }
10352
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10353
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10354
<.*?>
< table.height() ) {
<.*?><.*?> */
10355
<.*?>
< table.height() ) {
<.*?><.*?> "fnStateSaveParams": null,
10356
 
10357
 
10358
<.*?>
< table.height() ) {
<.*?><.*?> /**
10359
<.*?>
< table.height() ) {
<.*?><.*?> * Duration for which the saved state information is considered valid. After this period
10360
<.*?>
< table.height() ) {
<.*?><.*?> * has elapsed the state will be returned to the default.
10361
<.*?>
< table.height() ) {
<.*?><.*?> * Value is given in seconds.
10362
<.*?>
< table.height() ) {
<.*?><.*?> * @type int
10363
<.*?>
< table.height() ) {
<.*?><.*?> * @default 7200 <i>(2 hours)</i>
10364
<.*?>
< table.height() ) {
<.*?><.*?> *
10365
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Options
10366
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.stateDuration
10367
<.*?>
< table.height() ) {
<.*?><.*?> *
10368
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10369
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10370
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10371
<.*?>
< table.height() ) {
<.*?><.*?> * "stateDuration": 60*60*24; // 1 day
10372
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10373
<.*?>
< table.height() ) {
<.*?><.*?> * } )
10374
<.*?>
< table.height() ) {
<.*?><.*?> */
10375
<.*?>
< table.height() ) {
<.*?><.*?> "iStateDuration": 7200,
10376
 
10377
 
10378
<.*?>
< table.height() ) {
<.*?><.*?> /**
10379
<.*?>
< table.height() ) {
<.*?><.*?> * When enabled DataTables will not make a request to the server for the first
10380
<.*?>
< table.height() ) {
<.*?><.*?> * page draw - rather it will use the data already on the page (no sorting etc
10381
<.*?>
< table.height() ) {
<.*?><.*?> * will be applied to it), thus saving on an XHR at load time. `deferLoading`
10382
<.*?>
< table.height() ) {
<.*?><.*?> * is used to indicate that deferred loading is required, but it is also used
10383
<.*?>
< table.height() ) {
<.*?><.*?> * to tell DataTables how many records there are in the full table (allowing
10384
<.*?>
< table.height() ) {
<.*?><.*?> * the information element and pagination to be displayed correctly). In the case
10385
<.*?>
< table.height() ) {
<.*?><.*?> * where a filtering is applied to the table on initial load, this can be
10386
<.*?>
< table.height() ) {
<.*?><.*?> * indicated by giving the parameter as an array, where the first element is
10387
<.*?>
< table.height() ) {
<.*?><.*?> * the number of records available after filtering and the second element is the
10388
<.*?>
< table.height() ) {
<.*?><.*?> * number of records without filtering (allowing the table information element
10389
<.*?>
< table.height() ) {
<.*?><.*?> * to be shown correctly).
10390
<.*?>
< table.height() ) {
<.*?><.*?> * @type int | array
10391
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
10392
<.*?>
< table.height() ) {
<.*?><.*?> *
10393
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Options
10394
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.deferLoading
10395
<.*?>
< table.height() ) {
<.*?><.*?> *
10396
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10397
<.*?>
< table.height() ) {
<.*?><.*?> * // 57 records available in the table, no filtering applied
10398
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10399
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10400
<.*?>
< table.height() ) {
<.*?><.*?> * "serverSide": true,
10401
<.*?>
< table.height() ) {
<.*?><.*?> * "ajax": "scripts/server_processing.php",
10402
<.*?>
< table.height() ) {
<.*?><.*?> * "deferLoading": 57
10403
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10404
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10405
<.*?>
< table.height() ) {
<.*?><.*?> *
10406
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10407
<.*?>
< table.height() ) {
<.*?><.*?> * // 57 records after filtering, 100 without filtering (an initial filter applied)
10408
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10409
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10410
<.*?>
< table.height() ) {
<.*?><.*?> * "serverSide": true,
10411
<.*?>
< table.height() ) {
<.*?><.*?> * "ajax": "scripts/server_processing.php",
10412
<.*?>
< table.height() ) {
<.*?><.*?> * "deferLoading": [ 57, 100 ],
10413
<.*?>
< table.height() ) {
<.*?><.*?> * "search": {
10414
<.*?>
< table.height() ) {
<.*?><.*?> * "search": "my_filter"
10415
<.*?>
< table.height() ) {
<.*?><.*?> * }
10416
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10417
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10418
<.*?>
< table.height() ) {
<.*?><.*?> */
10419
<.*?>
< table.height() ) {
<.*?><.*?> "iDeferLoading": null,
10420
 
10421
 
10422
<.*?>
< table.height() ) {
<.*?><.*?> /**
10423
<.*?>
< table.height() ) {
<.*?><.*?> * Number of rows to display on a single page when using pagination. If
10424
<.*?>
< table.height() ) {
<.*?><.*?> * feature enabled (`lengthChange`) then the end user will be able to override
10425
<.*?>
< table.height() ) {
<.*?><.*?> * this to a custom setting using a pop-up menu.
10426
<.*?>
< table.height() ) {
<.*?><.*?> * @type int
10427
<.*?>
< table.height() ) {
<.*?><.*?> * @default 10
10428
<.*?>
< table.height() ) {
<.*?><.*?> *
10429
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Options
10430
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.pageLength
10431
<.*?>
< table.height() ) {
<.*?><.*?> *
10432
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10433
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10434
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10435
<.*?>
< table.height() ) {
<.*?><.*?> * "pageLength": 50
10436
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10437
<.*?>
< table.height() ) {
<.*?><.*?> * } )
10438
<.*?>
< table.height() ) {
<.*?><.*?> */
10439
<.*?>
< table.height() ) {
<.*?><.*?> "iDisplayLength": 10,
10440
 
10441
 
10442
<.*?>
< table.height() ) {
<.*?><.*?> /**
10443
<.*?>
< table.height() ) {
<.*?><.*?> * Define the starting point for data display when using DataTables with
10444
<.*?>
< table.height() ) {
<.*?><.*?> * pagination. Note that this parameter is the number of records, rather than
10445
<.*?>
< table.height() ) {
<.*?><.*?> * the page number, so if you have 10 records per page and want to start on
10446
<.*?>
< table.height() ) {
<.*?><.*?> * the third page, it should be "20".
10447
<.*?>
< table.height() ) {
<.*?><.*?> * @type int
10448
<.*?>
< table.height() ) {
<.*?><.*?> * @default 0
10449
<.*?>
< table.height() ) {
<.*?><.*?> *
10450
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Options
10451
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.displayStart
10452
<.*?>
< table.height() ) {
<.*?><.*?> *
10453
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10454
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10455
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10456
<.*?>
< table.height() ) {
<.*?><.*?> * "displayStart": 20
10457
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10458
<.*?>
< table.height() ) {
<.*?><.*?> * } )
10459
<.*?>
< table.height() ) {
<.*?><.*?> */
10460
<.*?>
< table.height() ) {
<.*?><.*?> "iDisplayStart": 0,
10461
 
10462
 
10463
<.*?>
< table.height() ) {
<.*?><.*?> /**
10464
<.*?>
< table.height() ) {
<.*?><.*?> * By default DataTables allows keyboard navigation of the table (sorting, paging,
10465
<.*?>
< table.height() ) {
<.*?><.*?> * and filtering) by adding a `tabindex` attribute to the required elements. This
10466
<.*?>
< table.height() ) {
<.*?><.*?> * allows you to tab through the controls and press the enter key to activate them.
10467
<.*?>
< table.height() ) {
<.*?><.*?> * The tabindex is default 0, meaning that the tab follows the flow of the document.
10468
<.*?>
< table.height() ) {
<.*?><.*?> * You can overrule this using this parameter if you wish. Use a value of -1 to
10469
<.*?>
< table.height() ) {
<.*?><.*?> * disable built-in keyboard navigation.
10470
<.*?>
< table.height() ) {
<.*?><.*?> * @type int
10471
<.*?>
< table.height() ) {
<.*?><.*?> * @default 0
10472
<.*?>
< table.height() ) {
<.*?><.*?> *
10473
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Options
10474
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.tabIndex
10475
<.*?>
< table.height() ) {
<.*?><.*?> *
10476
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10477
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10478
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10479
<.*?>
< table.height() ) {
<.*?><.*?> * "tabIndex": 1
10480
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10481
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10482
<.*?>
< table.height() ) {
<.*?><.*?> */
10483
<.*?>
< table.height() ) {
<.*?><.*?> "iTabIndex": 0,
10484
 
10485
 
10486
<.*?>
< table.height() ) {
<.*?><.*?> /**
10487
<.*?>
< table.height() ) {
<.*?><.*?> * Classes that DataTables assigns to the various components and features
10488
<.*?>
< table.height() ) {
<.*?><.*?> * that it adds to the HTML table. This allows classes to be configured
10489
<.*?>
< table.height() ) {
<.*?><.*?> * during initialisation in addition to through the static
10490
<.*?>
< table.height() ) {
<.*?><.*?> * {@link DataTable.ext.oStdClasses} object).
10491
<.*?>
< table.height() ) {
<.*?><.*?> * @namespace
10492
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.classes
10493
<.*?>
< table.height() ) {
<.*?><.*?> */
10494
<.*?>
< table.height() ) {
<.*?><.*?> "oClasses": {},
10495
 
10496
 
10497
<.*?>
< table.height() ) {
<.*?><.*?> /**
10498
<.*?>
< table.height() ) {
<.*?><.*?> * All strings that DataTables uses in the user interface that it creates
10499
<.*?>
< table.height() ) {
<.*?><.*?> * are defined in this object, allowing you to modified them individually or
10500
<.*?>
< table.height() ) {
<.*?><.*?> * completely replace them all as required.
10501
<.*?>
< table.height() ) {
<.*?><.*?> * @namespace
10502
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.language
10503
<.*?>
< table.height() ) {
<.*?><.*?> */
10504
<.*?>
< table.height() ) {
<.*?><.*?> "oLanguage": {
10505
<.*?>
< table.height() ) {
<.*?><.*?> /**
10506
<.*?>
< table.height() ) {
<.*?><.*?> * Strings that are used for WAI-ARIA labels and controls only (these are not
10507
<.*?>
< table.height() ) {
<.*?><.*?> * actually visible on the page, but will be read by screenreaders, and thus
10508
<.*?>
< table.height() ) {
<.*?><.*?> * must be internationalised as well).
10509
<.*?>
< table.height() ) {
<.*?><.*?> * @namespace
10510
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.language.aria
10511
<.*?>
< table.height() ) {
<.*?><.*?> */
10512
<.*?>
< table.height() ) {
<.*?><.*?> "oAria": {
10513
<.*?>
< table.height() ) {
<.*?><.*?> /**
10514
<.*?>
< table.height() ) {
<.*?><.*?> * ARIA label that is added to the table headers when the column may be
10515
<.*?>
< table.height() ) {
<.*?><.*?> * sorted ascending by activing the column (click or return when focused).
10516
<.*?>
< table.height() ) {
<.*?><.*?> * Note that the column header is prefixed to this string.
10517
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
10518
<.*?>
< table.height() ) {
<.*?><.*?> * @default : activate to sort column ascending
10519
<.*?>
< table.height() ) {
<.*?><.*?> *
10520
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Language
10521
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.language.aria.sortAscending
10522
<.*?>
< table.height() ) {
<.*?><.*?> *
10523
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10524
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10525
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10526
<.*?>
< table.height() ) {
<.*?><.*?> * "language": {
10527
<.*?>
< table.height() ) {
<.*?><.*?> * "aria": {
10528
<.*?>
< table.height() ) {
<.*?><.*?> * "sortAscending": " - click/return to sort ascending"
10529
<.*?>
< table.height() ) {
<.*?><.*?> * }
10530
<.*?>
< table.height() ) {
<.*?><.*?> * }
10531
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10532
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10533
<.*?>
< table.height() ) {
<.*?><.*?> */
10534
<.*?>
< table.height() ) {
<.*?><.*?> "sSortAscending": ": activate to sort column ascending",
10535
 
10536
<.*?>
< table.height() ) {
<.*?><.*?> /**
10537
<.*?>
< table.height() ) {
<.*?><.*?> * ARIA label that is added to the table headers when the column may be
10538
<.*?>
< table.height() ) {
<.*?><.*?> * sorted descending by activing the column (click or return when focused).
10539
<.*?>
< table.height() ) {
<.*?><.*?> * Note that the column header is prefixed to this string.
10540
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
10541
<.*?>
< table.height() ) {
<.*?><.*?> * @default : activate to sort column ascending
10542
<.*?>
< table.height() ) {
<.*?><.*?> *
10543
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Language
10544
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.language.aria.sortDescending
10545
<.*?>
< table.height() ) {
<.*?><.*?> *
10546
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10547
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10548
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10549
<.*?>
< table.height() ) {
<.*?><.*?> * "language": {
10550
<.*?>
< table.height() ) {
<.*?><.*?> * "aria": {
10551
<.*?>
< table.height() ) {
<.*?><.*?> * "sortDescending": " - click/return to sort descending"
10552
<.*?>
< table.height() ) {
<.*?><.*?> * }
10553
<.*?>
< table.height() ) {
<.*?><.*?> * }
10554
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10555
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10556
<.*?>
< table.height() ) {
<.*?><.*?> */
10557
<.*?>
< table.height() ) {
<.*?><.*?> "sSortDescending": ": activate to sort column descending"
10558
<.*?>
< table.height() ) {
<.*?><.*?> },
10559
 
10560
<.*?>
< table.height() ) {
<.*?><.*?> /**
10561
<.*?>
< table.height() ) {
<.*?><.*?> * Pagination string used by DataTables for the built-in pagination
10562
<.*?>
< table.height() ) {
<.*?><.*?> * control types.
10563
<.*?>
< table.height() ) {
<.*?><.*?> * @namespace
10564
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.language.paginate
10565
<.*?>
< table.height() ) {
<.*?><.*?> */
10566
<.*?>
< table.height() ) {
<.*?><.*?> "oPaginate": {
10567
<.*?>
< table.height() ) {
<.*?><.*?> /**
10568
<.*?>
< table.height() ) {
<.*?><.*?> * Text to use when using the 'full_numbers' type of pagination for the
10569
<.*?>
< table.height() ) {
<.*?><.*?> * button to take the user to the first page.
10570
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
10571
<.*?>
< table.height() ) {
<.*?><.*?> * @default First
10572
<.*?>
< table.height() ) {
<.*?><.*?> *
10573
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Language
10574
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.language.paginate.first
10575
<.*?>
< table.height() ) {
<.*?><.*?> *
10576
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10577
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10578
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10579
<.*?>
< table.height() ) {
<.*?><.*?> * "language": {
10580
<.*?>
< table.height() ) {
<.*?><.*?> * "paginate": {
10581
<.*?>
< table.height() ) {
<.*?><.*?> * "first": "First page"
10582
<.*?>
< table.height() ) {
<.*?><.*?> * }
10583
<.*?>
< table.height() ) {
<.*?><.*?> * }
10584
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10585
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10586
<.*?>
< table.height() ) {
<.*?><.*?> */
10587
<.*?>
< table.height() ) {
<.*?><.*?> "sFirst": "First",
10588
 
10589
 
10590
<.*?>
< table.height() ) {
<.*?><.*?> /**
10591
<.*?>
< table.height() ) {
<.*?><.*?> * Text to use when using the 'full_numbers' type of pagination for the
10592
<.*?>
< table.height() ) {
<.*?><.*?> * button to take the user to the last page.
10593
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
10594
<.*?>
< table.height() ) {
<.*?><.*?> * @default Last
10595
<.*?>
< table.height() ) {
<.*?><.*?> *
10596
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Language
10597
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.language.paginate.last
10598
<.*?>
< table.height() ) {
<.*?><.*?> *
10599
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10600
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10601
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10602
<.*?>
< table.height() ) {
<.*?><.*?> * "language": {
10603
<.*?>
< table.height() ) {
<.*?><.*?> * "paginate": {
10604
<.*?>
< table.height() ) {
<.*?><.*?> * "last": "Last page"
10605
<.*?>
< table.height() ) {
<.*?><.*?> * }
10606
<.*?>
< table.height() ) {
<.*?><.*?> * }
10607
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10608
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10609
<.*?>
< table.height() ) {
<.*?><.*?> */
10610
<.*?>
< table.height() ) {
<.*?><.*?> "sLast": "Last",
10611
 
10612
 
10613
<.*?>
< table.height() ) {
<.*?><.*?> /**
10614
<.*?>
< table.height() ) {
<.*?><.*?> * Text to use for the 'next' pagination button (to take the user to the
10615
<.*?>
< table.height() ) {
<.*?><.*?> * next page).
10616
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
10617
<.*?>
< table.height() ) {
<.*?><.*?> * @default Next
10618
<.*?>
< table.height() ) {
<.*?><.*?> *
10619
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Language
10620
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.language.paginate.next
10621
<.*?>
< table.height() ) {
<.*?><.*?> *
10622
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10623
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10624
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10625
<.*?>
< table.height() ) {
<.*?><.*?> * "language": {
10626
<.*?>
< table.height() ) {
<.*?><.*?> * "paginate": {
10627
<.*?>
< table.height() ) {
<.*?><.*?> * "next": "Next page"
10628
<.*?>
< table.height() ) {
<.*?><.*?> * }
10629
<.*?>
< table.height() ) {
<.*?><.*?> * }
10630
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10631
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10632
<.*?>
< table.height() ) {
<.*?><.*?> */
10633
<.*?>
< table.height() ) {
<.*?><.*?> "sNext": "Next",
10634
 
10635
 
10636
<.*?>
< table.height() ) {
<.*?><.*?> /**
10637
<.*?>
< table.height() ) {
<.*?><.*?> * Text to use for the 'previous' pagination button (to take the user to
10638
<.*?>
< table.height() ) {
<.*?><.*?> * the previous page).
10639
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
10640
<.*?>
< table.height() ) {
<.*?><.*?> * @default Previous
10641
<.*?>
< table.height() ) {
<.*?><.*?> *
10642
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Language
10643
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.language.paginate.previous
10644
<.*?>
< table.height() ) {
<.*?><.*?> *
10645
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10646
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10647
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10648
<.*?>
< table.height() ) {
<.*?><.*?> * "language": {
10649
<.*?>
< table.height() ) {
<.*?><.*?> * "paginate": {
10650
<.*?>
< table.height() ) {
<.*?><.*?> * "previous": "Previous page"
10651
<.*?>
< table.height() ) {
<.*?><.*?> * }
10652
<.*?>
< table.height() ) {
<.*?><.*?> * }
10653
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10654
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10655
<.*?>
< table.height() ) {
<.*?><.*?> */
10656
<.*?>
< table.height() ) {
<.*?><.*?> "sPrevious": "Previous"
10657
<.*?>
< table.height() ) {
<.*?><.*?> },
10658
 
10659
<.*?>
< table.height() ) {
<.*?><.*?> /**
10660
<.*?>
< table.height() ) {
<.*?><.*?> * This string is shown in preference to `zeroRecords` when the table is
10661
<.*?>
< table.height() ) {
<.*?><.*?> * empty of data (regardless of filtering). Note that this is an optional
10662
<.*?>
< table.height() ) {
<.*?><.*?> * parameter - if it is not given, the value of `zeroRecords` will be used
10663
<.*?>
< table.height() ) {
<.*?><.*?> * instead (either the default or given value).
10664
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
10665
<.*?>
< table.height() ) {
<.*?><.*?> * @default No data available in table
10666
<.*?>
< table.height() ) {
<.*?><.*?> *
10667
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Language
10668
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.language.emptyTable
10669
<.*?>
< table.height() ) {
<.*?><.*?> *
10670
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10671
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10672
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10673
<.*?>
< table.height() ) {
<.*?><.*?> * "language": {
10674
<.*?>
< table.height() ) {
<.*?><.*?> * "emptyTable": "No data available in table"
10675
<.*?>
< table.height() ) {
<.*?><.*?> * }
10676
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10677
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10678
<.*?>
< table.height() ) {
<.*?><.*?> */
10679
<.*?>
< table.height() ) {
<.*?><.*?> "sEmptyTable": "No data available in table",
10680
 
10681
 
10682
<.*?>
< table.height() ) {
<.*?><.*?> /**
10683
<.*?>
< table.height() ) {
<.*?><.*?> * This string gives information to the end user about the information
10684
<.*?>
< table.height() ) {
<.*?><.*?> * that is current on display on the page. The following tokens can be
10685
<.*?>
< table.height() ) {
<.*?><.*?> * used in the string and will be dynamically replaced as the table
10686
<.*?>
< table.height() ) {
<.*?><.*?> * display updates. This tokens can be placed anywhere in the string, or
10687
<.*?>
< table.height() ) {
<.*?><.*?> * removed as needed by the language requires:
10688
<.*?>
< table.height() ) {
<.*?><.*?> *
10689
<.*?>
< table.height() ) {
<.*?><.*?> * * `\_START\_` - Display index of the first record on the current page
10690
<.*?>
< table.height() ) {
<.*?><.*?> * * `\_END\_` - Display index of the last record on the current page
10691
<.*?>
< table.height() ) {
<.*?><.*?> * * `\_TOTAL\_` - Number of records in the table after filtering
10692
<.*?>
< table.height() ) {
<.*?><.*?> * * `\_MAX\_` - Number of records in the table without filtering
10693
<.*?>
< table.height() ) {
<.*?><.*?> * * `\_PAGE\_` - Current page number
10694
<.*?>
< table.height() ) {
<.*?><.*?> * * `\_PAGES\_` - Total number of pages of data in the table
10695
<.*?>
< table.height() ) {
<.*?><.*?> *
10696
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
10697
<.*?>
< table.height() ) {
<.*?><.*?> * @default Showing _START_ to _END_ of _TOTAL_ entries
10698
<.*?>
< table.height() ) {
<.*?><.*?> *
10699
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Language
10700
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.language.info
10701
<.*?>
< table.height() ) {
<.*?><.*?> *
10702
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10703
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10704
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10705
<.*?>
< table.height() ) {
<.*?><.*?> * "language": {
10706
<.*?>
< table.height() ) {
<.*?><.*?> * "info": "Showing page _PAGE_ of _PAGES_"
10707
<.*?>
< table.height() ) {
<.*?><.*?> * }
10708
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10709
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10710
<.*?>
< table.height() ) {
<.*?><.*?> */
10711
<.*?>
< table.height() ) {
<.*?><.*?> "sInfo": "Showing _START_ to _END_ of _TOTAL_ entries",
10712
 
10713
 
10714
<.*?>
< table.height() ) {
<.*?><.*?> /**
10715
<.*?>
< table.height() ) {
<.*?><.*?> * Display information string for when the table is empty. Typically the
10716
<.*?>
< table.height() ) {
<.*?><.*?> * format of this string should match `info`.
10717
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
10718
<.*?>
< table.height() ) {
<.*?><.*?> * @default Showing 0 to 0 of 0 entries
10719
<.*?>
< table.height() ) {
<.*?><.*?> *
10720
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Language
10721
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.language.infoEmpty
10722
<.*?>
< table.height() ) {
<.*?><.*?> *
10723
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10724
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10725
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10726
<.*?>
< table.height() ) {
<.*?><.*?> * "language": {
10727
<.*?>
< table.height() ) {
<.*?><.*?> * "infoEmpty": "No entries to show"
10728
<.*?>
< table.height() ) {
<.*?><.*?> * }
10729
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10730
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10731
<.*?>
< table.height() ) {
<.*?><.*?> */
10732
<.*?>
< table.height() ) {
<.*?><.*?> "sInfoEmpty": "Showing 0 to 0 of 0 entries",
10733
 
10734
 
10735
<.*?>
< table.height() ) {
<.*?><.*?> /**
10736
<.*?>
< table.height() ) {
<.*?><.*?> * When a user filters the information in a table, this string is appended
10737
<.*?>
< table.height() ) {
<.*?><.*?> * to the information (`info`) to give an idea of how strong the filtering
10738
<.*?>
< table.height() ) {
<.*?><.*?> * is. The variable _MAX_ is dynamically updated.
10739
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
10740
<.*?>
< table.height() ) {
<.*?><.*?> * @default (filtered from _MAX_ total entries)
10741
<.*?>
< table.height() ) {
<.*?><.*?> *
10742
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Language
10743
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.language.infoFiltered
10744
<.*?>
< table.height() ) {
<.*?><.*?> *
10745
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10746
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10747
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10748
<.*?>
< table.height() ) {
<.*?><.*?> * "language": {
10749
<.*?>
< table.height() ) {
<.*?><.*?> * "infoFiltered": " - filtering from _MAX_ records"
10750
<.*?>
< table.height() ) {
<.*?><.*?> * }
10751
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10752
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10753
<.*?>
< table.height() ) {
<.*?><.*?> */
10754
<.*?>
< table.height() ) {
<.*?><.*?> "sInfoFiltered": "(filtered from _MAX_ total entries)",
10755
 
10756
 
10757
<.*?>
< table.height() ) {
<.*?><.*?> /**
10758
<.*?>
< table.height() ) {
<.*?><.*?> * If can be useful to append extra information to the info string at times,
10759
<.*?>
< table.height() ) {
<.*?><.*?> * and this variable does exactly that. This information will be appended to
10760
<.*?>
< table.height() ) {
<.*?><.*?> * the `info` (`infoEmpty` and `infoFiltered` in whatever combination they are
10761
<.*?>
< table.height() ) {
<.*?><.*?> * being used) at all times.
10762
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
10763
<.*?>
< table.height() ) {
<.*?><.*?> * @default <i>Empty string</i>
10764
<.*?>
< table.height() ) {
<.*?><.*?> *
10765
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Language
10766
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.language.infoPostFix
10767
<.*?>
< table.height() ) {
<.*?><.*?> *
10768
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10769
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10770
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10771
<.*?>
< table.height() ) {
<.*?><.*?> * "language": {
10772
<.*?>
< table.height() ) {
<.*?><.*?> * "infoPostFix": "All records shown are derived from real information."
10773
<.*?>
< table.height() ) {
<.*?><.*?> * }
10774
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10775
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10776
<.*?>
< table.height() ) {
<.*?><.*?> */
10777
<.*?>
< table.height() ) {
<.*?><.*?> "sInfoPostFix": "",
10778
 
10779
 
10780
<.*?>
< table.height() ) {
<.*?><.*?> /**
10781
<.*?>
< table.height() ) {
<.*?><.*?> * This decimal place operator is a little different from the other
10782
<.*?>
< table.height() ) {
<.*?><.*?> * language options since DataTables doesn't output floating point
10783
<.*?>
< table.height() ) {
<.*?><.*?> * numbers, so it won't ever use this for display of a number. Rather,
10784
<.*?>
< table.height() ) {
<.*?><.*?> * what this parameter does is modify the sort methods of the table so
10785
<.*?>
< table.height() ) {
<.*?><.*?> * that numbers which are in a format which has a character other than
10786
<.*?>
< table.height() ) {
<.*?><.*?> * a period (`.`) as a decimal place will be sorted numerically.
10787
<.*?>
< table.height() ) {
<.*?><.*?> *
10788
<.*?>
< table.height() ) {
<.*?><.*?> * Note that numbers with different decimal places cannot be shown in
10789
<.*?>
< table.height() ) {
<.*?><.*?> * the same table and still be sortable, the table must be consistent.
10790
<.*?>
< table.height() ) {
<.*?><.*?> * However, multiple different tables on the page can use different
10791
<.*?>
< table.height() ) {
<.*?><.*?> * decimal place characters.
10792
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
10793
<.*?>
< table.height() ) {
<.*?><.*?> * @default
10794
<.*?>
< table.height() ) {
<.*?><.*?> *
10795
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Language
10796
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.language.decimal
10797
<.*?>
< table.height() ) {
<.*?><.*?> *
10798
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10799
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10800
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10801
<.*?>
< table.height() ) {
<.*?><.*?> * "language": {
10802
<.*?>
< table.height() ) {
<.*?><.*?> * "decimal": ","
10803
<.*?>
< table.height() ) {
<.*?><.*?> * "thousands": "."
10804
<.*?>
< table.height() ) {
<.*?><.*?> * }
10805
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10806
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10807
<.*?>
< table.height() ) {
<.*?><.*?> */
10808
<.*?>
< table.height() ) {
<.*?><.*?> "sDecimal": "",
10809
 
10810
 
10811
<.*?>
< table.height() ) {
<.*?><.*?> /**
10812
<.*?>
< table.height() ) {
<.*?><.*?> * DataTables has a build in number formatter (`formatNumber`) which is
10813
<.*?>
< table.height() ) {
<.*?><.*?> * used to format large numbers that are used in the table information.
10814
<.*?>
< table.height() ) {
<.*?><.*?> * By default a comma is used, but this can be trivially changed to any
10815
<.*?>
< table.height() ) {
<.*?><.*?> * character you wish with this parameter.
10816
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
10817
<.*?>
< table.height() ) {
<.*?><.*?> * @default ,
10818
<.*?>
< table.height() ) {
<.*?><.*?> *
10819
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Language
10820
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.language.thousands
10821
<.*?>
< table.height() ) {
<.*?><.*?> *
10822
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10823
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10824
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10825
<.*?>
< table.height() ) {
<.*?><.*?> * "language": {
10826
<.*?>
< table.height() ) {
<.*?><.*?> * "thousands": "'"
10827
<.*?>
< table.height() ) {
<.*?><.*?> * }
10828
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10829
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10830
<.*?>
< table.height() ) {
<.*?><.*?> */
10831
<.*?>
< table.height() ) {
<.*?><.*?> "sThousands": ",",
10832
 
10833
 
10834
<.*?>
< table.height() ) {
<.*?><.*?> /**
10835
<.*?>
< table.height() ) {
<.*?><.*?> * Detail the action that will be taken when the drop down menu for the
10836
<.*?>
< table.height() ) {
<.*?><.*?> * pagination length option is changed. The '_MENU_' variable is replaced
10837
<.*?>
< table.height() ) {
<.*?><.*?> * with a default select list of 10, 25, 50 and 100, and can be replaced
10838
<.*?>
< table.height() ) {
<.*?><.*?> * with a custom select box if required.
10839
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
10840
<.*?>
< table.height() ) {
<.*?><.*?> * @default Show _MENU_ entries
10841
<.*?>
< table.height() ) {
<.*?><.*?> *
10842
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Language
10843
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.language.lengthMenu
10844
<.*?>
< table.height() ) {
<.*?><.*?> *
10845
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10846
<.*?>
< table.height() ) {
<.*?><.*?> * // Language change only
10847
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10848
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10849
<.*?>
< table.height() ) {
<.*?><.*?> * "language": {
10850
<.*?>
< table.height() ) {
<.*?><.*?> * "lengthMenu": "Display _MENU_ records"
10851
<.*?>
< table.height() ) {
<.*?><.*?> * }
10852
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10853
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10854
<.*?>
< table.height() ) {
<.*?><.*?> *
10855
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10856
<.*?>
< table.height() ) {
<.*?><.*?> * // Language and options change
10857
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10858
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10859
<.*?>
< table.height() ) {
<.*?><.*?> * "language": {
10860
<.*?>
< table.height() ) {
<.*?><.*?> * "lengthMenu": 'Display <select>'+
10861
<.*?>
< table.height() ) {
<.*?><.*?> * '<option value="10">10</option>'+
10862
<.*?>
< table.height() ) {
<.*?><.*?> * '<option value="20">20</option>'+
10863
<.*?>
< table.height() ) {
<.*?><.*?> * '<option value="30">30</option>'+
10864
<.*?>
< table.height() ) {
<.*?><.*?> * '<option value="40">40</option>'+
10865
<.*?>
< table.height() ) {
<.*?><.*?> * '<option value="50">50</option>'+
10866
<.*?>
< table.height() ) {
<.*?><.*?> * '<option value="-1">All</option>'+
10867
<.*?>
< table.height() ) {
<.*?><.*?> * '</select> records'
10868
<.*?>
< table.height() ) {
<.*?><.*?> * }
10869
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10870
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10871
<.*?>
< table.height() ) {
<.*?><.*?> */
10872
<.*?>
< table.height() ) {
<.*?><.*?> "sLengthMenu": "Show _MENU_ entries",
10873
 
10874
 
10875
<.*?>
< table.height() ) {
<.*?><.*?> /**
10876
<.*?>
< table.height() ) {
<.*?><.*?> * When using Ajax sourced data and during the first draw when DataTables is
10877
<.*?>
< table.height() ) {
<.*?><.*?> * gathering the data, this message is shown in an empty row in the table to
10878
<.*?>
< table.height() ) {
<.*?><.*?> * indicate to the end user the the data is being loaded. Note that this
10879
<.*?>
< table.height() ) {
<.*?><.*?> * parameter is not used when loading data by server-side processing, just
10880
<.*?>
< table.height() ) {
<.*?><.*?> * Ajax sourced data with client-side processing.
10881
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
10882
<.*?>
< table.height() ) {
<.*?><.*?> * @default Loading...
10883
<.*?>
< table.height() ) {
<.*?><.*?> *
10884
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Language
10885
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.language.loadingRecords
10886
<.*?>
< table.height() ) {
<.*?><.*?> *
10887
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10888
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10889
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10890
<.*?>
< table.height() ) {
<.*?><.*?> * "language": {
10891
<.*?>
< table.height() ) {
<.*?><.*?> * "loadingRecords": "Please wait - loading..."
10892
<.*?>
< table.height() ) {
<.*?><.*?> * }
10893
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10894
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10895
<.*?>
< table.height() ) {
<.*?><.*?> */
10896
<.*?>
< table.height() ) {
<.*?><.*?> "sLoadingRecords": "Loading...",
10897
 
10898
 
10899
<.*?>
< table.height() ) {
<.*?><.*?> /**
10900
<.*?>
< table.height() ) {
<.*?><.*?> * Text which is displayed when the table is processing a user action
10901
<.*?>
< table.height() ) {
<.*?><.*?> * (usually a sort command or similar).
10902
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
10903
<.*?>
< table.height() ) {
<.*?><.*?> * @default Processing...
10904
<.*?>
< table.height() ) {
<.*?><.*?> *
10905
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Language
10906
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.language.processing
10907
<.*?>
< table.height() ) {
<.*?><.*?> *
10908
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10909
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10910
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10911
<.*?>
< table.height() ) {
<.*?><.*?> * "language": {
10912
<.*?>
< table.height() ) {
<.*?><.*?> * "processing": "DataTables is currently busy"
10913
<.*?>
< table.height() ) {
<.*?><.*?> * }
10914
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10915
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10916
<.*?>
< table.height() ) {
<.*?><.*?> */
10917
<.*?>
< table.height() ) {
<.*?><.*?> "sProcessing": "Processing...",
10918
 
10919
 
10920
<.*?>
< table.height() ) {
<.*?><.*?> /**
10921
<.*?>
< table.height() ) {
<.*?><.*?> * Details the actions that will be taken when the user types into the
10922
<.*?>
< table.height() ) {
<.*?><.*?> * filtering input text box. The variable "_INPUT_", if used in the string,
10923
<.*?>
< table.height() ) {
<.*?><.*?> * is replaced with the HTML text box for the filtering input allowing
10924
<.*?>
< table.height() ) {
<.*?><.*?> * control over where it appears in the string. If "_INPUT_" is not given
10925
<.*?>
< table.height() ) {
<.*?><.*?> * then the input box is appended to the string automatically.
10926
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
10927
<.*?>
< table.height() ) {
<.*?><.*?> * @default Search:
10928
<.*?>
< table.height() ) {
<.*?><.*?> *
10929
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Language
10930
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.language.search
10931
<.*?>
< table.height() ) {
<.*?><.*?> *
10932
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10933
<.*?>
< table.height() ) {
<.*?><.*?> * // Input text box will be appended at the end automatically
10934
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10935
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10936
<.*?>
< table.height() ) {
<.*?><.*?> * "language": {
10937
<.*?>
< table.height() ) {
<.*?><.*?> * "search": "Filter records:"
10938
<.*?>
< table.height() ) {
<.*?><.*?> * }
10939
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10940
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10941
<.*?>
< table.height() ) {
<.*?><.*?> *
10942
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10943
<.*?>
< table.height() ) {
<.*?><.*?> * // Specify where the filter should appear
10944
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10945
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10946
<.*?>
< table.height() ) {
<.*?><.*?> * "language": {
10947
<.*?>
< table.height() ) {
<.*?><.*?> * "search": "Apply filter _INPUT_ to table"
10948
<.*?>
< table.height() ) {
<.*?><.*?> * }
10949
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10950
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10951
<.*?>
< table.height() ) {
<.*?><.*?> */
10952
<.*?>
< table.height() ) {
<.*?><.*?> "sSearch": "Search:",
10953
 
10954
 
10955
<.*?>
< table.height() ) {
<.*?><.*?> /**
10956
<.*?>
< table.height() ) {
<.*?><.*?> * All of the language information can be stored in a file on the
10957
<.*?>
< table.height() ) {
<.*?><.*?> * server-side, which DataTables will look up if this parameter is passed.
10958
<.*?>
< table.height() ) {
<.*?><.*?> * It must store the URL of the language file, which is in a JSON format,
10959
<.*?>
< table.height() ) {
<.*?><.*?> * and the object has the same properties as the oLanguage object in the
10960
<.*?>
< table.height() ) {
<.*?><.*?> * initialiser object (i.e. the above parameters). Please refer to one of
10961
<.*?>
< table.height() ) {
<.*?><.*?> * the example language files to see how this works in action.
10962
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
10963
<.*?>
< table.height() ) {
<.*?><.*?> * @default <i>Empty string - i.e. disabled</i>
10964
<.*?>
< table.height() ) {
<.*?><.*?> *
10965
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Language
10966
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.language.url
10967
<.*?>
< table.height() ) {
<.*?><.*?> *
10968
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10969
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10970
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10971
<.*?>
< table.height() ) {
<.*?><.*?> * "language": {
10972
<.*?>
< table.height() ) {
<.*?><.*?> * "url": "http://www.sprymedia.co.uk/dataTables/lang.txt"
10973
<.*?>
< table.height() ) {
<.*?><.*?> * }
10974
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10975
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10976
<.*?>
< table.height() ) {
<.*?><.*?> */
10977
<.*?>
< table.height() ) {
<.*?><.*?> "sUrl": "",
10978
 
10979
 
10980
<.*?>
< table.height() ) {
<.*?><.*?> /**
10981
<.*?>
< table.height() ) {
<.*?><.*?> * Text shown inside the table records when the is no information to be
10982
<.*?>
< table.height() ) {
<.*?><.*?> * displayed after filtering. `emptyTable` is shown when there is simply no
10983
<.*?>
< table.height() ) {
<.*?><.*?> * information in the table at all (regardless of filtering).
10984
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
10985
<.*?>
< table.height() ) {
<.*?><.*?> * @default No matching records found
10986
<.*?>
< table.height() ) {
<.*?><.*?> *
10987
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Language
10988
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.language.zeroRecords
10989
<.*?>
< table.height() ) {
<.*?><.*?> *
10990
<.*?>
< table.height() ) {
<.*?><.*?> * @example
10991
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
10992
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
10993
<.*?>
< table.height() ) {
<.*?><.*?> * "language": {
10994
<.*?>
< table.height() ) {
<.*?><.*?> * "zeroRecords": "No records to display"
10995
<.*?>
< table.height() ) {
<.*?><.*?> * }
10996
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10997
<.*?>
< table.height() ) {
<.*?><.*?> * } );
10998
<.*?>
< table.height() ) {
<.*?><.*?> */
10999
<.*?>
< table.height() ) {
<.*?><.*?> "sZeroRecords": "No matching records found"
11000
<.*?>
< table.height() ) {
<.*?><.*?> },
11001
 
11002
 
11003
<.*?>
< table.height() ) {
<.*?><.*?> /**
11004
<.*?>
< table.height() ) {
<.*?><.*?> * This parameter allows you to have define the global filtering state at
11005
<.*?>
< table.height() ) {
<.*?><.*?> * initialisation time. As an object the `search` parameter must be
11006
<.*?>
< table.height() ) {
<.*?><.*?> * defined, but all other parameters are optional. When `regex` is true,
11007
<.*?>
< table.height() ) {
<.*?><.*?> * the search string will be treated as a regular expression, when false
11008
<.*?>
< table.height() ) {
<.*?><.*?> * (default) it will be treated as a straight string. When `smart`
11009
<.*?>
< table.height() ) {
<.*?><.*?> * DataTables will use it's smart filtering methods (to word match at
11010
<.*?>
< table.height() ) {
<.*?><.*?> * any point in the data), when false this will not be done.
11011
<.*?>
< table.height() ) {
<.*?><.*?> * @namespace
11012
<.*?>
< table.height() ) {
<.*?><.*?> * @extends DataTable.models.oSearch
11013
<.*?>
< table.height() ) {
<.*?><.*?> *
11014
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Options
11015
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.search
11016
<.*?>
< table.height() ) {
<.*?><.*?> *
11017
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11018
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11019
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11020
<.*?>
< table.height() ) {
<.*?><.*?> * "search": {"search": "Initial search"}
11021
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11022
<.*?>
< table.height() ) {
<.*?><.*?> * } )
11023
<.*?>
< table.height() ) {
<.*?><.*?> */
11024
<.*?>
< table.height() ) {
<.*?><.*?> "oSearch": $.extend( {}, DataTable.models.oSearch ),
11025
 
11026
 
11027
<.*?>
< table.height() ) {
<.*?><.*?> /**
11028
<.*?>
< table.height() ) {
<.*?><.*?> * __Deprecated__ The functionality provided by this parameter has now been
11029
<.*?>
< table.height() ) {
<.*?><.*?> * superseded by that provided through `ajax`, which should be used instead.
11030
<.*?>
< table.height() ) {
<.*?><.*?> *
11031
<.*?>
< table.height() ) {
<.*?><.*?> * By default DataTables will look for the property `data` (or `aaData` for
11032
<.*?>
< table.height() ) {
<.*?><.*?> * compatibility with DataTables 1.9-) when obtaining data from an Ajax
11033
<.*?>
< table.height() ) {
<.*?><.*?> * source or for server-side processing - this parameter allows that
11034
<.*?>
< table.height() ) {
<.*?><.*?> * property to be changed. You can use Javascript dotted object notation to
11035
<.*?>
< table.height() ) {
<.*?><.*?> * get a data source for multiple levels of nesting.
11036
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
11037
<.*?>
< table.height() ) {
<.*?><.*?> * @default data
11038
<.*?>
< table.height() ) {
<.*?><.*?> *
11039
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Options
11040
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Server-side
11041
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.ajaxDataProp
11042
<.*?>
< table.height() ) {
<.*?><.*?> *
11043
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated 1.10. Please use `ajax` for this functionality now.
11044
<.*?>
< table.height() ) {
<.*?><.*?> */
11045
<.*?>
< table.height() ) {
<.*?><.*?> "sAjaxDataProp": "data",
11046
 
11047
 
11048
<.*?>
< table.height() ) {
<.*?><.*?> /**
11049
<.*?>
< table.height() ) {
<.*?><.*?> * __Deprecated__ The functionality provided by this parameter has now been
11050
<.*?>
< table.height() ) {
<.*?><.*?> * superseded by that provided through `ajax`, which should be used instead.
11051
<.*?>
< table.height() ) {
<.*?><.*?> *
11052
<.*?>
< table.height() ) {
<.*?><.*?> * You can instruct DataTables to load data from an external
11053
<.*?>
< table.height() ) {
<.*?><.*?> * source using this parameter (use aData if you want to pass data in you
11054
<.*?>
< table.height() ) {
<.*?><.*?> * already have). Simply provide a url a JSON object can be obtained from.
11055
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
11056
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
11057
<.*?>
< table.height() ) {
<.*?><.*?> *
11058
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Options
11059
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Server-side
11060
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.ajaxSource
11061
<.*?>
< table.height() ) {
<.*?><.*?> *
11062
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated 1.10. Please use `ajax` for this functionality now.
11063
<.*?>
< table.height() ) {
<.*?><.*?> */
11064
<.*?>
< table.height() ) {
<.*?><.*?> "sAjaxSource": null,
11065
 
11066
 
11067
<.*?>
< table.height() ) {
<.*?><.*?> /**
11068
<.*?>
< table.height() ) {
<.*?><.*?> * This initialisation variable allows you to specify exactly where in the
11069
<.*?>
< table.height() ) {
<.*?><.*?> * DOM you want DataTables to inject the various controls it adds to the page
11070
<.*?>
< table.height() ) {
<.*?><.*?> * (for example you might want the pagination controls at the top of the
11071
<.*?>
< table.height() ) {
<.*?><.*?> * table). DIV elements (with or without a custom class) can also be added to
11072
<.*?>
< table.height() ) {
<.*?><.*?> * aid styling. The follow syntax is used:
11073
<.*?>
< table.height() ) {
<.*?><.*?> * <ul>
11074
<.*?>
< table.height() ) {
<.*?><.*?> * <li>The following options are allowed:
11075
<.*?>
< table.height() ) {
<.*?><.*?> * <ul>
11076
<.*?>
< table.height() ) {
<.*?><.*?> * <li>'l' - Length changing</li>
11077
<.*?>
< table.height() ) {
<.*?><.*?> * <li>'f' - Filtering input</li>
11078
<.*?>
< table.height() ) {
<.*?><.*?> * <li>'t' - The table!</li>
11079
<.*?>
< table.height() ) {
<.*?><.*?> * <li>'i' - Information</li>
11080
<.*?>
< table.height() ) {
<.*?><.*?> * <li>'p' - Pagination</li>
11081
<.*?>
< table.height() ) {
<.*?><.*?> * <li>'r' - pRocessing</li>
11082
<.*?>
< table.height() ) {
<.*?><.*?> * </ul>
11083
<.*?>
< table.height() ) {
<.*?><.*?> * </li>
11084
<.*?>
< table.height() ) {
<.*?><.*?> * <li>The following constants are allowed:
11085
<.*?>
< table.height() ) {
<.*?><.*?> * <ul>
11086
<.*?>
< table.height() ) {
<.*?><.*?> * <li>'H' - jQueryUI theme "header" classes ('fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix')</li>
11087
<.*?>
< table.height() ) {
<.*?><.*?> * <li>'F' - jQueryUI theme "footer" classes ('fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix')</li>
11088
<.*?>
< table.height() ) {
<.*?><.*?> * </ul>
11089
<.*?>
< table.height() ) {
<.*?><.*?> * </li>
11090
<.*?>
< table.height() ) {
<.*?><.*?> * <li>The following syntax is expected:
11091
<.*?>
< table.height() ) {
<.*?><.*?> * <ul>
11092
<.*?>
< table.height() ) {
<.*?><.*?> * <li>'&lt;' and '&gt;' - div elements</li>
11093
<.*?>
< table.height() ) {
<.*?><.*?> * <li>'&lt;"class" and '&gt;' - div with a class</li>
11094
<.*?>
< table.height() ) {
<.*?><.*?> * <li>'&lt;"#id" and '&gt;' - div with an ID</li>
11095
<.*?>
< table.height() ) {
<.*?><.*?> * </ul>
11096
<.*?>
< table.height() ) {
<.*?><.*?> * </li>
11097
<.*?>
< table.height() ) {
<.*?><.*?> * <li>Examples:
11098
<.*?>
< table.height() ) {
<.*?><.*?> * <ul>
11099
<.*?>
< table.height() ) {
<.*?><.*?> * <li>'&lt;"wrapper"flipt&gt;'</li>
11100
<.*?>
< table.height() ) {
<.*?><.*?> * <li>'&lt;lf&lt;t&gt;ip&gt;'</li>
11101
<.*?>
< table.height() ) {
<.*?><.*?> * </ul>
11102
<.*?>
< table.height() ) {
<.*?><.*?> * </li>
11103
<.*?>
< table.height() ) {
<.*?><.*?> * </ul>
11104
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
11105
<.*?>
< table.height() ) {
<.*?><.*?> * @default lfrtip <i>(when `jQueryUI` is false)</i> <b>or</b>
11106
<.*?>
< table.height() ) {
<.*?><.*?> * <"H"lfr>t<"F"ip> <i>(when `jQueryUI` is true)</i>
11107
<.*?>
< table.height() ) {
<.*?><.*?> *
11108
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Options
11109
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.dom
11110
<.*?>
< table.height() ) {
<.*?><.*?> *
11111
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11112
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11113
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11114
<.*?>
< table.height() ) {
<.*?><.*?> * "dom": '&lt;"top"i&gt;rt&lt;"bottom"flp&gt;&lt;"clear"&gt;'
11115
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11116
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11117
<.*?>
< table.height() ) {
<.*?><.*?> */
11118
<.*?>
< table.height() ) {
<.*?><.*?> "sDom": "lfrtip",
11119
 
11120
 
11121
<.*?>
< table.height() ) {
<.*?><.*?> /**
11122
<.*?>
< table.height() ) {
<.*?><.*?> * DataTables features four different built-in options for the buttons to
11123
<.*?>
< table.height() ) {
<.*?><.*?> * display for pagination control:
11124
<.*?>
< table.height() ) {
<.*?><.*?> *
11125
<.*?>
< table.height() ) {
<.*?><.*?> * * `simple` - 'Previous' and 'Next' buttons only
11126
<.*?>
< table.height() ) {
<.*?><.*?> * * 'simple_numbers` - 'Previous' and 'Next' buttons, plus page numbers
11127
<.*?>
< table.height() ) {
<.*?><.*?> * * `full` - 'First', 'Previous', 'Next' and 'Last' buttons
11128
<.*?>
< table.height() ) {
<.*?><.*?> * * `full_numbers` - 'First', 'Previous', 'Next' and 'Last' buttons, plus
11129
<.*?>
< table.height() ) {
<.*?><.*?> * page numbers
11130
<.*?>
< table.height() ) {
<.*?><.*?> *
11131
<.*?>
< table.height() ) {
<.*?><.*?> * Further methods can be added using {@link DataTable.ext.oPagination}.
11132
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
11133
<.*?>
< table.height() ) {
<.*?><.*?> * @default simple_numbers
11134
<.*?>
< table.height() ) {
<.*?><.*?> *
11135
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Options
11136
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.pagingType
11137
<.*?>
< table.height() ) {
<.*?><.*?> *
11138
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11139
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11140
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11141
<.*?>
< table.height() ) {
<.*?><.*?> * "pagingType": "full_numbers"
11142
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11143
<.*?>
< table.height() ) {
<.*?><.*?> * } )
11144
<.*?>
< table.height() ) {
<.*?><.*?> */
11145
<.*?>
< table.height() ) {
<.*?><.*?> "sPaginationType": "simple_numbers",
11146
 
11147
 
11148
<.*?>
< table.height() ) {
<.*?><.*?> /**
11149
<.*?>
< table.height() ) {
<.*?><.*?> * Enable horizontal scrolling. When a table is too wide to fit into a
11150
<.*?>
< table.height() ) {
<.*?><.*?> * certain layout, or you have a large number of columns in the table, you
11151
<.*?>
< table.height() ) {
<.*?><.*?> * can enable x-scrolling to show the table in a viewport, which can be
11152
<.*?>
< table.height() ) {
<.*?><.*?> * scrolled. This property can be `true` which will allow the table to
11153
<.*?>
< table.height() ) {
<.*?><.*?> * scroll horizontally when needed, or any CSS unit, or a number (in which
11154
<.*?>
< table.height() ) {
<.*?><.*?> * case it will be treated as a pixel measurement). Setting as simply `true`
11155
<.*?>
< table.height() ) {
<.*?><.*?> * is recommended.
11156
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean|string
11157
<.*?>
< table.height() ) {
<.*?><.*?> * @default <i>blank string - i.e. disabled</i>
11158
<.*?>
< table.height() ) {
<.*?><.*?> *
11159
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Features
11160
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.scrollX
11161
<.*?>
< table.height() ) {
<.*?><.*?> *
11162
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11163
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11164
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11165
<.*?>
< table.height() ) {
<.*?><.*?> * "scrollX": true,
11166
<.*?>
< table.height() ) {
<.*?><.*?> * "scrollCollapse": true
11167
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11168
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11169
<.*?>
< table.height() ) {
<.*?><.*?> */
11170
<.*?>
< table.height() ) {
<.*?><.*?> "sScrollX": "",
11171
 
11172
 
11173
<.*?>
< table.height() ) {
<.*?><.*?> /**
11174
<.*?>
< table.height() ) {
<.*?><.*?> * This property can be used to force a DataTable to use more width than it
11175
<.*?>
< table.height() ) {
<.*?><.*?> * might otherwise do when x-scrolling is enabled. For example if you have a
11176
<.*?>
< table.height() ) {
<.*?><.*?> * table which requires to be well spaced, this parameter is useful for
11177
<.*?>
< table.height() ) {
<.*?><.*?> * "over-sizing" the table, and thus forcing scrolling. This property can by
11178
<.*?>
< table.height() ) {
<.*?><.*?> * any CSS unit, or a number (in which case it will be treated as a pixel
11179
<.*?>
< table.height() ) {
<.*?><.*?> * measurement).
11180
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
11181
<.*?>
< table.height() ) {
<.*?><.*?> * @default <i>blank string - i.e. disabled</i>
11182
<.*?>
< table.height() ) {
<.*?><.*?> *
11183
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Options
11184
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.scrollXInner
11185
<.*?>
< table.height() ) {
<.*?><.*?> *
11186
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11187
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11188
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11189
<.*?>
< table.height() ) {
<.*?><.*?> * "scrollX": "100%",
11190
<.*?>
< table.height() ) {
<.*?><.*?> * "scrollXInner": "110%"
11191
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11192
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11193
<.*?>
< table.height() ) {
<.*?><.*?> */
11194
<.*?>
< table.height() ) {
<.*?><.*?> "sScrollXInner": "",
11195
 
11196
 
11197
<.*?>
< table.height() ) {
<.*?><.*?> /**
11198
<.*?>
< table.height() ) {
<.*?><.*?> * Enable vertical scrolling. Vertical scrolling will constrain the DataTable
11199
<.*?>
< table.height() ) {
<.*?><.*?> * to the given height, and enable scrolling for any data which overflows the
11200
<.*?>
< table.height() ) {
<.*?><.*?> * current viewport. This can be used as an alternative to paging to display
11201
<.*?>
< table.height() ) {
<.*?><.*?> * a lot of data in a small area (although paging and scrolling can both be
11202
<.*?>
< table.height() ) {
<.*?><.*?> * enabled at the same time). This property can be any CSS unit, or a number
11203
<.*?>
< table.height() ) {
<.*?><.*?> * (in which case it will be treated as a pixel measurement).
11204
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
11205
<.*?>
< table.height() ) {
<.*?><.*?> * @default <i>blank string - i.e. disabled</i>
11206
<.*?>
< table.height() ) {
<.*?><.*?> *
11207
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Features
11208
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.scrollY
11209
<.*?>
< table.height() ) {
<.*?><.*?> *
11210
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11211
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11212
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11213
<.*?>
< table.height() ) {
<.*?><.*?> * "scrollY": "200px",
11214
<.*?>
< table.height() ) {
<.*?><.*?> * "paginate": false
11215
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11216
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11217
<.*?>
< table.height() ) {
<.*?><.*?> */
11218
<.*?>
< table.height() ) {
<.*?><.*?> "sScrollY": "",
11219
 
11220
 
11221
<.*?>
< table.height() ) {
<.*?><.*?> /**
11222
<.*?>
< table.height() ) {
<.*?><.*?> * __Deprecated__ The functionality provided by this parameter has now been
11223
<.*?>
< table.height() ) {
<.*?><.*?> * superseded by that provided through `ajax`, which should be used instead.
11224
<.*?>
< table.height() ) {
<.*?><.*?> *
11225
<.*?>
< table.height() ) {
<.*?><.*?> * Set the HTTP method that is used to make the Ajax call for server-side
11226
<.*?>
< table.height() ) {
<.*?><.*?> * processing or Ajax sourced data.
11227
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
11228
<.*?>
< table.height() ) {
<.*?><.*?> * @default GET
11229
<.*?>
< table.height() ) {
<.*?><.*?> *
11230
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Options
11231
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Server-side
11232
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.serverMethod
11233
<.*?>
< table.height() ) {
<.*?><.*?> *
11234
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated 1.10. Please use `ajax` for this functionality now.
11235
<.*?>
< table.height() ) {
<.*?><.*?> */
11236
<.*?>
< table.height() ) {
<.*?><.*?> "sServerMethod": "GET",
11237
 
11238
 
11239
<.*?>
< table.height() ) {
<.*?><.*?> /**
11240
<.*?>
< table.height() ) {
<.*?><.*?> * DataTables makes use of renderers when displaying HTML elements for
11241
<.*?>
< table.height() ) {
<.*?><.*?> * a table. These renderers can be added or modified by plug-ins to
11242
<.*?>
< table.height() ) {
<.*?><.*?> * generate suitable mark-up for a site. For example the Bootstrap
11243
<.*?>
< table.height() ) {
<.*?><.*?> * integration plug-in for DataTables uses a paging button renderer to
11244
<.*?>
< table.height() ) {
<.*?><.*?> * display pagination buttons in the mark-up required by Bootstrap.
11245
<.*?>
< table.height() ) {
<.*?><.*?> *
11246
<.*?>
< table.height() ) {
<.*?><.*?> * For further information about the renderers available see
11247
<.*?>
< table.height() ) {
<.*?><.*?> * DataTable.ext.renderer
11248
<.*?>
< table.height() ) {
<.*?><.*?> * @type string|object
11249
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
11250
<.*?>
< table.height() ) {
<.*?><.*?> *
11251
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.renderer
11252
<.*?>
< table.height() ) {
<.*?><.*?> *
11253
<.*?>
< table.height() ) {
<.*?><.*?> */
11254
<.*?>
< table.height() ) {
<.*?><.*?> "renderer": null
11255
<.*?>
< table.height() ) {
<.*?><.*?> };
11256
 
11257
<.*?>
< table.height() ) {
<.*?><.*?> _fnHungarianMap( DataTable.defaults );
11258
 
11259
 
11260
 
11261
<.*?>
< table.height() ) {
<.*?><.*?> /*
11262
<.*?>
< table.height() ) {
<.*?><.*?> * Developer note - See note in model.defaults.js about the use of Hungarian
11263
<.*?>
< table.height() ) {
<.*?><.*?> * notation and camel case.
11264
<.*?>
< table.height() ) {
<.*?><.*?> */
11265
 
11266
<.*?>
< table.height() ) {
<.*?><.*?> /**
11267
<.*?>
< table.height() ) {
<.*?><.*?> * Column options that can be given to DataTables at initialisation time.
11268
<.*?>
< table.height() ) {
<.*?><.*?> * @namespace
11269
<.*?>
< table.height() ) {
<.*?><.*?> */
11270
<.*?>
< table.height() ) {
<.*?><.*?> DataTable.defaults.column = {
11271
<.*?>
< table.height() ) {
<.*?><.*?> /**
11272
<.*?>
< table.height() ) {
<.*?><.*?> * Define which column(s) an order will occur on for this column. This
11273
<.*?>
< table.height() ) {
<.*?><.*?> * allows a column's ordering to take multiple columns into account when
11274
<.*?>
< table.height() ) {
<.*?><.*?> * doing a sort or use the data from a different column. For example first
11275
<.*?>
< table.height() ) {
<.*?><.*?> * name / last name columns make sense to do a multi-column sort over the
11276
<.*?>
< table.height() ) {
<.*?><.*?> * two columns.
11277
<.*?>
< table.height() ) {
<.*?><.*?> * @type array|int
11278
<.*?>
< table.height() ) {
<.*?><.*?> * @default null <i>Takes the value of the column index automatically</i>
11279
<.*?>
< table.height() ) {
<.*?><.*?> *
11280
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.column.orderData
11281
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Columns
11282
<.*?>
< table.height() ) {
<.*?><.*?> *
11283
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11284
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columnDefs`
11285
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11286
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11287
<.*?>
< table.height() ) {
<.*?><.*?> * "columnDefs": [
11288
<.*?>
< table.height() ) {
<.*?><.*?> * { "orderData": [ 0, 1 ], "targets": [ 0 ] },
11289
<.*?>
< table.height() ) {
<.*?><.*?> * { "orderData": [ 1, 0 ], "targets": [ 1 ] },
11290
<.*?>
< table.height() ) {
<.*?><.*?> * { "orderData": 2, "targets": [ 2 ] }
11291
<.*?>
< table.height() ) {
<.*?><.*?> * ]
11292
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11293
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11294
<.*?>
< table.height() ) {
<.*?><.*?> *
11295
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11296
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columns`
11297
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11298
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11299
<.*?>
< table.height() ) {
<.*?><.*?> * "columns": [
11300
<.*?>
< table.height() ) {
<.*?><.*?> * { "orderData": [ 0, 1 ] },
11301
<.*?>
< table.height() ) {
<.*?><.*?> * { "orderData": [ 1, 0 ] },
11302
<.*?>
< table.height() ) {
<.*?><.*?> * { "orderData": 2 },
11303
<.*?>
< table.height() ) {
<.*?><.*?> * null,
11304
<.*?>
< table.height() ) {
<.*?><.*?> * null
11305
<.*?>
< table.height() ) {
<.*?><.*?> * ]
11306
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11307
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11308
<.*?>
< table.height() ) {
<.*?><.*?> */
11309
<.*?>
< table.height() ) {
<.*?><.*?> "aDataSort": null,
11310
<.*?>
< table.height() ) {
<.*?><.*?> "iDataSort": -1,
11311
 
11312
 
11313
<.*?>
< table.height() ) {
<.*?><.*?> /**
11314
<.*?>
< table.height() ) {
<.*?><.*?> * You can control the default ordering direction, and even alter the
11315
<.*?>
< table.height() ) {
<.*?><.*?> * behaviour of the sort handler (i.e. only allow ascending ordering etc)
11316
<.*?>
< table.height() ) {
<.*?><.*?> * using this parameter.
11317
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
11318
<.*?>
< table.height() ) {
<.*?><.*?> * @default [ 'asc', 'desc' ]
11319
<.*?>
< table.height() ) {
<.*?><.*?> *
11320
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.column.orderSequence
11321
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Columns
11322
<.*?>
< table.height() ) {
<.*?><.*?> *
11323
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11324
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columnDefs`
11325
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11326
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11327
<.*?>
< table.height() ) {
<.*?><.*?> * "columnDefs": [
11328
<.*?>
< table.height() ) {
<.*?><.*?> * { "orderSequence": [ "asc" ], "targets": [ 1 ] },
11329
<.*?>
< table.height() ) {
<.*?><.*?> * { "orderSequence": [ "desc", "asc", "asc" ], "targets": [ 2 ] },
11330
<.*?>
< table.height() ) {
<.*?><.*?> * { "orderSequence": [ "desc" ], "targets": [ 3 ] }
11331
<.*?>
< table.height() ) {
<.*?><.*?> * ]
11332
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11333
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11334
<.*?>
< table.height() ) {
<.*?><.*?> *
11335
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11336
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columns`
11337
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11338
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11339
<.*?>
< table.height() ) {
<.*?><.*?> * "columns": [
11340
<.*?>
< table.height() ) {
<.*?><.*?> * null,
11341
<.*?>
< table.height() ) {
<.*?><.*?> * { "orderSequence": [ "asc" ] },
11342
<.*?>
< table.height() ) {
<.*?><.*?> * { "orderSequence": [ "desc", "asc", "asc" ] },
11343
<.*?>
< table.height() ) {
<.*?><.*?> * { "orderSequence": [ "desc" ] },
11344
<.*?>
< table.height() ) {
<.*?><.*?> * null
11345
<.*?>
< table.height() ) {
<.*?><.*?> * ]
11346
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11347
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11348
<.*?>
< table.height() ) {
<.*?><.*?> */
11349
<.*?>
< table.height() ) {
<.*?><.*?> "asSorting": [ 'asc', 'desc' ],
11350
 
11351
 
11352
<.*?>
< table.height() ) {
<.*?><.*?> /**
11353
<.*?>
< table.height() ) {
<.*?><.*?> * Enable or disable filtering on the data in this column.
11354
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
11355
<.*?>
< table.height() ) {
<.*?><.*?> * @default true
11356
<.*?>
< table.height() ) {
<.*?><.*?> *
11357
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.column.searchable
11358
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Columns
11359
<.*?>
< table.height() ) {
<.*?><.*?> *
11360
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11361
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columnDefs`
11362
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11363
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11364
<.*?>
< table.height() ) {
<.*?><.*?> * "columnDefs": [
11365
<.*?>
< table.height() ) {
<.*?><.*?> * { "searchable": false, "targets": [ 0 ] }
11366
<.*?>
< table.height() ) {
<.*?><.*?> * ] } );
11367
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11368
<.*?>
< table.height() ) {
<.*?><.*?> *
11369
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11370
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columns`
11371
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11372
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11373
<.*?>
< table.height() ) {
<.*?><.*?> * "columns": [
11374
<.*?>
< table.height() ) {
<.*?><.*?> * { "searchable": false },
11375
<.*?>
< table.height() ) {
<.*?><.*?> * null,
11376
<.*?>
< table.height() ) {
<.*?><.*?> * null,
11377
<.*?>
< table.height() ) {
<.*?><.*?> * null,
11378
<.*?>
< table.height() ) {
<.*?><.*?> * null
11379
<.*?>
< table.height() ) {
<.*?><.*?> * ] } );
11380
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11381
<.*?>
< table.height() ) {
<.*?><.*?> */
11382
<.*?>
< table.height() ) {
<.*?><.*?> "bSearchable": true,
11383
 
11384
 
11385
<.*?>
< table.height() ) {
<.*?><.*?> /**
11386
<.*?>
< table.height() ) {
<.*?><.*?> * Enable or disable ordering on this column.
11387
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
11388
<.*?>
< table.height() ) {
<.*?><.*?> * @default true
11389
<.*?>
< table.height() ) {
<.*?><.*?> *
11390
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.column.orderable
11391
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Columns
11392
<.*?>
< table.height() ) {
<.*?><.*?> *
11393
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11394
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columnDefs`
11395
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11396
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11397
<.*?>
< table.height() ) {
<.*?><.*?> * "columnDefs": [
11398
<.*?>
< table.height() ) {
<.*?><.*?> * { "orderable": false, "targets": [ 0 ] }
11399
<.*?>
< table.height() ) {
<.*?><.*?> * ] } );
11400
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11401
<.*?>
< table.height() ) {
<.*?><.*?> *
11402
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11403
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columns`
11404
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11405
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11406
<.*?>
< table.height() ) {
<.*?><.*?> * "columns": [
11407
<.*?>
< table.height() ) {
<.*?><.*?> * { "orderable": false },
11408
<.*?>
< table.height() ) {
<.*?><.*?> * null,
11409
<.*?>
< table.height() ) {
<.*?><.*?> * null,
11410
<.*?>
< table.height() ) {
<.*?><.*?> * null,
11411
<.*?>
< table.height() ) {
<.*?><.*?> * null
11412
<.*?>
< table.height() ) {
<.*?><.*?> * ] } );
11413
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11414
<.*?>
< table.height() ) {
<.*?><.*?> */
11415
<.*?>
< table.height() ) {
<.*?><.*?> "bSortable": true,
11416
 
11417
 
11418
<.*?>
< table.height() ) {
<.*?><.*?> /**
11419
<.*?>
< table.height() ) {
<.*?><.*?> * Enable or disable the display of this column.
11420
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
11421
<.*?>
< table.height() ) {
<.*?><.*?> * @default true
11422
<.*?>
< table.height() ) {
<.*?><.*?> *
11423
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.column.visible
11424
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Columns
11425
<.*?>
< table.height() ) {
<.*?><.*?> *
11426
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11427
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columnDefs`
11428
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11429
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11430
<.*?>
< table.height() ) {
<.*?><.*?> * "columnDefs": [
11431
<.*?>
< table.height() ) {
<.*?><.*?> * { "visible": false, "targets": [ 0 ] }
11432
<.*?>
< table.height() ) {
<.*?><.*?> * ] } );
11433
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11434
<.*?>
< table.height() ) {
<.*?><.*?> *
11435
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11436
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columns`
11437
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11438
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11439
<.*?>
< table.height() ) {
<.*?><.*?> * "columns": [
11440
<.*?>
< table.height() ) {
<.*?><.*?> * { "visible": false },
11441
<.*?>
< table.height() ) {
<.*?><.*?> * null,
11442
<.*?>
< table.height() ) {
<.*?><.*?> * null,
11443
<.*?>
< table.height() ) {
<.*?><.*?> * null,
11444
<.*?>
< table.height() ) {
<.*?><.*?> * null
11445
<.*?>
< table.height() ) {
<.*?><.*?> * ] } );
11446
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11447
<.*?>
< table.height() ) {
<.*?><.*?> */
11448
<.*?>
< table.height() ) {
<.*?><.*?> "bVisible": true,
11449
 
11450
 
11451
<.*?>
< table.height() ) {
<.*?><.*?> /**
11452
<.*?>
< table.height() ) {
<.*?><.*?> * Developer definable function that is called whenever a cell is created (Ajax source,
11453
<.*?>
< table.height() ) {
<.*?><.*?> * etc) or processed for input (DOM source). This can be used as a compliment to mRender
11454
<.*?>
< table.height() ) {
<.*?><.*?> * allowing you to modify the DOM element (add background colour for example) when the
11455
<.*?>
< table.height() ) {
<.*?><.*?> * element is available.
11456
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
11457
<.*?>
< table.height() ) {
<.*?><.*?> * @param {element} td The TD node that has been created
11458
<.*?>
< table.height() ) {
<.*?><.*?> * @param {*} cellData The Data for the cell
11459
<.*?>
< table.height() ) {
<.*?><.*?> * @param {array|object} rowData The data for the whole row
11460
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} row The row index for the aoData data store
11461
<.*?>
< table.height() ) {
<.*?><.*?> * @param {int} col The column index for aoColumns
11462
<.*?>
< table.height() ) {
<.*?><.*?> *
11463
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.column.createdCell
11464
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Columns
11465
<.*?>
< table.height() ) {
<.*?><.*?> *
11466
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11467
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11468
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11469
<.*?>
< table.height() ) {
<.*?><.*?> * "columnDefs": [ {
11470
<.*?>
< table.height() ) {
<.*?><.*?> * "targets": [3],
11471
<.*?>
< table.height() ) {
<.*?><.*?> * "createdCell": function (td, cellData, rowData, row, col) {
11472
<.*?>
< table.height() ) {
<.*?><.*?> * if ( cellData == "1.7" ) {
11473
<.*?>
< table.height() ) {
<.*?><.*?> * $(td).css('color', 'blue')
11474
<.*?>
< table.height() ) {
<.*?><.*?> * }
11475
<.*?>
< table.height() ) {
<.*?><.*?> * }
11476
<.*?>
< table.height() ) {
<.*?><.*?> * } ]
11477
<.*?>
< table.height() ) {
<.*?><.*?> * });
11478
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11479
<.*?>
< table.height() ) {
<.*?><.*?> */
11480
<.*?>
< table.height() ) {
<.*?><.*?> "fnCreatedCell": null,
11481
 
11482
 
11483
<.*?>
< table.height() ) {
<.*?><.*?> /**
11484
<.*?>
< table.height() ) {
<.*?><.*?> * This parameter has been replaced by `data` in DataTables to ensure naming
11485
<.*?>
< table.height() ) {
<.*?><.*?> * consistency. `dataProp` can still be used, as there is backwards
11486
<.*?>
< table.height() ) {
<.*?><.*?> * compatibility in DataTables for this option, but it is strongly
11487
<.*?>
< table.height() ) {
<.*?><.*?> * recommended that you use `data` in preference to `dataProp`.
11488
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.column.dataProp
11489
<.*?>
< table.height() ) {
<.*?><.*?> */
11490
 
11491
 
11492
<.*?>
< table.height() ) {
<.*?><.*?> /**
11493
<.*?>
< table.height() ) {
<.*?><.*?> * This property can be used to read data from any data source property,
11494
<.*?>
< table.height() ) {
<.*?><.*?> * including deeply nested objects / properties. `data` can be given in a
11495
<.*?>
< table.height() ) {
<.*?><.*?> * number of different ways which effect its behaviour:
11496
<.*?>
< table.height() ) {
<.*?><.*?> *
11497
<.*?>
< table.height() ) {
<.*?><.*?> * * `integer` - treated as an array index for the data source. This is the
11498
<.*?>
< table.height() ) {
<.*?><.*?> * default that DataTables uses (incrementally increased for each column).
11499
<.*?>
< table.height() ) {
<.*?><.*?> * * `string` - read an object property from the data source. There are
11500
<.*?>
< table.height() ) {
<.*?><.*?> * three 'special' options that can be used in the string to alter how
11501
<.*?>
< table.height() ) {
<.*?><.*?> * DataTables reads the data from the source object:
11502
<.*?>
< table.height() ) {
<.*?><.*?> * * `.` - Dotted Javascript notation. Just as you use a `.` in
11503
<.*?>
< table.height() ) {
<.*?><.*?> * Javascript to read from nested objects, so to can the options
11504
<.*?>
< table.height() ) {
<.*?><.*?> * specified in `data`. For example: `browser.version` or
11505
<.*?>
< table.height() ) {
<.*?><.*?> * `browser.name`. If your object parameter name contains a period, use
11506
<.*?>
< table.height() ) {
<.*?><.*?> * `\\` to escape it - i.e. `first\\.name`.
11507
<.*?>
< table.height() ) {
<.*?><.*?> * * `[]` - Array notation. DataTables can automatically combine data
11508
<.*?>
< table.height() ) {
<.*?><.*?> * from and array source, joining the data with the characters provided
11509
<.*?>
< table.height() ) {
<.*?><.*?> * between the two brackets. For example: `name[, ]` would provide a
11510
<.*?>
< table.height() ) {
<.*?><.*?> * comma-space separated list from the source array. If no characters
11511
<.*?>
< table.height() ) {
<.*?><.*?> * are provided between the brackets, the original array source is
11512
<.*?>
< table.height() ) {
<.*?><.*?> * returned.
11513
<.*?>
< table.height() ) {
<.*?><.*?> * * `()` - Function notation. Adding `()` to the end of a parameter will
11514
<.*?>
< table.height() ) {
<.*?><.*?> * execute a function of the name given. For example: `browser()` for a
11515
<.*?>
< table.height() ) {
<.*?><.*?> * simple function on the data source, `browser.version()` for a
11516
<.*?>
< table.height() ) {
<.*?><.*?> * function in a nested property or even `browser().version` to get an
11517
<.*?>
< table.height() ) {
<.*?><.*?> * object property if the function called returns an object. Note that
11518
<.*?>
< table.height() ) {
<.*?><.*?> * function notation is recommended for use in `render` rather than
11519
<.*?>
< table.height() ) {
<.*?><.*?> * `data` as it is much simpler to use as a renderer.
11520
<.*?>
< table.height() ) {
<.*?><.*?> * * `null` - use the original data source for the row rather than plucking
11521
<.*?>
< table.height() ) {
<.*?><.*?> * data directly from it. This action has effects on two other
11522
<.*?>
< table.height() ) {
<.*?><.*?> * initialisation options:
11523
<.*?>
< table.height() ) {
<.*?><.*?> * * `defaultContent` - When null is given as the `data` option and
11524
<.*?>
< table.height() ) {
<.*?><.*?> * `defaultContent` is specified for the column, the value defined by
11525
<.*?>
< table.height() ) {
<.*?><.*?> * `defaultContent` will be used for the cell.
11526
<.*?>
< table.height() ) {
<.*?><.*?> * * `render` - When null is used for the `data` option and the `render`
11527
<.*?>
< table.height() ) {
<.*?><.*?> * option is specified for the column, the whole data source for the
11528
<.*?>
< table.height() ) {
<.*?><.*?> * row is used for the renderer.
11529
<.*?>
< table.height() ) {
<.*?><.*?> * * `function` - the function given will be executed whenever DataTables
11530
<.*?>
< table.height() ) {
<.*?><.*?> * needs to set or get the data for a cell in the column. The function
11531
<.*?>
< table.height() ) {
<.*?><.*?> * takes three parameters:
11532
<.*?>
< table.height() ) {
<.*?><.*?> * * Parameters:
11533
<.*?>
< table.height() ) {
<.*?><.*?> * * `{array|object}` The data source for the row
11534
<.*?>
< table.height() ) {
<.*?><.*?> * * `{string}` The type call data requested - this will be 'set' when
11535
<.*?>
< table.height() ) {
<.*?><.*?> * setting data or 'filter', 'display', 'type', 'sort' or undefined
11536
<.*?>
< table.height() ) {
<.*?><.*?> * when gathering data. Note that when `undefined` is given for the
11537
<.*?>
< table.height() ) {
<.*?><.*?> * type DataTables expects to get the raw data for the object back<
11538
<.*?>
< table.height() ) {
<.*?><.*?> * * `{*}` Data to set when the second parameter is 'set'.
11539
<.*?>
< table.height() ) {
<.*?><.*?> * * Return:
11540
<.*?>
< table.height() ) {
<.*?><.*?> * * The return value from the function is not required when 'set' is
11541
<.*?>
< table.height() ) {
<.*?><.*?> * the type of call, but otherwise the return is what will be used
11542
<.*?>
< table.height() ) {
<.*?><.*?> * for the data requested.
11543
<.*?>
< table.height() ) {
<.*?><.*?> *
11544
<.*?>
< table.height() ) {
<.*?><.*?> * Note that `data` is a getter and setter option. If you just require
11545
<.*?>
< table.height() ) {
<.*?><.*?> * formatting of data for output, you will likely want to use `render` which
11546
<.*?>
< table.height() ) {
<.*?><.*?> * is simply a getter and thus simpler to use.
11547
<.*?>
< table.height() ) {
<.*?><.*?> *
11548
<.*?>
< table.height() ) {
<.*?><.*?> * Note that prior to DataTables 1.9.2 `data` was called `mDataProp`. The
11549
<.*?>
< table.height() ) {
<.*?><.*?> * name change reflects the flexibility of this property and is consistent
11550
<.*?>
< table.height() ) {
<.*?><.*?> * with the naming of mRender. If 'mDataProp' is given, then it will still
11551
<.*?>
< table.height() ) {
<.*?><.*?> * be used by DataTables, as it automatically maps the old name to the new
11552
<.*?>
< table.height() ) {
<.*?><.*?> * if required.
11553
<.*?>
< table.height() ) {
<.*?><.*?> *
11554
<.*?>
< table.height() ) {
<.*?><.*?> * @type string|int|function|null
11555
<.*?>
< table.height() ) {
<.*?><.*?> * @default null <i>Use automatically calculated column index</i>
11556
<.*?>
< table.height() ) {
<.*?><.*?> *
11557
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.column.data
11558
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Columns
11559
<.*?>
< table.height() ) {
<.*?><.*?> *
11560
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11561
<.*?>
< table.height() ) {
<.*?><.*?> * // Read table data from objects
11562
<.*?>
< table.height() ) {
<.*?><.*?> * // JSON structure for each row:
11563
<.*?>
< table.height() ) {
<.*?><.*?> * // {
11564
<.*?>
< table.height() ) {
<.*?><.*?> * // "engine": {value},
11565
<.*?>
< table.height() ) {
<.*?><.*?> * // "browser": {value},
11566
<.*?>
< table.height() ) {
<.*?><.*?> * // "platform": {value},
11567
<.*?>
< table.height() ) {
<.*?><.*?> * // "version": {value},
11568
<.*?>
< table.height() ) {
<.*?><.*?> * // "grade": {value}
11569
<.*?>
< table.height() ) {
<.*?><.*?> * // }
11570
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11571
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11572
<.*?>
< table.height() ) {
<.*?><.*?> * "ajaxSource": "sources/objects.txt",
11573
<.*?>
< table.height() ) {
<.*?><.*?> * "columns": [
11574
<.*?>
< table.height() ) {
<.*?><.*?> * { "data": "engine" },
11575
<.*?>
< table.height() ) {
<.*?><.*?> * { "data": "browser" },
11576
<.*?>
< table.height() ) {
<.*?><.*?> * { "data": "platform" },
11577
<.*?>
< table.height() ) {
<.*?><.*?> * { "data": "version" },
11578
<.*?>
< table.height() ) {
<.*?><.*?> * { "data": "grade" }
11579
<.*?>
< table.height() ) {
<.*?><.*?> * ]
11580
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11581
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11582
<.*?>
< table.height() ) {
<.*?><.*?> *
11583
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11584
<.*?>
< table.height() ) {
<.*?><.*?> * // Read information from deeply nested objects
11585
<.*?>
< table.height() ) {
<.*?><.*?> * // JSON structure for each row:
11586
<.*?>
< table.height() ) {
<.*?><.*?> * // {
11587
<.*?>
< table.height() ) {
<.*?><.*?> * // "engine": {value},
11588
<.*?>
< table.height() ) {
<.*?><.*?> * // "browser": {value},
11589
<.*?>
< table.height() ) {
<.*?><.*?> * // "platform": {
11590
<.*?>
< table.height() ) {
<.*?><.*?> * // "inner": {value}
11591
<.*?>
< table.height() ) {
<.*?><.*?> * // },
11592
<.*?>
< table.height() ) {
<.*?><.*?> * // "details": [
11593
<.*?>
< table.height() ) {
<.*?><.*?> * // {value}, {value}
11594
<.*?>
< table.height() ) {
<.*?><.*?> * // ]
11595
<.*?>
< table.height() ) {
<.*?><.*?> * // }
11596
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11597
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11598
<.*?>
< table.height() ) {
<.*?><.*?> * "ajaxSource": "sources/deep.txt",
11599
<.*?>
< table.height() ) {
<.*?><.*?> * "columns": [
11600
<.*?>
< table.height() ) {
<.*?><.*?> * { "data": "engine" },
11601
<.*?>
< table.height() ) {
<.*?><.*?> * { "data": "browser" },
11602
<.*?>
< table.height() ) {
<.*?><.*?> * { "data": "platform.inner" },
11603
<.*?>
< table.height() ) {
<.*?><.*?> * { "data": "platform.details.0" },
11604
<.*?>
< table.height() ) {
<.*?><.*?> * { "data": "platform.details.1" }
11605
<.*?>
< table.height() ) {
<.*?><.*?> * ]
11606
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11607
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11608
<.*?>
< table.height() ) {
<.*?><.*?> *
11609
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11610
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `data` as a function to provide different information for
11611
<.*?>
< table.height() ) {
<.*?><.*?> * // sorting, filtering and display. In this case, currency (price)
11612
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11613
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11614
<.*?>
< table.height() ) {
<.*?><.*?> * "columnDefs": [ {
11615
<.*?>
< table.height() ) {
<.*?><.*?> * "targets": [ 0 ],
11616
<.*?>
< table.height() ) {
<.*?><.*?> * "data": function ( source, type, val ) {
11617
<.*?>
< table.height() ) {
<.*?><.*?> * if (type === 'set') {
11618
<.*?>
< table.height() ) {
<.*?><.*?> * source.price = val;
11619
<.*?>
< table.height() ) {
<.*?><.*?> * // Store the computed dislay and filter values for efficiency
11620
<.*?>
< table.height() ) {
<.*?><.*?> * source.price_display = val=="" ? "" : "$"+numberFormat(val);
11621
<.*?>
< table.height() ) {
<.*?><.*?> * source.price_filter = val=="" ? "" : "$"+numberFormat(val)+" "+val;
11622
<.*?>
< table.height() ) {
<.*?><.*?> * return;
11623
<.*?>
< table.height() ) {
<.*?><.*?> * }
11624
<.*?>
< table.height() ) {
<.*?><.*?> * else if (type === 'display') {
11625
<.*?>
< table.height() ) {
<.*?><.*?> * return source.price_display;
11626
<.*?>
< table.height() ) {
<.*?><.*?> * }
11627
<.*?>
< table.height() ) {
<.*?><.*?> * else if (type === 'filter') {
11628
<.*?>
< table.height() ) {
<.*?><.*?> * return source.price_filter;
11629
<.*?>
< table.height() ) {
<.*?><.*?> * }
11630
<.*?>
< table.height() ) {
<.*?><.*?> * // 'sort', 'type' and undefined all just use the integer
11631
<.*?>
< table.height() ) {
<.*?><.*?> * return source.price;
11632
<.*?>
< table.height() ) {
<.*?><.*?> * }
11633
<.*?>
< table.height() ) {
<.*?><.*?> * } ]
11634
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11635
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11636
<.*?>
< table.height() ) {
<.*?><.*?> *
11637
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11638
<.*?>
< table.height() ) {
<.*?><.*?> * // Using default content
11639
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11640
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11641
<.*?>
< table.height() ) {
<.*?><.*?> * "columnDefs": [ {
11642
<.*?>
< table.height() ) {
<.*?><.*?> * "targets": [ 0 ],
11643
<.*?>
< table.height() ) {
<.*?><.*?> * "data": null,
11644
<.*?>
< table.height() ) {
<.*?><.*?> * "defaultContent": "Click to edit"
11645
<.*?>
< table.height() ) {
<.*?><.*?> * } ]
11646
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11647
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11648
<.*?>
< table.height() ) {
<.*?><.*?> *
11649
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11650
<.*?>
< table.height() ) {
<.*?><.*?> * // Using array notation - outputting a list from an array
11651
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11652
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11653
<.*?>
< table.height() ) {
<.*?><.*?> * "columnDefs": [ {
11654
<.*?>
< table.height() ) {
<.*?><.*?> * "targets": [ 0 ],
11655
<.*?>
< table.height() ) {
<.*?><.*?> * "data": "name[, ]"
11656
<.*?>
< table.height() ) {
<.*?><.*?> * } ]
11657
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11658
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11659
<.*?>
< table.height() ) {
<.*?><.*?> *
11660
<.*?>
< table.height() ) {
<.*?><.*?> */
11661
<.*?>
< table.height() ) {
<.*?><.*?> "mData": null,
11662
 
11663
 
11664
<.*?>
< table.height() ) {
<.*?><.*?> /**
11665
<.*?>
< table.height() ) {
<.*?><.*?> * This property is the rendering partner to `data` and it is suggested that
11666
<.*?>
< table.height() ) {
<.*?><.*?> * when you want to manipulate data for display (including filtering,
11667
<.*?>
< table.height() ) {
<.*?><.*?> * sorting etc) without altering the underlying data for the table, use this
11668
<.*?>
< table.height() ) {
<.*?><.*?> * property. `render` can be considered to be the the read only companion to
11669
<.*?>
< table.height() ) {
<.*?><.*?> * `data` which is read / write (then as such more complex). Like `data`
11670
<.*?>
< table.height() ) {
<.*?><.*?> * this option can be given in a number of different ways to effect its
11671
<.*?>
< table.height() ) {
<.*?><.*?> * behaviour:
11672
<.*?>
< table.height() ) {
<.*?><.*?> *
11673
<.*?>
< table.height() ) {
<.*?><.*?> * * `integer` - treated as an array index for the data source. This is the
11674
<.*?>
< table.height() ) {
<.*?><.*?> * default that DataTables uses (incrementally increased for each column).
11675
<.*?>
< table.height() ) {
<.*?><.*?> * * `string` - read an object property from the data source. There are
11676
<.*?>
< table.height() ) {
<.*?><.*?> * three 'special' options that can be used in the string to alter how
11677
<.*?>
< table.height() ) {
<.*?><.*?> * DataTables reads the data from the source object:
11678
<.*?>
< table.height() ) {
<.*?><.*?> * * `.` - Dotted Javascript notation. Just as you use a `.` in
11679
<.*?>
< table.height() ) {
<.*?><.*?> * Javascript to read from nested objects, so to can the options
11680
<.*?>
< table.height() ) {
<.*?><.*?> * specified in `data`. For example: `browser.version` or
11681
<.*?>
< table.height() ) {
<.*?><.*?> * `browser.name`. If your object parameter name contains a period, use
11682
<.*?>
< table.height() ) {
<.*?><.*?> * `\\` to escape it - i.e. `first\\.name`.
11683
<.*?>
< table.height() ) {
<.*?><.*?> * * `[]` - Array notation. DataTables can automatically combine data
11684
<.*?>
< table.height() ) {
<.*?><.*?> * from and array source, joining the data with the characters provided
11685
<.*?>
< table.height() ) {
<.*?><.*?> * between the two brackets. For example: `name[, ]` would provide a
11686
<.*?>
< table.height() ) {
<.*?><.*?> * comma-space separated list from the source array. If no characters
11687
<.*?>
< table.height() ) {
<.*?><.*?> * are provided between the brackets, the original array source is
11688
<.*?>
< table.height() ) {
<.*?><.*?> * returned.
11689
<.*?>
< table.height() ) {
<.*?><.*?> * * `()` - Function notation. Adding `()` to the end of a parameter will
11690
<.*?>
< table.height() ) {
<.*?><.*?> * execute a function of the name given. For example: `browser()` for a
11691
<.*?>
< table.height() ) {
<.*?><.*?> * simple function on the data source, `browser.version()` for a
11692
<.*?>
< table.height() ) {
<.*?><.*?> * function in a nested property or even `browser().version` to get an
11693
<.*?>
< table.height() ) {
<.*?><.*?> * object property if the function called returns an object.
11694
<.*?>
< table.height() ) {
<.*?><.*?> * * `object` - use different data for the different data types requested by
11695
<.*?>
< table.height() ) {
<.*?><.*?> * DataTables ('filter', 'display', 'type' or 'sort'). The property names
11696
<.*?>
< table.height() ) {
<.*?><.*?> * of the object is the data type the property refers to and the value can
11697
<.*?>
< table.height() ) {
<.*?><.*?> * defined using an integer, string or function using the same rules as
11698
<.*?>
< table.height() ) {
<.*?><.*?> * `render` normally does. Note that an `_` option _must_ be specified.
11699
<.*?>
< table.height() ) {
<.*?><.*?> * This is the default value to use if you haven't specified a value for
11700
<.*?>
< table.height() ) {
<.*?><.*?> * the data type requested by DataTables.
11701
<.*?>
< table.height() ) {
<.*?><.*?> * * `function` - the function given will be executed whenever DataTables
11702
<.*?>
< table.height() ) {
<.*?><.*?> * needs to set or get the data for a cell in the column. The function
11703
<.*?>
< table.height() ) {
<.*?><.*?> * takes three parameters:
11704
<.*?>
< table.height() ) {
<.*?><.*?> * * Parameters:
11705
<.*?>
< table.height() ) {
<.*?><.*?> * * {array|object} The data source for the row (based on `data`)
11706
<.*?>
< table.height() ) {
<.*?><.*?> * * {string} The type call data requested - this will be 'filter',
11707
<.*?>
< table.height() ) {
<.*?><.*?> * 'display', 'type' or 'sort'.
11708
<.*?>
< table.height() ) {
<.*?><.*?> * * {array|object} The full data source for the row (not based on
11709
<.*?>
< table.height() ) {
<.*?><.*?> * `data`)
11710
<.*?>
< table.height() ) {
<.*?><.*?> * * Return:
11711
<.*?>
< table.height() ) {
<.*?><.*?> * * The return value from the function is what will be used for the
11712
<.*?>
< table.height() ) {
<.*?><.*?> * data requested.
11713
<.*?>
< table.height() ) {
<.*?><.*?> *
11714
<.*?>
< table.height() ) {
<.*?><.*?> * @type string|int|function|object|null
11715
<.*?>
< table.height() ) {
<.*?><.*?> * @default null Use the data source value.
11716
<.*?>
< table.height() ) {
<.*?><.*?> *
11717
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.column.render
11718
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Columns
11719
<.*?>
< table.height() ) {
<.*?><.*?> *
11720
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11721
<.*?>
< table.height() ) {
<.*?><.*?> * // Create a comma separated list from an array of objects
11722
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11723
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11724
<.*?>
< table.height() ) {
<.*?><.*?> * "ajaxSource": "sources/deep.txt",
11725
<.*?>
< table.height() ) {
<.*?><.*?> * "columns": [
11726
<.*?>
< table.height() ) {
<.*?><.*?> * { "data": "engine" },
11727
<.*?>
< table.height() ) {
<.*?><.*?> * { "data": "browser" },
11728
<.*?>
< table.height() ) {
<.*?><.*?> * {
11729
<.*?>
< table.height() ) {
<.*?><.*?> * "data": "platform",
11730
<.*?>
< table.height() ) {
<.*?><.*?> * "render": "[, ].name"
11731
<.*?>
< table.height() ) {
<.*?><.*?> * }
11732
<.*?>
< table.height() ) {
<.*?><.*?> * ]
11733
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11734
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11735
<.*?>
< table.height() ) {
<.*?><.*?> *
11736
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11737
<.*?>
< table.height() ) {
<.*?><.*?> * // Execute a function to obtain data
11738
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11739
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11740
<.*?>
< table.height() ) {
<.*?><.*?> * "columnDefs": [ {
11741
<.*?>
< table.height() ) {
<.*?><.*?> * "targets": [ 0 ],
11742
<.*?>
< table.height() ) {
<.*?><.*?> * "data": null, // Use the full data source object for the renderer's source
11743
<.*?>
< table.height() ) {
<.*?><.*?> * "render": "browserName()"
11744
<.*?>
< table.height() ) {
<.*?><.*?> * } ]
11745
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11746
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11747
<.*?>
< table.height() ) {
<.*?><.*?> *
11748
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11749
<.*?>
< table.height() ) {
<.*?><.*?> * // As an object, extracting different data for the different types
11750
<.*?>
< table.height() ) {
<.*?><.*?> * // This would be used with a data source such as:
11751
<.*?>
< table.height() ) {
<.*?><.*?> * // { "phone": 5552368, "phone_filter": "5552368 555-2368", "phone_display": "555-2368" }
11752
<.*?>
< table.height() ) {
<.*?><.*?> * // Here the `phone` integer is used for sorting and type detection, while `phone_filter`
11753
<.*?>
< table.height() ) {
<.*?><.*?> * // (which has both forms) is used for filtering for if a user inputs either format, while
11754
<.*?>
< table.height() ) {
<.*?><.*?> * // the formatted phone number is the one that is shown in the table.
11755
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11756
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11757
<.*?>
< table.height() ) {
<.*?><.*?> * "columnDefs": [ {
11758
<.*?>
< table.height() ) {
<.*?><.*?> * "targets": [ 0 ],
11759
<.*?>
< table.height() ) {
<.*?><.*?> * "data": null, // Use the full data source object for the renderer's source
11760
<.*?>
< table.height() ) {
<.*?><.*?> * "render": {
11761
<.*?>
< table.height() ) {
<.*?><.*?> * "_": "phone",
11762
<.*?>
< table.height() ) {
<.*?><.*?> * "filter": "phone_filter",
11763
<.*?>
< table.height() ) {
<.*?><.*?> * "display": "phone_display"
11764
<.*?>
< table.height() ) {
<.*?><.*?> * }
11765
<.*?>
< table.height() ) {
<.*?><.*?> * } ]
11766
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11767
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11768
<.*?>
< table.height() ) {
<.*?><.*?> *
11769
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11770
<.*?>
< table.height() ) {
<.*?><.*?> * // Use as a function to create a link from the data source
11771
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11772
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11773
<.*?>
< table.height() ) {
<.*?><.*?> * "columnDefs": [ {
11774
<.*?>
< table.height() ) {
<.*?><.*?> * "targets": [ 0 ],
11775
<.*?>
< table.height() ) {
<.*?><.*?> * "data": "download_link",
11776
<.*?>
< table.height() ) {
<.*?><.*?> * "render": function ( data, type, full ) {
11777
<.*?>
< table.height() ) {
<.*?><.*?> * return '<a href="'+data+'">Download</a>';
11778
<.*?>
< table.height() ) {
<.*?><.*?> * }
11779
<.*?>
< table.height() ) {
<.*?><.*?> * } ]
11780
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11781
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11782
<.*?>
< table.height() ) {
<.*?><.*?> */
11783
<.*?>
< table.height() ) {
<.*?><.*?> "mRender": null,
11784
 
11785
 
11786
<.*?>
< table.height() ) {
<.*?><.*?> /**
11787
<.*?>
< table.height() ) {
<.*?><.*?> * Change the cell type created for the column - either TD cells or TH cells. This
11788
<.*?>
< table.height() ) {
<.*?><.*?> * can be useful as TH cells have semantic meaning in the table body, allowing them
11789
<.*?>
< table.height() ) {
<.*?><.*?> * to act as a header for a row (you may wish to add scope='row' to the TH elements).
11790
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
11791
<.*?>
< table.height() ) {
<.*?><.*?> * @default td
11792
<.*?>
< table.height() ) {
<.*?><.*?> *
11793
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.column.cellType
11794
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Columns
11795
<.*?>
< table.height() ) {
<.*?><.*?> *
11796
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11797
<.*?>
< table.height() ) {
<.*?><.*?> * // Make the first column use TH cells
11798
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11799
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11800
<.*?>
< table.height() ) {
<.*?><.*?> * "columnDefs": [ {
11801
<.*?>
< table.height() ) {
<.*?><.*?> * "targets": [ 0 ],
11802
<.*?>
< table.height() ) {
<.*?><.*?> * "cellType": "th"
11803
<.*?>
< table.height() ) {
<.*?><.*?> * } ]
11804
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11805
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11806
<.*?>
< table.height() ) {
<.*?><.*?> */
11807
<.*?>
< table.height() ) {
<.*?><.*?> "sCellType": "td",
11808
 
11809
 
11810
<.*?>
< table.height() ) {
<.*?><.*?> /**
11811
<.*?>
< table.height() ) {
<.*?><.*?> * Class to give to each cell in this column.
11812
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
11813
<.*?>
< table.height() ) {
<.*?><.*?> * @default <i>Empty string</i>
11814
<.*?>
< table.height() ) {
<.*?><.*?> *
11815
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.column.class
11816
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Columns
11817
<.*?>
< table.height() ) {
<.*?><.*?> *
11818
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11819
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columnDefs`
11820
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11821
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11822
<.*?>
< table.height() ) {
<.*?><.*?> * "columnDefs": [
11823
<.*?>
< table.height() ) {
<.*?><.*?> * { "class": "my_class", "targets": [ 0 ] }
11824
<.*?>
< table.height() ) {
<.*?><.*?> * ]
11825
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11826
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11827
<.*?>
< table.height() ) {
<.*?><.*?> *
11828
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11829
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columns`
11830
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11831
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11832
<.*?>
< table.height() ) {
<.*?><.*?> * "columns": [
11833
<.*?>
< table.height() ) {
<.*?><.*?> * { "class": "my_class" },
11834
<.*?>
< table.height() ) {
<.*?><.*?> * null,
11835
<.*?>
< table.height() ) {
<.*?><.*?> * null,
11836
<.*?>
< table.height() ) {
<.*?><.*?> * null,
11837
<.*?>
< table.height() ) {
<.*?><.*?> * null
11838
<.*?>
< table.height() ) {
<.*?><.*?> * ]
11839
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11840
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11841
<.*?>
< table.height() ) {
<.*?><.*?> */
11842
<.*?>
< table.height() ) {
<.*?><.*?> "sClass": "",
11843
 
11844
<.*?>
< table.height() ) {
<.*?><.*?> /**
11845
<.*?>
< table.height() ) {
<.*?><.*?> * When DataTables calculates the column widths to assign to each column,
11846
<.*?>
< table.height() ) {
<.*?><.*?> * it finds the longest string in each column and then constructs a
11847
<.*?>
< table.height() ) {
<.*?><.*?> * temporary table and reads the widths from that. The problem with this
11848
<.*?>
< table.height() ) {
<.*?><.*?> * is that "mmm" is much wider then "iiii", but the latter is a longer
11849
<.*?>
< table.height() ) {
<.*?><.*?> * string - thus the calculation can go wrong (doing it properly and putting
11850
<.*?>
< table.height() ) {
<.*?><.*?> * it into an DOM object and measuring that is horribly(!) slow). Thus as
11851
<.*?>
< table.height() ) {
<.*?><.*?> * a "work around" we provide this option. It will append its value to the
11852
<.*?>
< table.height() ) {
<.*?><.*?> * text that is found to be the longest string for the column - i.e. padding.
11853
<.*?>
< table.height() ) {
<.*?><.*?> * Generally you shouldn't need this!
11854
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
11855
<.*?>
< table.height() ) {
<.*?><.*?> * @default <i>Empty string<i>
11856
<.*?>
< table.height() ) {
<.*?><.*?> *
11857
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.column.contentPadding
11858
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Columns
11859
<.*?>
< table.height() ) {
<.*?><.*?> *
11860
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11861
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columns`
11862
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11863
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11864
<.*?>
< table.height() ) {
<.*?><.*?> * "columns": [
11865
<.*?>
< table.height() ) {
<.*?><.*?> * null,
11866
<.*?>
< table.height() ) {
<.*?><.*?> * null,
11867
<.*?>
< table.height() ) {
<.*?><.*?> * null,
11868
<.*?>
< table.height() ) {
<.*?><.*?> * {
11869
<.*?>
< table.height() ) {
<.*?><.*?> * "contentPadding": "mmm"
11870
<.*?>
< table.height() ) {
<.*?><.*?> * }
11871
<.*?>
< table.height() ) {
<.*?><.*?> * ]
11872
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11873
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11874
<.*?>
< table.height() ) {
<.*?><.*?> */
11875
<.*?>
< table.height() ) {
<.*?><.*?> "sContentPadding": "",
11876
 
11877
 
11878
<.*?>
< table.height() ) {
<.*?><.*?> /**
11879
<.*?>
< table.height() ) {
<.*?><.*?> * Allows a default value to be given for a column's data, and will be used
11880
<.*?>
< table.height() ) {
<.*?><.*?> * whenever a null data source is encountered (this can be because `data`
11881
<.*?>
< table.height() ) {
<.*?><.*?> * is set to null, or because the data source itself is null).
11882
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
11883
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
11884
<.*?>
< table.height() ) {
<.*?><.*?> *
11885
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.column.defaultContent
11886
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Columns
11887
<.*?>
< table.height() ) {
<.*?><.*?> *
11888
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11889
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columnDefs`
11890
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11891
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11892
<.*?>
< table.height() ) {
<.*?><.*?> * "columnDefs": [
11893
<.*?>
< table.height() ) {
<.*?><.*?> * {
11894
<.*?>
< table.height() ) {
<.*?><.*?> * "data": null,
11895
<.*?>
< table.height() ) {
<.*?><.*?> * "defaultContent": "Edit",
11896
<.*?>
< table.height() ) {
<.*?><.*?> * "targets": [ -1 ]
11897
<.*?>
< table.height() ) {
<.*?><.*?> * }
11898
<.*?>
< table.height() ) {
<.*?><.*?> * ]
11899
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11900
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11901
<.*?>
< table.height() ) {
<.*?><.*?> *
11902
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11903
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columns`
11904
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11905
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11906
<.*?>
< table.height() ) {
<.*?><.*?> * "columns": [
11907
<.*?>
< table.height() ) {
<.*?><.*?> * null,
11908
<.*?>
< table.height() ) {
<.*?><.*?> * null,
11909
<.*?>
< table.height() ) {
<.*?><.*?> * null,
11910
<.*?>
< table.height() ) {
<.*?><.*?> * {
11911
<.*?>
< table.height() ) {
<.*?><.*?> * "data": null,
11912
<.*?>
< table.height() ) {
<.*?><.*?> * "defaultContent": "Edit"
11913
<.*?>
< table.height() ) {
<.*?><.*?> * }
11914
<.*?>
< table.height() ) {
<.*?><.*?> * ]
11915
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11916
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11917
<.*?>
< table.height() ) {
<.*?><.*?> */
11918
<.*?>
< table.height() ) {
<.*?><.*?> "sDefaultContent": null,
11919
 
11920
 
11921
<.*?>
< table.height() ) {
<.*?><.*?> /**
11922
<.*?>
< table.height() ) {
<.*?><.*?> * This parameter is only used in DataTables' server-side processing. It can
11923
<.*?>
< table.height() ) {
<.*?><.*?> * be exceptionally useful to know what columns are being displayed on the
11924
<.*?>
< table.height() ) {
<.*?><.*?> * client side, and to map these to database fields. When defined, the names
11925
<.*?>
< table.height() ) {
<.*?><.*?> * also allow DataTables to reorder information from the server if it comes
11926
<.*?>
< table.height() ) {
<.*?><.*?> * back in an unexpected order (i.e. if you switch your columns around on the
11927
<.*?>
< table.height() ) {
<.*?><.*?> * client-side, your server-side code does not also need updating).
11928
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
11929
<.*?>
< table.height() ) {
<.*?><.*?> * @default <i>Empty string</i>
11930
<.*?>
< table.height() ) {
<.*?><.*?> *
11931
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.column.name
11932
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Columns
11933
<.*?>
< table.height() ) {
<.*?><.*?> *
11934
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11935
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columnDefs`
11936
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11937
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11938
<.*?>
< table.height() ) {
<.*?><.*?> * "columnDefs": [
11939
<.*?>
< table.height() ) {
<.*?><.*?> * { "name": "engine", "targets": [ 0 ] },
11940
<.*?>
< table.height() ) {
<.*?><.*?> * { "name": "browser", "targets": [ 1 ] },
11941
<.*?>
< table.height() ) {
<.*?><.*?> * { "name": "platform", "targets": [ 2 ] },
11942
<.*?>
< table.height() ) {
<.*?><.*?> * { "name": "version", "targets": [ 3 ] },
11943
<.*?>
< table.height() ) {
<.*?><.*?> * { "name": "grade", "targets": [ 4 ] }
11944
<.*?>
< table.height() ) {
<.*?><.*?> * ]
11945
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11946
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11947
<.*?>
< table.height() ) {
<.*?><.*?> *
11948
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11949
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columns`
11950
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11951
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11952
<.*?>
< table.height() ) {
<.*?><.*?> * "columns": [
11953
<.*?>
< table.height() ) {
<.*?><.*?> * { "name": "engine" },
11954
<.*?>
< table.height() ) {
<.*?><.*?> * { "name": "browser" },
11955
<.*?>
< table.height() ) {
<.*?><.*?> * { "name": "platform" },
11956
<.*?>
< table.height() ) {
<.*?><.*?> * { "name": "version" },
11957
<.*?>
< table.height() ) {
<.*?><.*?> * { "name": "grade" }
11958
<.*?>
< table.height() ) {
<.*?><.*?> * ]
11959
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11960
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11961
<.*?>
< table.height() ) {
<.*?><.*?> */
11962
<.*?>
< table.height() ) {
<.*?><.*?> "sName": "",
11963
 
11964
 
11965
<.*?>
< table.height() ) {
<.*?><.*?> /**
11966
<.*?>
< table.height() ) {
<.*?><.*?> * Defines a data source type for the ordering which can be used to read
11967
<.*?>
< table.height() ) {
<.*?><.*?> * real-time information from the table (updating the internally cached
11968
<.*?>
< table.height() ) {
<.*?><.*?> * version) prior to ordering. This allows ordering to occur on user
11969
<.*?>
< table.height() ) {
<.*?><.*?> * editable elements such as form inputs.
11970
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
11971
<.*?>
< table.height() ) {
<.*?><.*?> * @default std
11972
<.*?>
< table.height() ) {
<.*?><.*?> *
11973
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.column.orderDataType
11974
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Columns
11975
<.*?>
< table.height() ) {
<.*?><.*?> *
11976
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11977
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columnDefs`
11978
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11979
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11980
<.*?>
< table.height() ) {
<.*?><.*?> * "columnDefs": [
11981
<.*?>
< table.height() ) {
<.*?><.*?> * { "orderDataType": "dom-text", "targets": [ 2, 3 ] },
11982
<.*?>
< table.height() ) {
<.*?><.*?> * { "type": "numeric", "targets": [ 3 ] },
11983
<.*?>
< table.height() ) {
<.*?><.*?> * { "orderDataType": "dom-select", "targets": [ 4 ] },
11984
<.*?>
< table.height() ) {
<.*?><.*?> * { "orderDataType": "dom-checkbox", "targets": [ 5 ] }
11985
<.*?>
< table.height() ) {
<.*?><.*?> * ]
11986
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11987
<.*?>
< table.height() ) {
<.*?><.*?> * } );
11988
<.*?>
< table.height() ) {
<.*?><.*?> *
11989
<.*?>
< table.height() ) {
<.*?><.*?> * @example
11990
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columns`
11991
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
11992
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
11993
<.*?>
< table.height() ) {
<.*?><.*?> * "columns": [
11994
<.*?>
< table.height() ) {
<.*?><.*?> * null,
11995
<.*?>
< table.height() ) {
<.*?><.*?> * null,
11996
<.*?>
< table.height() ) {
<.*?><.*?> * { "orderDataType": "dom-text" },
11997
<.*?>
< table.height() ) {
<.*?><.*?> * { "orderDataType": "dom-text", "type": "numeric" },
11998
<.*?>
< table.height() ) {
<.*?><.*?> * { "orderDataType": "dom-select" },
11999
<.*?>
< table.height() ) {
<.*?><.*?> * { "orderDataType": "dom-checkbox" }
12000
<.*?>
< table.height() ) {
<.*?><.*?> * ]
12001
<.*?>
< table.height() ) {
<.*?><.*?> * } );
12002
<.*?>
< table.height() ) {
<.*?><.*?> * } );
12003
<.*?>
< table.height() ) {
<.*?><.*?> */
12004
<.*?>
< table.height() ) {
<.*?><.*?> "sSortDataType": "std",
12005
 
12006
 
12007
<.*?>
< table.height() ) {
<.*?><.*?> /**
12008
<.*?>
< table.height() ) {
<.*?><.*?> * The title of this column.
12009
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
12010
<.*?>
< table.height() ) {
<.*?><.*?> * @default null <i>Derived from the 'TH' value for this column in the
12011
<.*?>
< table.height() ) {
<.*?><.*?> * original HTML table.</i>
12012
<.*?>
< table.height() ) {
<.*?><.*?> *
12013
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.column.title
12014
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Columns
12015
<.*?>
< table.height() ) {
<.*?><.*?> *
12016
<.*?>
< table.height() ) {
<.*?><.*?> * @example
12017
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columnDefs`
12018
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
12019
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
12020
<.*?>
< table.height() ) {
<.*?><.*?> * "columnDefs": [
12021
<.*?>
< table.height() ) {
<.*?><.*?> * { "title": "My column title", "targets": [ 0 ] }
12022
<.*?>
< table.height() ) {
<.*?><.*?> * ]
12023
<.*?>
< table.height() ) {
<.*?><.*?> * } );
12024
<.*?>
< table.height() ) {
<.*?><.*?> * } );
12025
<.*?>
< table.height() ) {
<.*?><.*?> *
12026
<.*?>
< table.height() ) {
<.*?><.*?> * @example
12027
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columns`
12028
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
12029
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
12030
<.*?>
< table.height() ) {
<.*?><.*?> * "columns": [
12031
<.*?>
< table.height() ) {
<.*?><.*?> * { "title": "My column title" },
12032
<.*?>
< table.height() ) {
<.*?><.*?> * null,
12033
<.*?>
< table.height() ) {
<.*?><.*?> * null,
12034
<.*?>
< table.height() ) {
<.*?><.*?> * null,
12035
<.*?>
< table.height() ) {
<.*?><.*?> * null
12036
<.*?>
< table.height() ) {
<.*?><.*?> * ]
12037
<.*?>
< table.height() ) {
<.*?><.*?> * } );
12038
<.*?>
< table.height() ) {
<.*?><.*?> * } );
12039
<.*?>
< table.height() ) {
<.*?><.*?> */
12040
<.*?>
< table.height() ) {
<.*?><.*?> "sTitle": null,
12041
 
12042
 
12043
<.*?>
< table.height() ) {
<.*?><.*?> /**
12044
<.*?>
< table.height() ) {
<.*?><.*?> * The type allows you to specify how the data for this column will be
12045
<.*?>
< table.height() ) {
<.*?><.*?> * ordered. Four types (string, numeric, date and html (which will strip
12046
<.*?>
< table.height() ) {
<.*?><.*?> * HTML tags before ordering)) are currently available. Note that only date
12047
<.*?>
< table.height() ) {
<.*?><.*?> * formats understood by Javascript's Date() object will be accepted as type
12048
<.*?>
< table.height() ) {
<.*?><.*?> * date. For example: "Mar 26, 2008 5:03 PM". May take the values: 'string',
12049
<.*?>
< table.height() ) {
<.*?><.*?> * 'numeric', 'date' or 'html' (by default). Further types can be adding
12050
<.*?>
< table.height() ) {
<.*?><.*?> * through plug-ins.
12051
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
12052
<.*?>
< table.height() ) {
<.*?><.*?> * @default null <i>Auto-detected from raw data</i>
12053
<.*?>
< table.height() ) {
<.*?><.*?> *
12054
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.column.type
12055
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Columns
12056
<.*?>
< table.height() ) {
<.*?><.*?> *
12057
<.*?>
< table.height() ) {
<.*?><.*?> * @example
12058
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columnDefs`
12059
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
12060
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
12061
<.*?>
< table.height() ) {
<.*?><.*?> * "columnDefs": [
12062
<.*?>
< table.height() ) {
<.*?><.*?> * { "type": "html", "targets": [ 0 ] }
12063
<.*?>
< table.height() ) {
<.*?><.*?> * ]
12064
<.*?>
< table.height() ) {
<.*?><.*?> * } );
12065
<.*?>
< table.height() ) {
<.*?><.*?> * } );
12066
<.*?>
< table.height() ) {
<.*?><.*?> *
12067
<.*?>
< table.height() ) {
<.*?><.*?> * @example
12068
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columns`
12069
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
12070
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
12071
<.*?>
< table.height() ) {
<.*?><.*?> * "columns": [
12072
<.*?>
< table.height() ) {
<.*?><.*?> * { "type": "html" },
12073
<.*?>
< table.height() ) {
<.*?><.*?> * null,
12074
<.*?>
< table.height() ) {
<.*?><.*?> * null,
12075
<.*?>
< table.height() ) {
<.*?><.*?> * null,
12076
<.*?>
< table.height() ) {
<.*?><.*?> * null
12077
<.*?>
< table.height() ) {
<.*?><.*?> * ]
12078
<.*?>
< table.height() ) {
<.*?><.*?> * } );
12079
<.*?>
< table.height() ) {
<.*?><.*?> * } );
12080
<.*?>
< table.height() ) {
<.*?><.*?> */
12081
<.*?>
< table.height() ) {
<.*?><.*?> "sType": null,
12082
 
12083
 
12084
<.*?>
< table.height() ) {
<.*?><.*?> /**
12085
<.*?>
< table.height() ) {
<.*?><.*?> * Defining the width of the column, this parameter may take any CSS value
12086
<.*?>
< table.height() ) {
<.*?><.*?> * (3em, 20px etc). DataTables applies 'smart' widths to columns which have not
12087
<.*?>
< table.height() ) {
<.*?><.*?> * been given a specific width through this interface ensuring that the table
12088
<.*?>
< table.height() ) {
<.*?><.*?> * remains readable.
12089
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
12090
<.*?>
< table.height() ) {
<.*?><.*?> * @default null <i>Automatic</i>
12091
<.*?>
< table.height() ) {
<.*?><.*?> *
12092
<.*?>
< table.height() ) {
<.*?><.*?> * @name DataTable.defaults.column.width
12093
<.*?>
< table.height() ) {
<.*?><.*?> * @dtopt Columns
12094
<.*?>
< table.height() ) {
<.*?><.*?> *
12095
<.*?>
< table.height() ) {
<.*?><.*?> * @example
12096
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columnDefs`
12097
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
12098
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
12099
<.*?>
< table.height() ) {
<.*?><.*?> * "columnDefs": [
12100
<.*?>
< table.height() ) {
<.*?><.*?> * { "width": "20%", "targets": [ 0 ] }
12101
<.*?>
< table.height() ) {
<.*?><.*?> * ]
12102
<.*?>
< table.height() ) {
<.*?><.*?> * } );
12103
<.*?>
< table.height() ) {
<.*?><.*?> * } );
12104
<.*?>
< table.height() ) {
<.*?><.*?> *
12105
<.*?>
< table.height() ) {
<.*?><.*?> * @example
12106
<.*?>
< table.height() ) {
<.*?><.*?> * // Using `columns`
12107
<.*?>
< table.height() ) {
<.*?><.*?> * $(document).ready( function() {
12108
<.*?>
< table.height() ) {
<.*?><.*?> * $('#example').dataTable( {
12109
<.*?>
< table.height() ) {
<.*?><.*?> * "columns": [
12110
<.*?>
< table.height() ) {
<.*?><.*?> * { "width": "20%" },
12111
<.*?>
< table.height() ) {
<.*?><.*?> * null,
12112
<.*?>
< table.height() ) {
<.*?><.*?> * null,
12113
<.*?>
< table.height() ) {
<.*?><.*?> * null,
12114
<.*?>
< table.height() ) {
<.*?><.*?> * null
12115
<.*?>
< table.height() ) {
<.*?><.*?> * ]
12116
<.*?>
< table.height() ) {
<.*?><.*?> * } );
12117
<.*?>
< table.height() ) {
<.*?><.*?> * } );
12118
<.*?>
< table.height() ) {
<.*?><.*?> */
12119
<.*?>
< table.height() ) {
<.*?><.*?> "sWidth": null
12120
<.*?>
< table.height() ) {
<.*?><.*?> };
12121
 
12122
<.*?>
< table.height() ) {
<.*?><.*?> _fnHungarianMap( DataTable.defaults.column );
12123
 
12124
 
12125
 
12126
<.*?>
< table.height() ) {
<.*?><.*?> /**
12127
<.*?>
< table.height() ) {
<.*?><.*?> * DataTables settings object - this holds all the information needed for a
12128
<.*?>
< table.height() ) {
<.*?><.*?> * given table, including configuration, data and current application of the
12129
<.*?>
< table.height() ) {
<.*?><.*?> * table options. DataTables does not have a single instance for each DataTable
12130
<.*?>
< table.height() ) {
<.*?><.*?> * with the settings attached to that instance, but rather instances of the
12131
<.*?>
< table.height() ) {
<.*?><.*?> * DataTable "class" are created on-the-fly as needed (typically by a
12132
<.*?>
< table.height() ) {
<.*?><.*?> * $().dataTable() call) and the settings object is then applied to that
12133
<.*?>
< table.height() ) {
<.*?><.*?> * instance.
12134
<.*?>
< table.height() ) {
<.*?><.*?> *
12135
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this object is related to {@link DataTable.defaults} but this
12136
<.*?>
< table.height() ) {
<.*?><.*?> * one is the internal data store for DataTables's cache of columns. It should
12137
<.*?>
< table.height() ) {
<.*?><.*?> * NOT be manipulated outside of DataTables. Any configuration should be done
12138
<.*?>
< table.height() ) {
<.*?><.*?> * through the initialisation options.
12139
<.*?>
< table.height() ) {
<.*?><.*?> * @namespace
12140
<.*?>
< table.height() ) {
<.*?><.*?> * @todo Really should attach the settings object to individual instances so we
12141
<.*?>
< table.height() ) {
<.*?><.*?> * don't need to create new instances on each $().dataTable() call (if the
12142
<.*?>
< table.height() ) {
<.*?><.*?> * table already exists). It would also save passing oSettings around and
12143
<.*?>
< table.height() ) {
<.*?><.*?> * into every single function. However, this is a very significant
12144
<.*?>
< table.height() ) {
<.*?><.*?> * architecture change for DataTables and will almost certainly break
12145
<.*?>
< table.height() ) {
<.*?><.*?> * backwards compatibility with older installations. This is something that
12146
<.*?>
< table.height() ) {
<.*?><.*?> * will be done in 2.0.
12147
<.*?>
< table.height() ) {
<.*?><.*?> */
12148
<.*?>
< table.height() ) {
<.*?><.*?> DataTable.models.oSettings = {
12149
<.*?>
< table.height() ) {
<.*?><.*?> /**
12150
<.*?>
< table.height() ) {
<.*?><.*?> * Primary features of DataTables and their enablement state.
12151
<.*?>
< table.height() ) {
<.*?><.*?> * @namespace
12152
<.*?>
< table.height() ) {
<.*?><.*?> */
12153
<.*?>
< table.height() ) {
<.*?><.*?> "oFeatures": {
12154
 
12155
<.*?>
< table.height() ) {
<.*?><.*?> /**
12156
<.*?>
< table.height() ) {
<.*?><.*?> * Flag to say if DataTables should automatically try to calculate the
12157
<.*?>
< table.height() ) {
<.*?><.*?> * optimum table and columns widths (true) or not (false).
12158
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12159
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12160
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12161
<.*?>
< table.height() ) {
<.*?><.*?> */
12162
<.*?>
< table.height() ) {
<.*?><.*?> "bAutoWidth": null,
12163
 
12164
<.*?>
< table.height() ) {
<.*?><.*?> /**
12165
<.*?>
< table.height() ) {
<.*?><.*?> * Delay the creation of TR and TD elements until they are actually
12166
<.*?>
< table.height() ) {
<.*?><.*?> * needed by a driven page draw. This can give a significant speed
12167
<.*?>
< table.height() ) {
<.*?><.*?> * increase for Ajax source and Javascript source data, but makes no
12168
<.*?>
< table.height() ) {
<.*?><.*?> * difference at all fro DOM and server-side processing tables.
12169
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12170
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12171
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12172
<.*?>
< table.height() ) {
<.*?><.*?> */
12173
<.*?>
< table.height() ) {
<.*?><.*?> "bDeferRender": null,
12174
 
12175
<.*?>
< table.height() ) {
<.*?><.*?> /**
12176
<.*?>
< table.height() ) {
<.*?><.*?> * Enable filtering on the table or not. Note that if this is disabled
12177
<.*?>
< table.height() ) {
<.*?><.*?> * then there is no filtering at all on the table, including fnFilter.
12178
<.*?>
< table.height() ) {
<.*?><.*?> * To just remove the filtering input use sDom and remove the 'f' option.
12179
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12180
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12181
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12182
<.*?>
< table.height() ) {
<.*?><.*?> */
12183
<.*?>
< table.height() ) {
<.*?><.*?> "bFilter": null,
12184
 
12185
<.*?>
< table.height() ) {
<.*?><.*?> /**
12186
<.*?>
< table.height() ) {
<.*?><.*?> * Table information element (the 'Showing x of y records' div) enable
12187
<.*?>
< table.height() ) {
<.*?><.*?> * flag.
12188
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12189
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12190
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12191
<.*?>
< table.height() ) {
<.*?><.*?> */
12192
<.*?>
< table.height() ) {
<.*?><.*?> "bInfo": null,
12193
 
12194
<.*?>
< table.height() ) {
<.*?><.*?> /**
12195
<.*?>
< table.height() ) {
<.*?><.*?> * Present a user control allowing the end user to change the page size
12196
<.*?>
< table.height() ) {
<.*?><.*?> * when pagination is enabled.
12197
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12198
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12199
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12200
<.*?>
< table.height() ) {
<.*?><.*?> */
12201
<.*?>
< table.height() ) {
<.*?><.*?> "bLengthChange": null,
12202
 
12203
<.*?>
< table.height() ) {
<.*?><.*?> /**
12204
<.*?>
< table.height() ) {
<.*?><.*?> * Pagination enabled or not. Note that if this is disabled then length
12205
<.*?>
< table.height() ) {
<.*?><.*?> * changing must also be disabled.
12206
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12207
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12208
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12209
<.*?>
< table.height() ) {
<.*?><.*?> */
12210
<.*?>
< table.height() ) {
<.*?><.*?> "bPaginate": null,
12211
 
12212
<.*?>
< table.height() ) {
<.*?><.*?> /**
12213
<.*?>
< table.height() ) {
<.*?><.*?> * Processing indicator enable flag whenever DataTables is enacting a
12214
<.*?>
< table.height() ) {
<.*?><.*?> * user request - typically an Ajax request for server-side processing.
12215
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12216
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12217
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12218
<.*?>
< table.height() ) {
<.*?><.*?> */
12219
<.*?>
< table.height() ) {
<.*?><.*?> "bProcessing": null,
12220
 
12221
<.*?>
< table.height() ) {
<.*?><.*?> /**
12222
<.*?>
< table.height() ) {
<.*?><.*?> * Server-side processing enabled flag - when enabled DataTables will
12223
<.*?>
< table.height() ) {
<.*?><.*?> * get all data from the server for every draw - there is no filtering,
12224
<.*?>
< table.height() ) {
<.*?><.*?> * sorting or paging done on the client-side.
12225
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12226
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12227
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12228
<.*?>
< table.height() ) {
<.*?><.*?> */
12229
<.*?>
< table.height() ) {
<.*?><.*?> "bServerSide": null,
12230
 
12231
<.*?>
< table.height() ) {
<.*?><.*?> /**
12232
<.*?>
< table.height() ) {
<.*?><.*?> * Sorting enablement flag.
12233
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12234
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12235
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12236
<.*?>
< table.height() ) {
<.*?><.*?> */
12237
<.*?>
< table.height() ) {
<.*?><.*?> "bSort": null,
12238
 
12239
<.*?>
< table.height() ) {
<.*?><.*?> /**
12240
<.*?>
< table.height() ) {
<.*?><.*?> * Multi-column sorting
12241
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12242
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12243
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12244
<.*?>
< table.height() ) {
<.*?><.*?> */
12245
<.*?>
< table.height() ) {
<.*?><.*?> "bSortMulti": null,
12246
 
12247
<.*?>
< table.height() ) {
<.*?><.*?> /**
12248
<.*?>
< table.height() ) {
<.*?><.*?> * Apply a class to the columns which are being sorted to provide a
12249
<.*?>
< table.height() ) {
<.*?><.*?> * visual highlight or not. This can slow things down when enabled since
12250
<.*?>
< table.height() ) {
<.*?><.*?> * there is a lot of DOM interaction.
12251
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12252
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12253
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12254
<.*?>
< table.height() ) {
<.*?><.*?> */
12255
<.*?>
< table.height() ) {
<.*?><.*?> "bSortClasses": null,
12256
 
12257
<.*?>
< table.height() ) {
<.*?><.*?> /**
12258
<.*?>
< table.height() ) {
<.*?><.*?> * State saving enablement flag.
12259
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12260
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12261
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12262
<.*?>
< table.height() ) {
<.*?><.*?> */
12263
<.*?>
< table.height() ) {
<.*?><.*?> "bStateSave": null
12264
<.*?>
< table.height() ) {
<.*?><.*?> },
12265
 
12266
 
12267
<.*?>
< table.height() ) {
<.*?><.*?> /**
12268
<.*?>
< table.height() ) {
<.*?><.*?> * Scrolling settings for a table.
12269
<.*?>
< table.height() ) {
<.*?><.*?> * @namespace
12270
<.*?>
< table.height() ) {
<.*?><.*?> */
12271
<.*?>
< table.height() ) {
<.*?><.*?> "oScroll": {
12272
<.*?>
< table.height() ) {
<.*?><.*?> /**
12273
<.*?>
< table.height() ) {
<.*?><.*?> * When the table is shorter in height than sScrollY, collapse the
12274
<.*?>
< table.height() ) {
<.*?><.*?> * table container down to the height of the table (when true).
12275
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12276
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12277
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12278
<.*?>
< table.height() ) {
<.*?><.*?> */
12279
<.*?>
< table.height() ) {
<.*?><.*?> "bCollapse": null,
12280
 
12281
<.*?>
< table.height() ) {
<.*?><.*?> /**
12282
<.*?>
< table.height() ) {
<.*?><.*?> * Width of the scrollbar for the web-browser's platform. Calculated
12283
<.*?>
< table.height() ) {
<.*?><.*?> * during table initialisation.
12284
<.*?>
< table.height() ) {
<.*?><.*?> * @type int
12285
<.*?>
< table.height() ) {
<.*?><.*?> * @default 0
12286
<.*?>
< table.height() ) {
<.*?><.*?> */
12287
<.*?>
< table.height() ) {
<.*?><.*?> "iBarWidth": 0,
12288
 
12289
<.*?>
< table.height() ) {
<.*?><.*?> /**
12290
<.*?>
< table.height() ) {
<.*?><.*?> * Viewport width for horizontal scrolling. Horizontal scrolling is
12291
<.*?>
< table.height() ) {
<.*?><.*?> * disabled if an empty string.
12292
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12293
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12294
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
12295
<.*?>
< table.height() ) {
<.*?><.*?> */
12296
<.*?>
< table.height() ) {
<.*?><.*?> "sX": null,
12297
 
12298
<.*?>
< table.height() ) {
<.*?><.*?> /**
12299
<.*?>
< table.height() ) {
<.*?><.*?> * Width to expand the table to when using x-scrolling. Typically you
12300
<.*?>
< table.height() ) {
<.*?><.*?> * should not need to use this.
12301
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12302
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12303
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
12304
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated
12305
<.*?>
< table.height() ) {
<.*?><.*?> */
12306
<.*?>
< table.height() ) {
<.*?><.*?> "sXInner": null,
12307
 
12308
<.*?>
< table.height() ) {
<.*?><.*?> /**
12309
<.*?>
< table.height() ) {
<.*?><.*?> * Viewport height for vertical scrolling. Vertical scrolling is disabled
12310
<.*?>
< table.height() ) {
<.*?><.*?> * if an empty string.
12311
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12312
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12313
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
12314
<.*?>
< table.height() ) {
<.*?><.*?> */
12315
<.*?>
< table.height() ) {
<.*?><.*?> "sY": null
12316
<.*?>
< table.height() ) {
<.*?><.*?> },
12317
 
12318
<.*?>
< table.height() ) {
<.*?><.*?> /**
12319
<.*?>
< table.height() ) {
<.*?><.*?> * Language information for the table.
12320
<.*?>
< table.height() ) {
<.*?><.*?> * @namespace
12321
<.*?>
< table.height() ) {
<.*?><.*?> * @extends DataTable.defaults.oLanguage
12322
<.*?>
< table.height() ) {
<.*?><.*?> */
12323
<.*?>
< table.height() ) {
<.*?><.*?> "oLanguage": {
12324
<.*?>
< table.height() ) {
<.*?><.*?> /**
12325
<.*?>
< table.height() ) {
<.*?><.*?> * Information callback function. See
12326
<.*?>
< table.height() ) {
<.*?><.*?> * {@link DataTable.defaults.fnInfoCallback}
12327
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
12328
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
12329
<.*?>
< table.height() ) {
<.*?><.*?> */
12330
<.*?>
< table.height() ) {
<.*?><.*?> "fnInfoCallback": null
12331
<.*?>
< table.height() ) {
<.*?><.*?> },
12332
 
12333
<.*?>
< table.height() ) {
<.*?><.*?> /**
12334
<.*?>
< table.height() ) {
<.*?><.*?> * Browser support parameters
12335
<.*?>
< table.height() ) {
<.*?><.*?> * @namespace
12336
<.*?>
< table.height() ) {
<.*?><.*?> */
12337
<.*?>
< table.height() ) {
<.*?><.*?> "oBrowser": {
12338
<.*?>
< table.height() ) {
<.*?><.*?> /**
12339
<.*?>
< table.height() ) {
<.*?><.*?> * Indicate if the browser incorrectly calculates width:100% inside a
12340
<.*?>
< table.height() ) {
<.*?><.*?> * scrolling element (IE6/7)
12341
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12342
<.*?>
< table.height() ) {
<.*?><.*?> * @default false
12343
<.*?>
< table.height() ) {
<.*?><.*?> */
12344
<.*?>
< table.height() ) {
<.*?><.*?> "bScrollOversize": false,
12345
 
12346
<.*?>
< table.height() ) {
<.*?><.*?> /**
12347
<.*?>
< table.height() ) {
<.*?><.*?> * Determine if the vertical scrollbar is on the right or left of the
12348
<.*?>
< table.height() ) {
<.*?><.*?> * scrolling container - needed for rtl language layout, although not
12349
<.*?>
< table.height() ) {
<.*?><.*?> * all browsers move the scrollbar (Safari).
12350
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12351
<.*?>
< table.height() ) {
<.*?><.*?> * @default false
12352
<.*?>
< table.height() ) {
<.*?><.*?> */
12353
<.*?>
< table.height() ) {
<.*?><.*?> "bScrollbarLeft": false
12354
<.*?>
< table.height() ) {
<.*?><.*?> },
12355
 
12356
 
12357
<.*?>
< table.height() ) {
<.*?><.*?> "ajax": null,
12358
 
12359
 
12360
<.*?>
< table.height() ) {
<.*?><.*?> /**
12361
<.*?>
< table.height() ) {
<.*?><.*?> * Array referencing the nodes which are used for the features. The
12362
<.*?>
< table.height() ) {
<.*?><.*?> * parameters of this object match what is allowed by sDom - i.e.
12363
<.*?>
< table.height() ) {
<.*?><.*?> * <ul>
12364
<.*?>
< table.height() ) {
<.*?><.*?> * <li>'l' - Length changing</li>
12365
<.*?>
< table.height() ) {
<.*?><.*?> * <li>'f' - Filtering input</li>
12366
<.*?>
< table.height() ) {
<.*?><.*?> * <li>'t' - The table!</li>
12367
<.*?>
< table.height() ) {
<.*?><.*?> * <li>'i' - Information</li>
12368
<.*?>
< table.height() ) {
<.*?><.*?> * <li>'p' - Pagination</li>
12369
<.*?>
< table.height() ) {
<.*?><.*?> * <li>'r' - pRocessing</li>
12370
<.*?>
< table.height() ) {
<.*?><.*?> * </ul>
12371
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12372
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12373
<.*?>
< table.height() ) {
<.*?><.*?> */
12374
<.*?>
< table.height() ) {
<.*?><.*?> "aanFeatures": [],
12375
 
12376
<.*?>
< table.height() ) {
<.*?><.*?> /**
12377
<.*?>
< table.height() ) {
<.*?><.*?> * Store data information - see {@link DataTable.models.oRow} for detailed
12378
<.*?>
< table.height() ) {
<.*?><.*?> * information.
12379
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12380
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12381
<.*?>
< table.height() ) {
<.*?><.*?> */
12382
<.*?>
< table.height() ) {
<.*?><.*?> "aoData": [],
12383
 
12384
<.*?>
< table.height() ) {
<.*?><.*?> /**
12385
<.*?>
< table.height() ) {
<.*?><.*?> * Array of indexes which are in the current display (after filtering etc)
12386
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12387
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12388
<.*?>
< table.height() ) {
<.*?><.*?> */
12389
<.*?>
< table.height() ) {
<.*?><.*?> "aiDisplay": [],
12390
 
12391
<.*?>
< table.height() ) {
<.*?><.*?> /**
12392
<.*?>
< table.height() ) {
<.*?><.*?> * Array of indexes for display - no filtering
12393
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12394
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12395
<.*?>
< table.height() ) {
<.*?><.*?> */
12396
<.*?>
< table.height() ) {
<.*?><.*?> "aiDisplayMaster": [],
12397
 
12398
<.*?>
< table.height() ) {
<.*?><.*?> /**
12399
<.*?>
< table.height() ) {
<.*?><.*?> * Store information about each column that is in use
12400
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12401
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12402
<.*?>
< table.height() ) {
<.*?><.*?> */
12403
<.*?>
< table.height() ) {
<.*?><.*?> "aoColumns": [],
12404
 
12405
<.*?>
< table.height() ) {
<.*?><.*?> /**
12406
<.*?>
< table.height() ) {
<.*?><.*?> * Store information about the table's header
12407
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12408
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12409
<.*?>
< table.height() ) {
<.*?><.*?> */
12410
<.*?>
< table.height() ) {
<.*?><.*?> "aoHeader": [],
12411
 
12412
<.*?>
< table.height() ) {
<.*?><.*?> /**
12413
<.*?>
< table.height() ) {
<.*?><.*?> * Store information about the table's footer
12414
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12415
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12416
<.*?>
< table.height() ) {
<.*?><.*?> */
12417
<.*?>
< table.height() ) {
<.*?><.*?> "aoFooter": [],
12418
 
12419
<.*?>
< table.height() ) {
<.*?><.*?> /**
12420
<.*?>
< table.height() ) {
<.*?><.*?> * Store the applied global search information in case we want to force a
12421
<.*?>
< table.height() ) {
<.*?><.*?> * research or compare the old search to a new one.
12422
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12423
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12424
<.*?>
< table.height() ) {
<.*?><.*?> * @namespace
12425
<.*?>
< table.height() ) {
<.*?><.*?> * @extends DataTable.models.oSearch
12426
<.*?>
< table.height() ) {
<.*?><.*?> */
12427
<.*?>
< table.height() ) {
<.*?><.*?> "oPreviousSearch": {},
12428
 
12429
<.*?>
< table.height() ) {
<.*?><.*?> /**
12430
<.*?>
< table.height() ) {
<.*?><.*?> * Store the applied search for each column - see
12431
<.*?>
< table.height() ) {
<.*?><.*?> * {@link DataTable.models.oSearch} for the format that is used for the
12432
<.*?>
< table.height() ) {
<.*?><.*?> * filtering information for each column.
12433
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12434
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12435
<.*?>
< table.height() ) {
<.*?><.*?> */
12436
<.*?>
< table.height() ) {
<.*?><.*?> "aoPreSearchCols": [],
12437
 
12438
<.*?>
< table.height() ) {
<.*?><.*?> /**
12439
<.*?>
< table.height() ) {
<.*?><.*?> * Sorting that is applied to the table. Note that the inner arrays are
12440
<.*?>
< table.height() ) {
<.*?><.*?> * used in the following manner:
12441
<.*?>
< table.height() ) {
<.*?><.*?> * <ul>
12442
<.*?>
< table.height() ) {
<.*?><.*?> * <li>Index 0 - column number</li>
12443
<.*?>
< table.height() ) {
<.*?><.*?> * <li>Index 1 - current sorting direction</li>
12444
<.*?>
< table.height() ) {
<.*?><.*?> * </ul>
12445
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12446
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12447
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12448
<.*?>
< table.height() ) {
<.*?><.*?> * @todo These inner arrays should really be objects
12449
<.*?>
< table.height() ) {
<.*?><.*?> */
12450
<.*?>
< table.height() ) {
<.*?><.*?> "aaSorting": null,
12451
 
12452
<.*?>
< table.height() ) {
<.*?><.*?> /**
12453
<.*?>
< table.height() ) {
<.*?><.*?> * Sorting that is always applied to the table (i.e. prefixed in front of
12454
<.*?>
< table.height() ) {
<.*?><.*?> * aaSorting).
12455
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12456
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12457
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12458
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12459
<.*?>
< table.height() ) {
<.*?><.*?> */
12460
<.*?>
< table.height() ) {
<.*?><.*?> "aaSortingFixed": [],
12461
 
12462
<.*?>
< table.height() ) {
<.*?><.*?> /**
12463
<.*?>
< table.height() ) {
<.*?><.*?> * Classes to use for the striping of a table.
12464
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12465
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12466
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12467
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12468
<.*?>
< table.height() ) {
<.*?><.*?> */
12469
<.*?>
< table.height() ) {
<.*?><.*?> "asStripeClasses": null,
12470
 
12471
<.*?>
< table.height() ) {
<.*?><.*?> /**
12472
<.*?>
< table.height() ) {
<.*?><.*?> * If restoring a table - we should restore its striping classes as well
12473
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12474
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12475
<.*?>
< table.height() ) {
<.*?><.*?> */
12476
<.*?>
< table.height() ) {
<.*?><.*?> "asDestroyStripes": [],
12477
 
12478
<.*?>
< table.height() ) {
<.*?><.*?> /**
12479
<.*?>
< table.height() ) {
<.*?><.*?> * If restoring a table - we should restore its width
12480
<.*?>
< table.height() ) {
<.*?><.*?> * @type int
12481
<.*?>
< table.height() ) {
<.*?><.*?> * @default 0
12482
<.*?>
< table.height() ) {
<.*?><.*?> */
12483
<.*?>
< table.height() ) {
<.*?><.*?> "sDestroyWidth": 0,
12484
 
12485
<.*?>
< table.height() ) {
<.*?><.*?> /**
12486
<.*?>
< table.height() ) {
<.*?><.*?> * Callback functions array for every time a row is inserted (i.e. on a draw).
12487
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12488
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12489
<.*?>
< table.height() ) {
<.*?><.*?> */
12490
<.*?>
< table.height() ) {
<.*?><.*?> "aoRowCallback": [],
12491
 
12492
<.*?>
< table.height() ) {
<.*?><.*?> /**
12493
<.*?>
< table.height() ) {
<.*?><.*?> * Callback functions for the header on each draw.
12494
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12495
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12496
<.*?>
< table.height() ) {
<.*?><.*?> */
12497
<.*?>
< table.height() ) {
<.*?><.*?> "aoHeaderCallback": [],
12498
 
12499
<.*?>
< table.height() ) {
<.*?><.*?> /**
12500
<.*?>
< table.height() ) {
<.*?><.*?> * Callback function for the footer on each draw.
12501
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12502
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12503
<.*?>
< table.height() ) {
<.*?><.*?> */
12504
<.*?>
< table.height() ) {
<.*?><.*?> "aoFooterCallback": [],
12505
 
12506
<.*?>
< table.height() ) {
<.*?><.*?> /**
12507
<.*?>
< table.height() ) {
<.*?><.*?> * Array of callback functions for draw callback functions
12508
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12509
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12510
<.*?>
< table.height() ) {
<.*?><.*?> */
12511
<.*?>
< table.height() ) {
<.*?><.*?> "aoDrawCallback": [],
12512
 
12513
<.*?>
< table.height() ) {
<.*?><.*?> /**
12514
<.*?>
< table.height() ) {
<.*?><.*?> * Array of callback functions for row created function
12515
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12516
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12517
<.*?>
< table.height() ) {
<.*?><.*?> */
12518
<.*?>
< table.height() ) {
<.*?><.*?> "aoRowCreatedCallback": [],
12519
 
12520
<.*?>
< table.height() ) {
<.*?><.*?> /**
12521
<.*?>
< table.height() ) {
<.*?><.*?> * Callback functions for just before the table is redrawn. A return of
12522
<.*?>
< table.height() ) {
<.*?><.*?> * false will be used to cancel the draw.
12523
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12524
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12525
<.*?>
< table.height() ) {
<.*?><.*?> */
12526
<.*?>
< table.height() ) {
<.*?><.*?> "aoPreDrawCallback": [],
12527
 
12528
<.*?>
< table.height() ) {
<.*?><.*?> /**
12529
<.*?>
< table.height() ) {
<.*?><.*?> * Callback functions for when the table has been initialised.
12530
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12531
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12532
<.*?>
< table.height() ) {
<.*?><.*?> */
12533
<.*?>
< table.height() ) {
<.*?><.*?> "aoInitComplete": [],
12534
 
12535
 
12536
<.*?>
< table.height() ) {
<.*?><.*?> /**
12537
<.*?>
< table.height() ) {
<.*?><.*?> * Callbacks for modifying the settings to be stored for state saving, prior to
12538
<.*?>
< table.height() ) {
<.*?><.*?> * saving state.
12539
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12540
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12541
<.*?>
< table.height() ) {
<.*?><.*?> */
12542
<.*?>
< table.height() ) {
<.*?><.*?> "aoStateSaveParams": [],
12543
 
12544
<.*?>
< table.height() ) {
<.*?><.*?> /**
12545
<.*?>
< table.height() ) {
<.*?><.*?> * Callbacks for modifying the settings that have been stored for state saving
12546
<.*?>
< table.height() ) {
<.*?><.*?> * prior to using the stored values to restore the state.
12547
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12548
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12549
<.*?>
< table.height() ) {
<.*?><.*?> */
12550
<.*?>
< table.height() ) {
<.*?><.*?> "aoStateLoadParams": [],
12551
 
12552
<.*?>
< table.height() ) {
<.*?><.*?> /**
12553
<.*?>
< table.height() ) {
<.*?><.*?> * Callbacks for operating on the settings object once the saved state has been
12554
<.*?>
< table.height() ) {
<.*?><.*?> * loaded
12555
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12556
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12557
<.*?>
< table.height() ) {
<.*?><.*?> */
12558
<.*?>
< table.height() ) {
<.*?><.*?> "aoStateLoaded": [],
12559
 
12560
<.*?>
< table.height() ) {
<.*?><.*?> /**
12561
<.*?>
< table.height() ) {
<.*?><.*?> * Cache the table ID for quick access
12562
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
12563
<.*?>
< table.height() ) {
<.*?><.*?> * @default <i>Empty string</i>
12564
<.*?>
< table.height() ) {
<.*?><.*?> */
12565
<.*?>
< table.height() ) {
<.*?><.*?> "sTableId": "",
12566
 
12567
<.*?>
< table.height() ) {
<.*?><.*?> /**
12568
<.*?>
< table.height() ) {
<.*?><.*?> * The TABLE node for the main table
12569
<.*?>
< table.height() ) {
<.*?><.*?> * @type node
12570
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
12571
<.*?>
< table.height() ) {
<.*?><.*?> */
12572
<.*?>
< table.height() ) {
<.*?><.*?> "nTable": null,
12573
 
12574
<.*?>
< table.height() ) {
<.*?><.*?> /**
12575
<.*?>
< table.height() ) {
<.*?><.*?> * Permanent ref to the thead element
12576
<.*?>
< table.height() ) {
<.*?><.*?> * @type node
12577
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
12578
<.*?>
< table.height() ) {
<.*?><.*?> */
12579
<.*?>
< table.height() ) {
<.*?><.*?> "nTHead": null,
12580
 
12581
<.*?>
< table.height() ) {
<.*?><.*?> /**
12582
<.*?>
< table.height() ) {
<.*?><.*?> * Permanent ref to the tfoot element - if it exists
12583
<.*?>
< table.height() ) {
<.*?><.*?> * @type node
12584
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
12585
<.*?>
< table.height() ) {
<.*?><.*?> */
12586
<.*?>
< table.height() ) {
<.*?><.*?> "nTFoot": null,
12587
 
12588
<.*?>
< table.height() ) {
<.*?><.*?> /**
12589
<.*?>
< table.height() ) {
<.*?><.*?> * Permanent ref to the tbody element
12590
<.*?>
< table.height() ) {
<.*?><.*?> * @type node
12591
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
12592
<.*?>
< table.height() ) {
<.*?><.*?> */
12593
<.*?>
< table.height() ) {
<.*?><.*?> "nTBody": null,
12594
 
12595
<.*?>
< table.height() ) {
<.*?><.*?> /**
12596
<.*?>
< table.height() ) {
<.*?><.*?> * Cache the wrapper node (contains all DataTables controlled elements)
12597
<.*?>
< table.height() ) {
<.*?><.*?> * @type node
12598
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
12599
<.*?>
< table.height() ) {
<.*?><.*?> */
12600
<.*?>
< table.height() ) {
<.*?><.*?> "nTableWrapper": null,
12601
 
12602
<.*?>
< table.height() ) {
<.*?><.*?> /**
12603
<.*?>
< table.height() ) {
<.*?><.*?> * Indicate if when using server-side processing the loading of data
12604
<.*?>
< table.height() ) {
<.*?><.*?> * should be deferred until the second draw.
12605
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12606
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12607
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12608
<.*?>
< table.height() ) {
<.*?><.*?> * @default false
12609
<.*?>
< table.height() ) {
<.*?><.*?> */
12610
<.*?>
< table.height() ) {
<.*?><.*?> "bDeferLoading": false,
12611
 
12612
<.*?>
< table.height() ) {
<.*?><.*?> /**
12613
<.*?>
< table.height() ) {
<.*?><.*?> * Indicate if all required information has been read in
12614
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12615
<.*?>
< table.height() ) {
<.*?><.*?> * @default false
12616
<.*?>
< table.height() ) {
<.*?><.*?> */
12617
<.*?>
< table.height() ) {
<.*?><.*?> "bInitialised": false,
12618
 
12619
<.*?>
< table.height() ) {
<.*?><.*?> /**
12620
<.*?>
< table.height() ) {
<.*?><.*?> * Information about open rows. Each object in the array has the parameters
12621
<.*?>
< table.height() ) {
<.*?><.*?> * 'nTr' and 'nParent'
12622
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12623
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12624
<.*?>
< table.height() ) {
<.*?><.*?> */
12625
<.*?>
< table.height() ) {
<.*?><.*?> "aoOpenRows": [],
12626
 
12627
<.*?>
< table.height() ) {
<.*?><.*?> /**
12628
<.*?>
< table.height() ) {
<.*?><.*?> * Dictate the positioning of DataTables' control elements - see
12629
<.*?>
< table.height() ) {
<.*?><.*?> * {@link DataTable.model.oInit.sDom}.
12630
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12631
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12632
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
12633
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
12634
<.*?>
< table.height() ) {
<.*?><.*?> */
12635
<.*?>
< table.height() ) {
<.*?><.*?> "sDom": null,
12636
 
12637
<.*?>
< table.height() ) {
<.*?><.*?> /**
12638
<.*?>
< table.height() ) {
<.*?><.*?> * Which type of pagination should be used.
12639
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12640
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12641
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
12642
<.*?>
< table.height() ) {
<.*?><.*?> * @default two_button
12643
<.*?>
< table.height() ) {
<.*?><.*?> */
12644
<.*?>
< table.height() ) {
<.*?><.*?> "sPaginationType": "two_button",
12645
 
12646
<.*?>
< table.height() ) {
<.*?><.*?> /**
12647
<.*?>
< table.height() ) {
<.*?><.*?> * The state duration (for `stateSave`) in seconds.
12648
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12649
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12650
<.*?>
< table.height() ) {
<.*?><.*?> * @type int
12651
<.*?>
< table.height() ) {
<.*?><.*?> * @default 0
12652
<.*?>
< table.height() ) {
<.*?><.*?> */
12653
<.*?>
< table.height() ) {
<.*?><.*?> "iStateDuration": 0,
12654
 
12655
<.*?>
< table.height() ) {
<.*?><.*?> /**
12656
<.*?>
< table.height() ) {
<.*?><.*?> * Array of callback functions for state saving. Each array element is an
12657
<.*?>
< table.height() ) {
<.*?><.*?> * object with the following parameters:
12658
<.*?>
< table.height() ) {
<.*?><.*?> * <ul>
12659
<.*?>
< table.height() ) {
<.*?><.*?> * <li>function:fn - function to call. Takes two parameters, oSettings
12660
<.*?>
< table.height() ) {
<.*?><.*?> * and the JSON string to save that has been thus far created. Returns
12661
<.*?>
< table.height() ) {
<.*?><.*?> * a JSON string to be inserted into a json object
12662
<.*?>
< table.height() ) {
<.*?><.*?> * (i.e. '"param": [ 0, 1, 2]')</li>
12663
<.*?>
< table.height() ) {
<.*?><.*?> * <li>string:sName - name of callback</li>
12664
<.*?>
< table.height() ) {
<.*?><.*?> * </ul>
12665
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12666
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12667
<.*?>
< table.height() ) {
<.*?><.*?> */
12668
<.*?>
< table.height() ) {
<.*?><.*?> "aoStateSave": [],
12669
 
12670
<.*?>
< table.height() ) {
<.*?><.*?> /**
12671
<.*?>
< table.height() ) {
<.*?><.*?> * Array of callback functions for state loading. Each array element is an
12672
<.*?>
< table.height() ) {
<.*?><.*?> * object with the following parameters:
12673
<.*?>
< table.height() ) {
<.*?><.*?> * <ul>
12674
<.*?>
< table.height() ) {
<.*?><.*?> * <li>function:fn - function to call. Takes two parameters, oSettings
12675
<.*?>
< table.height() ) {
<.*?><.*?> * and the object stored. May return false to cancel state loading</li>
12676
<.*?>
< table.height() ) {
<.*?><.*?> * <li>string:sName - name of callback</li>
12677
<.*?>
< table.height() ) {
<.*?><.*?> * </ul>
12678
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12679
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12680
<.*?>
< table.height() ) {
<.*?><.*?> */
12681
<.*?>
< table.height() ) {
<.*?><.*?> "aoStateLoad": [],
12682
 
12683
<.*?>
< table.height() ) {
<.*?><.*?> /**
12684
<.*?>
< table.height() ) {
<.*?><.*?> * State that was loaded. Useful for back reference
12685
<.*?>
< table.height() ) {
<.*?><.*?> * @type object
12686
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
12687
<.*?>
< table.height() ) {
<.*?><.*?> */
12688
<.*?>
< table.height() ) {
<.*?><.*?> "oLoadedState": null,
12689
 
12690
<.*?>
< table.height() ) {
<.*?><.*?> /**
12691
<.*?>
< table.height() ) {
<.*?><.*?> * Source url for AJAX data for the table.
12692
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12693
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12694
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
12695
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
12696
<.*?>
< table.height() ) {
<.*?><.*?> */
12697
<.*?>
< table.height() ) {
<.*?><.*?> "sAjaxSource": null,
12698
 
12699
<.*?>
< table.height() ) {
<.*?><.*?> /**
12700
<.*?>
< table.height() ) {
<.*?><.*?> * Property from a given object from which to read the table data from. This
12701
<.*?>
< table.height() ) {
<.*?><.*?> * can be an empty string (when not server-side processing), in which case
12702
<.*?>
< table.height() ) {
<.*?><.*?> * it is assumed an an array is given directly.
12703
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12704
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12705
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
12706
<.*?>
< table.height() ) {
<.*?><.*?> */
12707
<.*?>
< table.height() ) {
<.*?><.*?> "sAjaxDataProp": null,
12708
 
12709
<.*?>
< table.height() ) {
<.*?><.*?> /**
12710
<.*?>
< table.height() ) {
<.*?><.*?> * Note if draw should be blocked while getting data
12711
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12712
<.*?>
< table.height() ) {
<.*?><.*?> * @default true
12713
<.*?>
< table.height() ) {
<.*?><.*?> */
12714
<.*?>
< table.height() ) {
<.*?><.*?> "bAjaxDataGet": true,
12715
 
12716
<.*?>
< table.height() ) {
<.*?><.*?> /**
12717
<.*?>
< table.height() ) {
<.*?><.*?> * The last jQuery XHR object that was used for server-side data gathering.
12718
<.*?>
< table.height() ) {
<.*?><.*?> * This can be used for working with the XHR information in one of the
12719
<.*?>
< table.height() ) {
<.*?><.*?> * callbacks
12720
<.*?>
< table.height() ) {
<.*?><.*?> * @type object
12721
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
12722
<.*?>
< table.height() ) {
<.*?><.*?> */
12723
<.*?>
< table.height() ) {
<.*?><.*?> "jqXHR": null,
12724
 
12725
<.*?>
< table.height() ) {
<.*?><.*?> /**
12726
<.*?>
< table.height() ) {
<.*?><.*?> * JSON returned from the server in the last Ajax request
12727
<.*?>
< table.height() ) {
<.*?><.*?> * @type object
12728
<.*?>
< table.height() ) {
<.*?><.*?> * @default undefined
12729
<.*?>
< table.height() ) {
<.*?><.*?> */
12730
<.*?>
< table.height() ) {
<.*?><.*?> "json": undefined,
12731
 
12732
<.*?>
< table.height() ) {
<.*?><.*?> /**
12733
<.*?>
< table.height() ) {
<.*?><.*?> * Data submitted as part of the last Ajax request
12734
<.*?>
< table.height() ) {
<.*?><.*?> * @type object
12735
<.*?>
< table.height() ) {
<.*?><.*?> * @default undefined
12736
<.*?>
< table.height() ) {
<.*?><.*?> */
12737
<.*?>
< table.height() ) {
<.*?><.*?> "oAjaxData": undefined,
12738
 
12739
<.*?>
< table.height() ) {
<.*?><.*?> /**
12740
<.*?>
< table.height() ) {
<.*?><.*?> * Function to get the server-side data.
12741
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12742
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12743
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
12744
<.*?>
< table.height() ) {
<.*?><.*?> */
12745
<.*?>
< table.height() ) {
<.*?><.*?> "fnServerData": null,
12746
 
12747
<.*?>
< table.height() ) {
<.*?><.*?> /**
12748
<.*?>
< table.height() ) {
<.*?><.*?> * Functions which are called prior to sending an Ajax request so extra
12749
<.*?>
< table.height() ) {
<.*?><.*?> * parameters can easily be sent to the server
12750
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12751
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12752
<.*?>
< table.height() ) {
<.*?><.*?> */
12753
<.*?>
< table.height() ) {
<.*?><.*?> "aoServerParams": [],
12754
 
12755
<.*?>
< table.height() ) {
<.*?><.*?> /**
12756
<.*?>
< table.height() ) {
<.*?><.*?> * Send the XHR HTTP method - GET or POST (could be PUT or DELETE if
12757
<.*?>
< table.height() ) {
<.*?><.*?> * required).
12758
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12759
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12760
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
12761
<.*?>
< table.height() ) {
<.*?><.*?> */
12762
<.*?>
< table.height() ) {
<.*?><.*?> "sServerMethod": null,
12763
 
12764
<.*?>
< table.height() ) {
<.*?><.*?> /**
12765
<.*?>
< table.height() ) {
<.*?><.*?> * Format numbers for display.
12766
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12767
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12768
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
12769
<.*?>
< table.height() ) {
<.*?><.*?> */
12770
<.*?>
< table.height() ) {
<.*?><.*?> "fnFormatNumber": null,
12771
 
12772
<.*?>
< table.height() ) {
<.*?><.*?> /**
12773
<.*?>
< table.height() ) {
<.*?><.*?> * List of options that can be used for the user selectable length menu.
12774
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12775
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12776
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12777
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12778
<.*?>
< table.height() ) {
<.*?><.*?> */
12779
<.*?>
< table.height() ) {
<.*?><.*?> "aLengthMenu": null,
12780
 
12781
<.*?>
< table.height() ) {
<.*?><.*?> /**
12782
<.*?>
< table.height() ) {
<.*?><.*?> * Counter for the draws that the table does. Also used as a tracker for
12783
<.*?>
< table.height() ) {
<.*?><.*?> * server-side processing
12784
<.*?>
< table.height() ) {
<.*?><.*?> * @type int
12785
<.*?>
< table.height() ) {
<.*?><.*?> * @default 0
12786
<.*?>
< table.height() ) {
<.*?><.*?> */
12787
<.*?>
< table.height() ) {
<.*?><.*?> "iDraw": 0,
12788
 
12789
<.*?>
< table.height() ) {
<.*?><.*?> /**
12790
<.*?>
< table.height() ) {
<.*?><.*?> * Indicate if a redraw is being done - useful for Ajax
12791
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12792
<.*?>
< table.height() ) {
<.*?><.*?> * @default false
12793
<.*?>
< table.height() ) {
<.*?><.*?> */
12794
<.*?>
< table.height() ) {
<.*?><.*?> "bDrawing": false,
12795
 
12796
<.*?>
< table.height() ) {
<.*?><.*?> /**
12797
<.*?>
< table.height() ) {
<.*?><.*?> * Draw index (iDraw) of the last error when parsing the returned data
12798
<.*?>
< table.height() ) {
<.*?><.*?> * @type int
12799
<.*?>
< table.height() ) {
<.*?><.*?> * @default -1
12800
<.*?>
< table.height() ) {
<.*?><.*?> */
12801
<.*?>
< table.height() ) {
<.*?><.*?> "iDrawError": -1,
12802
 
12803
<.*?>
< table.height() ) {
<.*?><.*?> /**
12804
<.*?>
< table.height() ) {
<.*?><.*?> * Paging display length
12805
<.*?>
< table.height() ) {
<.*?><.*?> * @type int
12806
<.*?>
< table.height() ) {
<.*?><.*?> * @default 10
12807
<.*?>
< table.height() ) {
<.*?><.*?> */
12808
<.*?>
< table.height() ) {
<.*?><.*?> "_iDisplayLength": 10,
12809
 
12810
<.*?>
< table.height() ) {
<.*?><.*?> /**
12811
<.*?>
< table.height() ) {
<.*?><.*?> * Paging start point - aiDisplay index
12812
<.*?>
< table.height() ) {
<.*?><.*?> * @type int
12813
<.*?>
< table.height() ) {
<.*?><.*?> * @default 0
12814
<.*?>
< table.height() ) {
<.*?><.*?> */
12815
<.*?>
< table.height() ) {
<.*?><.*?> "_iDisplayStart": 0,
12816
 
12817
<.*?>
< table.height() ) {
<.*?><.*?> /**
12818
<.*?>
< table.height() ) {
<.*?><.*?> * Server-side processing - number of records in the result set
12819
<.*?>
< table.height() ) {
<.*?><.*?> * (i.e. before filtering), Use fnRecordsTotal rather than
12820
<.*?>
< table.height() ) {
<.*?><.*?> * this property to get the value of the number of records, regardless of
12821
<.*?>
< table.height() ) {
<.*?><.*?> * the server-side processing setting.
12822
<.*?>
< table.height() ) {
<.*?><.*?> * @type int
12823
<.*?>
< table.height() ) {
<.*?><.*?> * @default 0
12824
<.*?>
< table.height() ) {
<.*?><.*?> * @private
12825
<.*?>
< table.height() ) {
<.*?><.*?> */
12826
<.*?>
< table.height() ) {
<.*?><.*?> "_iRecordsTotal": 0,
12827
 
12828
<.*?>
< table.height() ) {
<.*?><.*?> /**
12829
<.*?>
< table.height() ) {
<.*?><.*?> * Server-side processing - number of records in the current display set
12830
<.*?>
< table.height() ) {
<.*?><.*?> * (i.e. after filtering). Use fnRecordsDisplay rather than
12831
<.*?>
< table.height() ) {
<.*?><.*?> * this property to get the value of the number of records, regardless of
12832
<.*?>
< table.height() ) {
<.*?><.*?> * the server-side processing setting.
12833
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12834
<.*?>
< table.height() ) {
<.*?><.*?> * @default 0
12835
<.*?>
< table.height() ) {
<.*?><.*?> * @private
12836
<.*?>
< table.height() ) {
<.*?><.*?> */
12837
<.*?>
< table.height() ) {
<.*?><.*?> "_iRecordsDisplay": 0,
12838
 
12839
<.*?>
< table.height() ) {
<.*?><.*?> /**
12840
<.*?>
< table.height() ) {
<.*?><.*?> * Flag to indicate if jQuery UI marking and classes should be used.
12841
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12842
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12843
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12844
<.*?>
< table.height() ) {
<.*?><.*?> */
12845
<.*?>
< table.height() ) {
<.*?><.*?> "bJUI": null,
12846
 
12847
<.*?>
< table.height() ) {
<.*?><.*?> /**
12848
<.*?>
< table.height() ) {
<.*?><.*?> * The classes to use for the table
12849
<.*?>
< table.height() ) {
<.*?><.*?> * @type object
12850
<.*?>
< table.height() ) {
<.*?><.*?> * @default {}
12851
<.*?>
< table.height() ) {
<.*?><.*?> */
12852
<.*?>
< table.height() ) {
<.*?><.*?> "oClasses": {},
12853
 
12854
<.*?>
< table.height() ) {
<.*?><.*?> /**
12855
<.*?>
< table.height() ) {
<.*?><.*?> * Flag attached to the settings object so you can check in the draw
12856
<.*?>
< table.height() ) {
<.*?><.*?> * callback if filtering has been done in the draw. Deprecated in favour of
12857
<.*?>
< table.height() ) {
<.*?><.*?> * events.
12858
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12859
<.*?>
< table.height() ) {
<.*?><.*?> * @default false
12860
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated
12861
<.*?>
< table.height() ) {
<.*?><.*?> */
12862
<.*?>
< table.height() ) {
<.*?><.*?> "bFiltered": false,
12863
 
12864
<.*?>
< table.height() ) {
<.*?><.*?> /**
12865
<.*?>
< table.height() ) {
<.*?><.*?> * Flag attached to the settings object so you can check in the draw
12866
<.*?>
< table.height() ) {
<.*?><.*?> * callback if sorting has been done in the draw. Deprecated in favour of
12867
<.*?>
< table.height() ) {
<.*?><.*?> * events.
12868
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12869
<.*?>
< table.height() ) {
<.*?><.*?> * @default false
12870
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated
12871
<.*?>
< table.height() ) {
<.*?><.*?> */
12872
<.*?>
< table.height() ) {
<.*?><.*?> "bSorted": false,
12873
 
12874
<.*?>
< table.height() ) {
<.*?><.*?> /**
12875
<.*?>
< table.height() ) {
<.*?><.*?> * Indicate that if multiple rows are in the header and there is more than
12876
<.*?>
< table.height() ) {
<.*?><.*?> * one unique cell per column, if the top one (true) or bottom one (false)
12877
<.*?>
< table.height() ) {
<.*?><.*?> * should be used for sorting / title by DataTables.
12878
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this parameter will be set by the initialisation routine. To
12879
<.*?>
< table.height() ) {
<.*?><.*?> * set a default use {@link DataTable.defaults}.
12880
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
12881
<.*?>
< table.height() ) {
<.*?><.*?> */
12882
<.*?>
< table.height() ) {
<.*?><.*?> "bSortCellsTop": null,
12883
 
12884
<.*?>
< table.height() ) {
<.*?><.*?> /**
12885
<.*?>
< table.height() ) {
<.*?><.*?> * Initialisation object that is used for the table
12886
<.*?>
< table.height() ) {
<.*?><.*?> * @type object
12887
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
12888
<.*?>
< table.height() ) {
<.*?><.*?> */
12889
<.*?>
< table.height() ) {
<.*?><.*?> "oInit": null,
12890
 
12891
<.*?>
< table.height() ) {
<.*?><.*?> /**
12892
<.*?>
< table.height() ) {
<.*?><.*?> * Destroy callback functions - for plug-ins to attach themselves to the
12893
<.*?>
< table.height() ) {
<.*?><.*?> * destroy so they can clean up markup and events.
12894
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12895
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12896
<.*?>
< table.height() ) {
<.*?><.*?> */
12897
<.*?>
< table.height() ) {
<.*?><.*?> "aoDestroyCallback": [],
12898
 
12899
 
12900
<.*?>
< table.height() ) {
<.*?><.*?> /**
12901
<.*?>
< table.height() ) {
<.*?><.*?> * Get the number of records in the current record set, before filtering
12902
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
12903
<.*?>
< table.height() ) {
<.*?><.*?> */
12904
<.*?>
< table.height() ) {
<.*?><.*?> "fnRecordsTotal": function ()
12905
<.*?>
< table.height() ) {
<.*?><.*?> {
12906
<.*?>
< table.height() ) {
<.*?><.*?> return _fnDataSource( this ) == 'ssp' ?
12907
<.*?>
< table.height() ) {
<.*?><.*?> this._iRecordsTotal * 1 :
12908
<.*?>
< table.height() ) {
<.*?><.*?> this.aiDisplayMaster.length;
12909
<.*?>
< table.height() ) {
<.*?><.*?> },
12910
 
12911
<.*?>
< table.height() ) {
<.*?><.*?> /**
12912
<.*?>
< table.height() ) {
<.*?><.*?> * Get the number of records in the current record set, after filtering
12913
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
12914
<.*?>
< table.height() ) {
<.*?><.*?> */
12915
<.*?>
< table.height() ) {
<.*?><.*?> "fnRecordsDisplay": function ()
12916
<.*?>
< table.height() ) {
<.*?><.*?> {
12917
<.*?>
< table.height() ) {
<.*?><.*?> return _fnDataSource( this ) == 'ssp' ?
12918
<.*?>
< table.height() ) {
<.*?><.*?> this._iRecordsDisplay * 1 :
12919
<.*?>
< table.height() ) {
<.*?><.*?> this.aiDisplay.length;
12920
<.*?>
< table.height() ) {
<.*?><.*?> },
12921
 
12922
<.*?>
< table.height() ) {
<.*?><.*?> /**
12923
<.*?>
< table.height() ) {
<.*?><.*?> * Get the display end point - aiDisplay index
12924
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
12925
<.*?>
< table.height() ) {
<.*?><.*?> */
12926
<.*?>
< table.height() ) {
<.*?><.*?> "fnDisplayEnd": function ()
12927
<.*?>
< table.height() ) {
<.*?><.*?> {
12928
<.*?>
< table.height() ) {
<.*?><.*?> var
12929
<.*?>
< table.height() ) {
<.*?><.*?> len = this._iDisplayLength,
12930
<.*?>
< table.height() ) {
<.*?><.*?> start = this._iDisplayStart,
12931
<.*?>
< table.height() ) {
<.*?><.*?> calc = start + len,
12932
<.*?>
< table.height() ) {
<.*?><.*?> records = this.aiDisplay.length,
12933
<.*?>
< table.height() ) {
<.*?><.*?> features = this.oFeatures,
12934
<.*?>
< table.height() ) {
<.*?><.*?> paginate = features.bPaginate;
12935
 
12936
<.*?>
< table.height() ) {
<.*?><.*?> if ( features.bServerSide ) {
12937
<.*?>
< table.height() ) {
<.*?><.*?> return paginate === false || len === -1 ?
12938
<.*?>
< table.height() ) {
<.*?><.*?> start + records :
12939
<.*?>
< table.height() ) {
<.*?><.*?> Math.min( start+len, this._iRecordsDisplay );
12940
<.*?>
< table.height() ) {
<.*?><.*?> }
12941
<.*?>
< table.height() ) {
<.*?><.*?> else {
12942
<.*?>
< table.height() ) {
<.*?><.*?> return ! paginate || calc>records || len===-1 ?
12943
<.*?>
< table.height() ) {
<.*?><.*?> records :
12944
<.*?>
< table.height() ) {
<.*?><.*?> calc;
12945
<.*?>
< table.height() ) {
<.*?><.*?> }
12946
<.*?>
< table.height() ) {
<.*?><.*?> },
12947
 
12948
<.*?>
< table.height() ) {
<.*?><.*?> /**
12949
<.*?>
< table.height() ) {
<.*?><.*?> * The DataTables object for this table
12950
<.*?>
< table.height() ) {
<.*?><.*?> * @type object
12951
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
12952
<.*?>
< table.height() ) {
<.*?><.*?> */
12953
<.*?>
< table.height() ) {
<.*?><.*?> "oInstance": null,
12954
 
12955
<.*?>
< table.height() ) {
<.*?><.*?> /**
12956
<.*?>
< table.height() ) {
<.*?><.*?> * Unique identifier for each instance of the DataTables object. If there
12957
<.*?>
< table.height() ) {
<.*?><.*?> * is an ID on the table node, then it takes that value, otherwise an
12958
<.*?>
< table.height() ) {
<.*?><.*?> * incrementing internal counter is used.
12959
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
12960
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
12961
<.*?>
< table.height() ) {
<.*?><.*?> */
12962
<.*?>
< table.height() ) {
<.*?><.*?> "sInstance": null,
12963
 
12964
<.*?>
< table.height() ) {
<.*?><.*?> /**
12965
<.*?>
< table.height() ) {
<.*?><.*?> * tabindex attribute value that is added to DataTables control elements, allowing
12966
<.*?>
< table.height() ) {
<.*?><.*?> * keyboard navigation of the table and its controls.
12967
<.*?>
< table.height() ) {
<.*?><.*?> */
12968
<.*?>
< table.height() ) {
<.*?><.*?> "iTabIndex": 0,
12969
 
12970
<.*?>
< table.height() ) {
<.*?><.*?> /**
12971
<.*?>
< table.height() ) {
<.*?><.*?> * DIV container for the footer scrolling table if scrolling
12972
<.*?>
< table.height() ) {
<.*?><.*?> */
12973
<.*?>
< table.height() ) {
<.*?><.*?> "nScrollHead": null,
12974
 
12975
<.*?>
< table.height() ) {
<.*?><.*?> /**
12976
<.*?>
< table.height() ) {
<.*?><.*?> * DIV container for the footer scrolling table if scrolling
12977
<.*?>
< table.height() ) {
<.*?><.*?> */
12978
<.*?>
< table.height() ) {
<.*?><.*?> "nScrollFoot": null,
12979
 
12980
<.*?>
< table.height() ) {
<.*?><.*?> /**
12981
<.*?>
< table.height() ) {
<.*?><.*?> * Last applied sort
12982
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
12983
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
12984
<.*?>
< table.height() ) {
<.*?><.*?> */
12985
<.*?>
< table.height() ) {
<.*?><.*?> "aLastSort": [],
12986
 
12987
<.*?>
< table.height() ) {
<.*?><.*?> /**
12988
<.*?>
< table.height() ) {
<.*?><.*?> * Stored plug-in instances
12989
<.*?>
< table.height() ) {
<.*?><.*?> * @type object
12990
<.*?>
< table.height() ) {
<.*?><.*?> * @default {}
12991
<.*?>
< table.height() ) {
<.*?><.*?> */
12992
<.*?>
< table.height() ) {
<.*?><.*?> "oPlugins": {}
12993
<.*?>
< table.height() ) {
<.*?><.*?> };
12994
 
12995
<.*?>
< table.height() ) {
<.*?><.*?> /**
12996
<.*?>
< table.height() ) {
<.*?><.*?> * Extension object for DataTables that is used to provide all extension
12997
<.*?>
< table.height() ) {
<.*?><.*?> * options.
12998
<.*?>
< table.height() ) {
<.*?><.*?> *
12999
<.*?>
< table.height() ) {
<.*?><.*?> * Note that the `DataTable.ext` object is available through
13000
<.*?>
< table.height() ) {
<.*?><.*?> * `jQuery.fn.dataTable.ext` where it may be accessed and manipulated. It is
13001
<.*?>
< table.height() ) {
<.*?><.*?> * also aliased to `jQuery.fn.dataTableExt` for historic reasons.
13002
<.*?>
< table.height() ) {
<.*?><.*?> * @namespace
13003
<.*?>
< table.height() ) {
<.*?><.*?> * @extends DataTable.models.ext
13004
<.*?>
< table.height() ) {
<.*?><.*?> */
13005
 
13006
 
13007
<.*?>
< table.height() ) {
<.*?><.*?> /**
13008
<.*?>
< table.height() ) {
<.*?><.*?> * DataTables extensions
13009
<.*?>
< table.height() ) {
<.*?><.*?> *
13010
<.*?>
< table.height() ) {
<.*?><.*?> * This namespace acts as a collection area for plug-ins that can be used to
13011
<.*?>
< table.height() ) {
<.*?><.*?> * extend DataTables capabilities. Indeed many of the build in methods
13012
<.*?>
< table.height() ) {
<.*?><.*?> * use this method to provide their own capabilities (sorting methods for
13013
<.*?>
< table.height() ) {
<.*?><.*?> * example).
13014
<.*?>
< table.height() ) {
<.*?><.*?> *
13015
<.*?>
< table.height() ) {
<.*?><.*?> * Note that this namespace is aliased to `jQuery.fn.dataTableExt` for legacy
13016
<.*?>
< table.height() ) {
<.*?><.*?> * reasons
13017
<.*?>
< table.height() ) {
<.*?><.*?> *
13018
<.*?>
< table.height() ) {
<.*?><.*?> * @namespace
13019
<.*?>
< table.height() ) {
<.*?><.*?> */
13020
<.*?>
< table.height() ) {
<.*?><.*?> DataTable.ext = _ext = {
13021
<.*?>
< table.height() ) {
<.*?><.*?> /**
13022
<.*?>
< table.height() ) {
<.*?><.*?> * Element class names
13023
<.*?>
< table.height() ) {
<.*?><.*?> *
13024
<.*?>
< table.height() ) {
<.*?><.*?> * @type object
13025
<.*?>
< table.height() ) {
<.*?><.*?> * @default {}
13026
<.*?>
< table.height() ) {
<.*?><.*?> */
13027
<.*?>
< table.height() ) {
<.*?><.*?> classes: {},
13028
 
13029
 
13030
<.*?>
< table.height() ) {
<.*?><.*?> /**
13031
<.*?>
< table.height() ) {
<.*?><.*?> * Error reporting.
13032
<.*?>
< table.height() ) {
<.*?><.*?> *
13033
<.*?>
< table.height() ) {
<.*?><.*?> * How should DataTables report an error. Can take the value 'alert' or
13034
<.*?>
< table.height() ) {
<.*?><.*?> * 'throw'
13035
<.*?>
< table.height() ) {
<.*?><.*?> *
13036
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
13037
<.*?>
< table.height() ) {
<.*?><.*?> * @default alert
13038
<.*?>
< table.height() ) {
<.*?><.*?> */
13039
<.*?>
< table.height() ) {
<.*?><.*?> errMode: "alert",
13040
 
13041
 
13042
<.*?>
< table.height() ) {
<.*?><.*?> /**
13043
<.*?>
< table.height() ) {
<.*?><.*?> * Feature plug-ins.
13044
<.*?>
< table.height() ) {
<.*?><.*?> *
13045
<.*?>
< table.height() ) {
<.*?><.*?> * This is an array of objects which describe the feature plug-ins that are
13046
<.*?>
< table.height() ) {
<.*?><.*?> * available to DataTables. These feature plug-ins are then available for
13047
<.*?>
< table.height() ) {
<.*?><.*?> * use through the `dom` initialisation option.
13048
<.*?>
< table.height() ) {
<.*?><.*?> *
13049
<.*?>
< table.height() ) {
<.*?><.*?> * Each feature plug-in is described by an object which must have the
13050
<.*?>
< table.height() ) {
<.*?><.*?> * following properties:
13051
<.*?>
< table.height() ) {
<.*?><.*?> *
13052
<.*?>
< table.height() ) {
<.*?><.*?> * * `fnInit` - function that is used to initialise the plug-in,
13053
<.*?>
< table.height() ) {
<.*?><.*?> * * `cFeature` - a character so the feature can be enabled by the `dom`
13054
<.*?>
< table.height() ) {
<.*?><.*?> * instillation option. This is case sensitive.
13055
<.*?>
< table.height() ) {
<.*?><.*?> *
13056
<.*?>
< table.height() ) {
<.*?><.*?> * The `fnInit` function has the following input parameters:
13057
<.*?>
< table.height() ) {
<.*?><.*?> *
13058
<.*?>
< table.height() ) {
<.*?><.*?> * 1. `{object}` DataTables settings object: see
13059
<.*?>
< table.height() ) {
<.*?><.*?> * {@link DataTable.models.oSettings}
13060
<.*?>
< table.height() ) {
<.*?><.*?> *
13061
<.*?>
< table.height() ) {
<.*?><.*?> * And the following return is expected:
13062
<.*?>
< table.height() ) {
<.*?><.*?> *
13063
<.*?>
< table.height() ) {
<.*?><.*?> * * {node|null} The element which contains your feature. Note that the
13064
<.*?>
< table.height() ) {
<.*?><.*?> * return may also be void if your plug-in does not require to inject any
13065
<.*?>
< table.height() ) {
<.*?><.*?> * DOM elements into DataTables control (`dom`) - for example this might
13066
<.*?>
< table.height() ) {
<.*?><.*?> * be useful when developing a plug-in which allows table control via
13067
<.*?>
< table.height() ) {
<.*?><.*?> * keyboard entry
13068
<.*?>
< table.height() ) {
<.*?><.*?> *
13069
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
13070
<.*?>
< table.height() ) {
<.*?><.*?> *
13071
<.*?>
< table.height() ) {
<.*?><.*?> * @example
13072
<.*?>
< table.height() ) {
<.*?><.*?> * $.fn.dataTable.ext.features.push( {
13073
<.*?>
< table.height() ) {
<.*?><.*?> * "fnInit": function( oSettings ) {
13074
<.*?>
< table.height() ) {
<.*?><.*?> * return new TableTools( { "oDTSettings": oSettings } );
13075
<.*?>
< table.height() ) {
<.*?><.*?> * },
13076
<.*?>
< table.height() ) {
<.*?><.*?> * "cFeature": "T"
13077
<.*?>
< table.height() ) {
<.*?><.*?> * } );
13078
<.*?>
< table.height() ) {
<.*?><.*?> */
13079
<.*?>
< table.height() ) {
<.*?><.*?> feature: [],
13080
 
13081
 
13082
<.*?>
< table.height() ) {
<.*?><.*?> /**
13083
<.*?>
< table.height() ) {
<.*?><.*?> * Row searching.
13084
<.*?>
< table.height() ) {
<.*?><.*?> *
13085
<.*?>
< table.height() ) {
<.*?><.*?> * This method of searching is complimentary to the default type based
13086
<.*?>
< table.height() ) {
<.*?><.*?> * searching, and a lot more comprehensive as it allows you complete control
13087
<.*?>
< table.height() ) {
<.*?><.*?> * over the searching logic. Each element in this array is a function
13088
<.*?>
< table.height() ) {
<.*?><.*?> * (parameters described below) that is called for every row in the table,
13089
<.*?>
< table.height() ) {
<.*?><.*?> * and your logic decides if it should be included in the searching data set
13090
<.*?>
< table.height() ) {
<.*?><.*?> * or not.
13091
<.*?>
< table.height() ) {
<.*?><.*?> *
13092
<.*?>
< table.height() ) {
<.*?><.*?> * Searching functions have the following input parameters:
13093
<.*?>
< table.height() ) {
<.*?><.*?> *
13094
<.*?>
< table.height() ) {
<.*?><.*?> * 1. `{object}` DataTables settings object: see
13095
<.*?>
< table.height() ) {
<.*?><.*?> * {@link DataTable.models.oSettings}
13096
<.*?>
< table.height() ) {
<.*?><.*?> * 2. `{array|object}` Data for the row to be processed (same as the
13097
<.*?>
< table.height() ) {
<.*?><.*?> * original format that was passed in as the data source, or an array
13098
<.*?>
< table.height() ) {
<.*?><.*?> * from a DOM data source
13099
<.*?>
< table.height() ) {
<.*?><.*?> * 3. `{int}` Row index ({@link DataTable.models.oSettings.aoData}), which
13100
<.*?>
< table.height() ) {
<.*?><.*?> * can be useful to retrieve the `TR` element if you need DOM interaction.
13101
<.*?>
< table.height() ) {
<.*?><.*?> *
13102
<.*?>
< table.height() ) {
<.*?><.*?> * And the following return is expected:
13103
<.*?>
< table.height() ) {
<.*?><.*?> *
13104
<.*?>
< table.height() ) {
<.*?><.*?> * * {boolean} Include the row in the searched result set (true) or not
13105
<.*?>
< table.height() ) {
<.*?><.*?> * (false)
13106
<.*?>
< table.height() ) {
<.*?><.*?> *
13107
<.*?>
< table.height() ) {
<.*?><.*?> * Note that as with the main search ability in DataTables, technically this
13108
<.*?>
< table.height() ) {
<.*?><.*?> * is "filtering", since it is subtractive. However, for consistency in
13109
<.*?>
< table.height() ) {
<.*?><.*?> * naming we call it searching here.
13110
<.*?>
< table.height() ) {
<.*?><.*?> *
13111
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
13112
<.*?>
< table.height() ) {
<.*?><.*?> * @default []
13113
<.*?>
< table.height() ) {
<.*?><.*?> *
13114
<.*?>
< table.height() ) {
<.*?><.*?> * @example
13115
<.*?>
< table.height() ) {
<.*?><.*?> * // The following example shows custom search being applied to the
13116
<.*?>
< table.height() ) {
<.*?><.*?> * // fourth column (i.e. the data[3] index) based on two input values
13117
<.*?>
< table.height() ) {
<.*?><.*?> * // from the end-user, matching the data in a certain range.
13118
<.*?>
< table.height() ) {
<.*?><.*?> * $.fn.dataTable.ext.search.push(
13119
<.*?>
< table.height() ) {
<.*?><.*?> * function( settings, data, dataIndex ) {
13120
<.*?>
< table.height() ) {
<.*?><.*?> * var min = document.getElementById('min').value * 1;
13121
<.*?>
< table.height() ) {
<.*?><.*?> * var max = document.getElementById('max').value * 1;
13122
<.*?>
< table.height() ) {
<.*?><.*?> * var version = data[3] == "-" ? 0 : data[3]*1;
13123
<.*?>
< table.height() ) {
<.*?><.*?> *
13124
<.*?>
< table.height() ) {
<.*?><.*?> * if ( min == "" && max == "" ) {
13125
<.*?>
< table.height() ) {
<.*?><.*?> * return true;
13126
<.*?>
< table.height() ) {
<.*?><.*?> * }
13127
<.*?>
< table.height() ) {
<.*?><.*?> * else if ( min == "" && version < max ) {
13128
<.*?>
< table.height() ) {
<.*?><.*?> * return true;
13129
<.*?>
< table.height() ) {
<.*?><.*?> * }
13130
<.*?>
< table.height() ) {
<.*?><.*?> * else if ( min < version && "" == max ) {
13131
<.*?>
< table.height() ) {
<.*?><.*?> * return true;
13132
<.*?>
< table.height() ) {
<.*?><.*?> * }
13133
<.*?>
< table.height() ) {
<.*?><.*?> * else if ( min < version && version < max ) {
13134
<.*?>
< table.height() ) {
<.*?><.*?> * return true;
13135
<.*?>
< table.height() ) {
<.*?><.*?> * }
13136
<.*?>
< table.height() ) {
<.*?><.*?> * return false;
13137
<.*?>
< table.height() ) {
<.*?><.*?> * }
13138
<.*?>
< table.height() ) {
<.*?><.*?> * );
13139
<.*?>
< table.height() ) {
<.*?><.*?> */
13140
<.*?>
< table.height() ) {
<.*?><.*?> search: [],
13141
 
13142
 
13143
<.*?>
< table.height() ) {
<.*?><.*?> /**
13144
<.*?>
< table.height() ) {
<.*?><.*?> * Internal functions, exposed for used in plug-ins.
13145
<.*?>
< table.height() ) {
<.*?><.*?> *
13146
<.*?>
< table.height() ) {
<.*?><.*?> * Please note that you should not need to use the internal methods for
13147
<.*?>
< table.height() ) {
<.*?><.*?> * anything other than a plug-in (and even then, try to avoid if possible).
13148
<.*?>
< table.height() ) {
<.*?><.*?> * The internal function may change between releases.
13149
<.*?>
< table.height() ) {
<.*?><.*?> *
13150
<.*?>
< table.height() ) {
<.*?><.*?> * @type object
13151
<.*?>
< table.height() ) {
<.*?><.*?> * @default {}
13152
<.*?>
< table.height() ) {
<.*?><.*?> */
13153
<.*?>
< table.height() ) {
<.*?><.*?> internal: {},
13154
 
13155
 
13156
<.*?>
< table.height() ) {
<.*?><.*?> /**
13157
<.*?>
< table.height() ) {
<.*?><.*?> * Legacy configuration options. Enable and disable legacy options that
13158
<.*?>
< table.height() ) {
<.*?><.*?> * are available in DataTables.
13159
<.*?>
< table.height() ) {
<.*?><.*?> *
13160
<.*?>
< table.height() ) {
<.*?><.*?> * @type object
13161
<.*?>
< table.height() ) {
<.*?><.*?> */
13162
<.*?>
< table.height() ) {
<.*?><.*?> legacy: {
13163
<.*?>
< table.height() ) {
<.*?><.*?> /**
13164
<.*?>
< table.height() ) {
<.*?><.*?> * Enable / disable DataTables 1.9 compatible server-side processing
13165
<.*?>
< table.height() ) {
<.*?><.*?> * requests
13166
<.*?>
< table.height() ) {
<.*?><.*?> *
13167
<.*?>
< table.height() ) {
<.*?><.*?> * @type boolean
13168
<.*?>
< table.height() ) {
<.*?><.*?> * @default null
13169
<.*?>
< table.height() ) {
<.*?><.*?> */
13170
<.*?>
< table.height() ) {
<.*?><.*?> ajax: null
13171
<.*?>
< table.height() ) {
<.*?><.*?> },
13172
 
13173
 
13174
<.*?>
< table.height() ) {
<.*?><.*?> /**
13175
<.*?>
< table.height() ) {
<.*?><.*?> * Pagination plug-in methods.
13176
<.*?>
< table.height() ) {
<.*?><.*?> *
13177
<.*?>
< table.height() ) {
<.*?><.*?> * Each entry in this object is a function and defines which buttons should
13178
<.*?>
< table.height() ) {
<.*?><.*?> * be shown by the pagination rendering method that is used for the table:
13179
<.*?>
< table.height() ) {
<.*?><.*?> * {@link DataTable.ext.renderer.pageButton}. The renderer addresses how the
13180
<.*?>
< table.height() ) {
<.*?><.*?> * buttons are displayed in the document, while the functions here tell it
13181
<.*?>
< table.height() ) {
<.*?><.*?> * what buttons to display. This is done by returning an array of button
13182
<.*?>
< table.height() ) {
<.*?><.*?> * descriptions (what each button will do).
13183
<.*?>
< table.height() ) {
<.*?><.*?> *
13184
<.*?>
< table.height() ) {
<.*?><.*?> * Pagination types (the four built in options and any additional plug-in
13185
<.*?>
< table.height() ) {
<.*?><.*?> * options defined here) can be used through the `paginationType`
13186
<.*?>
< table.height() ) {
<.*?><.*?> * initialisation parameter.
13187
<.*?>
< table.height() ) {
<.*?><.*?> *
13188
<.*?>
< table.height() ) {
<.*?><.*?> * The functions defined take two parameters:
13189
<.*?>
< table.height() ) {
<.*?><.*?> *
13190
<.*?>
< table.height() ) {
<.*?><.*?> * 1. `{int} page` The current page index
13191
<.*?>
< table.height() ) {
<.*?><.*?> * 2. `{int} pages` The number of pages in the table
13192
<.*?>
< table.height() ) {
<.*?><.*?> *
13193
<.*?>
< table.height() ) {
<.*?><.*?> * Each function is expected to return an array where each element of the
13194
<.*?>
< table.height() ) {
<.*?><.*?> * array can be one of:
13195
<.*?>
< table.height() ) {
<.*?><.*?> *
13196
<.*?>
< table.height() ) {
<.*?><.*?> * * `first` - Jump to first page when activated
13197
<.*?>
< table.height() ) {
<.*?><.*?> * * `last` - Jump to last page when activated
13198
<.*?>
< table.height() ) {
<.*?><.*?> * * `previous` - Show previous page when activated
13199
<.*?>
< table.height() ) {
<.*?><.*?> * * `next` - Show next page when activated
13200
<.*?>
< table.height() ) {
<.*?><.*?> * * `{int}` - Show page of the index given
13201
<.*?>
< table.height() ) {
<.*?><.*?> * * `{array}` - A nested array containing the above elements to add a
13202
<.*?>
< table.height() ) {
<.*?><.*?> * containing 'DIV' element (might be useful for styling).
13203
<.*?>
< table.height() ) {
<.*?><.*?> *
13204
<.*?>
< table.height() ) {
<.*?><.*?> * Note that DataTables v1.9- used this object slightly differently whereby
13205
<.*?>
< table.height() ) {
<.*?><.*?> * an object with two functions would be defined for each plug-in. That
13206
<.*?>
< table.height() ) {
<.*?><.*?> * ability is still supported by DataTables 1.10+ to provide backwards
13207
<.*?>
< table.height() ) {
<.*?><.*?> * compatibility, but this option of use is now decremented and no longer
13208
<.*?>
< table.height() ) {
<.*?><.*?> * documented in DataTables 1.10+.
13209
<.*?>
< table.height() ) {
<.*?><.*?> *
13210
<.*?>
< table.height() ) {
<.*?><.*?> * @type object
13211
<.*?>
< table.height() ) {
<.*?><.*?> * @default {}
13212
<.*?>
< table.height() ) {
<.*?><.*?> *
13213
<.*?>
< table.height() ) {
<.*?><.*?> * @example
13214
<.*?>
< table.height() ) {
<.*?><.*?> * // Show previous, next and current page buttons only
13215
<.*?>
< table.height() ) {
<.*?><.*?> * $.fn.dataTableExt.oPagination.current = function ( page, pages ) {
13216
<.*?>
< table.height() ) {
<.*?><.*?> * return [ 'previous', page, 'next' ];
13217
<.*?>
< table.height() ) {
<.*?><.*?> * };
13218
<.*?>
< table.height() ) {
<.*?><.*?> */
13219
<.*?>
< table.height() ) {
<.*?><.*?> pager: {},
13220
 
13221
 
13222
<.*?>
< table.height() ) {
<.*?><.*?> renderer: {
13223
<.*?>
< table.height() ) {
<.*?><.*?> pageButton: {},
13224
<.*?>
< table.height() ) {
<.*?><.*?> header: {}
13225
<.*?>
< table.height() ) {
<.*?><.*?> },
13226
 
13227
 
13228
<.*?>
< table.height() ) {
<.*?><.*?> /**
13229
<.*?>
< table.height() ) {
<.*?><.*?> * Ordering plug-ins - custom data source
13230
<.*?>
< table.height() ) {
<.*?><.*?> *
13231
<.*?>
< table.height() ) {
<.*?><.*?> * The extension options for ordering of data available here is complimentary
13232
<.*?>
< table.height() ) {
<.*?><.*?> * to the default type based ordering that DataTables typically uses. It
13233
<.*?>
< table.height() ) {
<.*?><.*?> * allows much greater control over the the data that is being used to
13234
<.*?>
< table.height() ) {
<.*?><.*?> * order a column, but is necessarily therefore more complex.
13235
<.*?>
< table.height() ) {
<.*?><.*?> *
13236
<.*?>
< table.height() ) {
<.*?><.*?> * This type of ordering is useful if you want to do ordering based on data
13237
<.*?>
< table.height() ) {
<.*?><.*?> * live from the DOM (for example the contents of an 'input' element) rather
13238
<.*?>
< table.height() ) {
<.*?><.*?> * than just the static string that DataTables knows of.
13239
<.*?>
< table.height() ) {
<.*?><.*?> *
13240
<.*?>
< table.height() ) {
<.*?><.*?> * The way these plug-ins work is that you create an array of the values you
13241
<.*?>
< table.height() ) {
<.*?><.*?> * wish to be ordering for the column in question and then return that
13242
<.*?>
< table.height() ) {
<.*?><.*?> * array. The data in the array much be in the index order of the rows in
13243
<.*?>
< table.height() ) {
<.*?><.*?> * the table (not the currently ordering order!). Which order data gathering
13244
<.*?>
< table.height() ) {
<.*?><.*?> * function is run here depends on the `dt-init columns.orderDataType`
13245
<.*?>
< table.height() ) {
<.*?><.*?> * parameter that is used for the column (if any).
13246
<.*?>
< table.height() ) {
<.*?><.*?> *
13247
<.*?>
< table.height() ) {
<.*?><.*?> * The functions defined take two parameters:
13248
<.*?>
< table.height() ) {
<.*?><.*?> *
13249
<.*?>
< table.height() ) {
<.*?><.*?> * 1. `{object}` DataTables settings object: see
13250
<.*?>
< table.height() ) {
<.*?><.*?> * {@link DataTable.models.oSettings}
13251
<.*?>
< table.height() ) {
<.*?><.*?> * 2. `{int}` Target column index
13252
<.*?>
< table.height() ) {
<.*?><.*?> *
13253
<.*?>
< table.height() ) {
<.*?><.*?> * Each function is expected to return an array:
13254
<.*?>
< table.height() ) {
<.*?><.*?> *
13255
<.*?>
< table.height() ) {
<.*?><.*?> * * `{array}` Data for the column to be ordering upon
13256
<.*?>
< table.height() ) {
<.*?><.*?> *
13257
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
13258
<.*?>
< table.height() ) {
<.*?><.*?> *
13259
<.*?>
< table.height() ) {
<.*?><.*?> * @example
13260
<.*?>
< table.height() ) {
<.*?><.*?> * // Ordering using `input` node values
13261
<.*?>
< table.height() ) {
<.*?><.*?> * $.fn.dataTable.ext.order['dom-text'] = function ( settings, col )
13262
<.*?>
< table.height() ) {
<.*?><.*?> * {
13263
<.*?>
< table.height() ) {
<.*?><.*?> * return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {
13264
<.*?>
< table.height() ) {
<.*?><.*?> * return $('input', td).val();
13265
<.*?>
< table.height() ) {
<.*?><.*?> * } );
13266
<.*?>
< table.height() ) {
<.*?><.*?> * }
13267
<.*?>
< table.height() ) {
<.*?><.*?> */
13268
<.*?>
< table.height() ) {
<.*?><.*?> order: {},
13269
 
13270
 
13271
<.*?>
< table.height() ) {
<.*?><.*?> /**
13272
<.*?>
< table.height() ) {
<.*?><.*?> * Type based plug-ins.
13273
<.*?>
< table.height() ) {
<.*?><.*?> *
13274
<.*?>
< table.height() ) {
<.*?><.*?> * Each column in DataTables has a type assigned to it, either by automatic
13275
<.*?>
< table.height() ) {
<.*?><.*?> * detection or by direct assignment using the `type` option for the column.
13276
<.*?>
< table.height() ) {
<.*?><.*?> * The type of a column will effect how it is ordering and search (plug-ins
13277
<.*?>
< table.height() ) {
<.*?><.*?> * can also make use of the column type if required).
13278
<.*?>
< table.height() ) {
<.*?><.*?> *
13279
<.*?>
< table.height() ) {
<.*?><.*?> * @namespace
13280
<.*?>
< table.height() ) {
<.*?><.*?> */
13281
<.*?>
< table.height() ) {
<.*?><.*?> type: {
13282
<.*?>
< table.height() ) {
<.*?><.*?> /**
13283
<.*?>
< table.height() ) {
<.*?><.*?> * Type detection functions.
13284
<.*?>
< table.height() ) {
<.*?><.*?> *
13285
<.*?>
< table.height() ) {
<.*?><.*?> * The functions defined in this object are used to automatically detect
13286
<.*?>
< table.height() ) {
<.*?><.*?> * a column's type, making initialisation of DataTables super easy, even
13287
<.*?>
< table.height() ) {
<.*?><.*?> * when complex data is in the table.
13288
<.*?>
< table.height() ) {
<.*?><.*?> *
13289
<.*?>
< table.height() ) {
<.*?><.*?> * The functions defined take two parameters:
13290
<.*?>
< table.height() ) {
<.*?><.*?> *
13291
<.*?>
< table.height() ) {
<.*?><.*?> * 1. `{*}` Data from the column cell to be analysed
13292
<.*?>
< table.height() ) {
<.*?><.*?> * 2. `{settings}` DataTables settings object. This can be used to
13293
<.*?>
< table.height() ) {
<.*?><.*?> * perform context specific type detection - for example detection
13294
<.*?>
< table.height() ) {
<.*?><.*?> * based on language settings such as using a comma for a decimal
13295
<.*?>
< table.height() ) {
<.*?><.*?> * place. Generally speaking the options from the settings will not
13296
<.*?>
< table.height() ) {
<.*?><.*?> * be required
13297
<.*?>
< table.height() ) {
<.*?><.*?> *
13298
<.*?>
< table.height() ) {
<.*?><.*?> * Each function is expected to return:
13299
<.*?>
< table.height() ) {
<.*?><.*?> *
13300
<.*?>
< table.height() ) {
<.*?><.*?> * * `{string|null}` Data type detected, or null if unknown (and thus
13301
<.*?>
< table.height() ) {
<.*?><.*?> * pass it on to the other type detection functions.
13302
<.*?>
< table.height() ) {
<.*?><.*?> *
13303
<.*?>
< table.height() ) {
<.*?><.*?> * @type array
13304
<.*?>
< table.height() ) {
<.*?><.*?> *
13305
<.*?>
< table.height() ) {
<.*?><.*?> * @example
13306
<.*?>
< table.height() ) {
<.*?><.*?> * // Currency type detection plug-in:
13307
<.*?>
< table.height() ) {
<.*?><.*?> * $.fn.dataTable.ext.type.detect.push(
13308
<.*?>
< table.height() ) {
<.*?><.*?> * function ( data, settings ) {
13309
<.*?>
< table.height() ) {
<.*?><.*?> * // Check the numeric part
13310
<.*?>
< table.height() ) {
<.*?><.*?> * if ( ! $.isNumeric( data.substring(1) ) ) {
13311
<.*?>
< table.height() ) {
<.*?><.*?> * return null;
13312
<.*?>
< table.height() ) {
<.*?><.*?> * }
13313
<.*?>
< table.height() ) {
<.*?><.*?> *
13314
<.*?>
< table.height() ) {
<.*?><.*?> * // Check prefixed by currency
13315
<.*?>
< table.height() ) {
<.*?><.*?> * if ( data.charAt(0) == '$' || data.charAt(0) == '&pound;' ) {
13316
<.*?>
< table.height() ) {
<.*?><.*?> * return 'currency';
13317
<.*?>
< table.height() ) {
<.*?><.*?> * }
13318
<.*?>
< table.height() ) {
<.*?><.*?> * return null;
13319
<.*?>
< table.height() ) {
<.*?><.*?> * }
13320
<.*?>
< table.height() ) {
<.*?><.*?> * );
13321
<.*?>
< table.height() ) {
<.*?><.*?> */
13322
<.*?>
< table.height() ) {
<.*?><.*?> detect: [],
13323
 
13324
 
13325
<.*?>
< table.height() ) {
<.*?><.*?> /**
13326
<.*?>
< table.height() ) {
<.*?><.*?> * Type based search formatting.
13327
<.*?>
< table.height() ) {
<.*?><.*?> *
13328
<.*?>
< table.height() ) {
<.*?><.*?> * The type based searching functions can be used to pre-format the
13329
<.*?>
< table.height() ) {
<.*?><.*?> * data to be search on. For example, it can be used to strip HTML
13330
<.*?>
< table.height() ) {
<.*?><.*?> * tags or to de-format telephone numbers for numeric only searching.
13331
<.*?>
< table.height() ) {
<.*?><.*?> *
13332
<.*?>
< table.height() ) {
<.*?><.*?> * Note that is a search is not defined for a column of a given type,
13333
<.*?>
< table.height() ) {
<.*?><.*?> * no search formatting will be performed.
13334
<.*?>
< table.height() ) {
<.*?><.*?> *
13335
<.*?>
< table.height() ) {
<.*?><.*?> * Pre-processing of searching data plug-ins - When you assign the sType
13336
<.*?>
< table.height() ) {
<.*?><.*?> * for a column (or have it automatically detected for you by DataTables
13337
<.*?>
< table.height() ) {
<.*?><.*?> * or a type detection plug-in), you will typically be using this for
13338
<.*?>
< table.height() ) {
<.*?><.*?> * custom sorting, but it can also be used to provide custom searching
13339
<.*?>
< table.height() ) {
<.*?><.*?> * by allowing you to pre-processing the data and returning the data in
13340
<.*?>
< table.height() ) {
<.*?><.*?> * the format that should be searched upon. This is done by adding
13341
<.*?>
< table.height() ) {
<.*?><.*?> * functions this object with a parameter name which matches the sType
13342
<.*?>
< table.height() ) {
<.*?><.*?> * for that target column. This is the corollary of <i>afnSortData</i>
13343
<.*?>
< table.height() ) {
<.*?><.*?> * for searching data.
13344
<.*?>
< table.height() ) {
<.*?><.*?> *
13345
<.*?>
< table.height() ) {
<.*?><.*?> * The functions defined take a single parameter:
13346
<.*?>
< table.height() ) {
<.*?><.*?> *
13347
<.*?>
< table.height() ) {
<.*?><.*?> * 1. `{*}` Data from the column cell to be prepared for searching
13348
<.*?>
< table.height() ) {
<.*?><.*?> *
13349
<.*?>
< table.height() ) {
<.*?><.*?> * Each function is expected to return:
13350
<.*?>
< table.height() ) {
<.*?><.*?> *
13351
<.*?>
< table.height() ) {
<.*?><.*?> * * `{string|null}` Formatted string that will be used for the searching.
13352
<.*?>
< table.height() ) {
<.*?><.*?> *
13353
<.*?>
< table.height() ) {
<.*?><.*?> * @type object
13354
<.*?>
< table.height() ) {
<.*?><.*?> * @default {}
13355
<.*?>
< table.height() ) {
<.*?><.*?> *
13356
<.*?>
< table.height() ) {
<.*?><.*?> * @example
13357
<.*?>
< table.height() ) {
<.*?><.*?> * $.fn.dataTable.ext.type.search['title-numeric'] = function ( d ) {
13358
<.*?>
< table.height() ) {
<.*?><.*?> * return d.replace(/\n/g," ").replace( /<.*?>/g, "" );
13359
<.*?>
< table.height() ) {
<.*?><.*?> * }
13360
<.*?>
< table.height() ) {
<.*?><.*?> */
13361
<.*?>
< table.height() ) {
<.*?><.*?> search: {},
13362
 
13363
 
13364
<.*?>
< table.height() ) {
<.*?><.*?> /**
13365
<.*?>
< table.height() ) {
<.*?><.*?> * Type based ordering.
13366
<.*?>
< table.height() ) {
<.*?><.*?> *
13367
<.*?>
< table.height() ) {
<.*?><.*?> * The column type tells DataTables what ordering to apply to the table
13368
<.*?>
< table.height() ) {
<.*?><.*?> * when a column is sorted upon. The order for each type that is defined,
13369
<.*?>
< table.height() ) {
<.*?><.*?> * is defined by the functions available in this object.
13370
<.*?>
< table.height() ) {
<.*?><.*?> *
13371
<.*?>
< table.height() ) {
<.*?><.*?> * Each ordering option can be described by three properties added to
13372
<.*?>
< table.height() ) {
<.*?><.*?> * this object:
13373
<.*?>
< table.height() ) {
<.*?><.*?> *
13374
<.*?>
< table.height() ) {
<.*?><.*?> * * `{type}-pre` - Pre-formatting function
13375
<.*?>
< table.height() ) {
<.*?><.*?> * * `{type}-asc` - Ascending order function
13376
<.*?>
< table.height() ) {
<.*?><.*?> * * `{type}-desc` - Descending order function
13377
<.*?>
< table.height() ) {
<.*?><.*?> *
13378
<.*?>
< table.height() ) {
<.*?><.*?> * All three can be used together, only `{type}-pre` or only
13379
<.*?>
< table.height() ) {
<.*?><.*?> * `{type}-asc` and `{type}-desc` together. It is generally recommended
13380
<.*?>
< table.height() ) {
<.*?><.*?> * that only `{type}-pre` is used, as this provides the optimal
13381
<.*?>
< table.height() ) {
<.*?><.*?> * implementation in terms of speed, although the others are provided
13382
<.*?>
< table.height() ) {
<.*?><.*?> * for compatibility with existing Javascript sort functions.
13383
<.*?>
< table.height() ) {
<.*?><.*?> *
13384
<.*?>
< table.height() ) {
<.*?><.*?> * `{type}-pre`: Functions defined take a single parameter:
13385
<.*?>
< table.height() ) {
<.*?><.*?> *
13386
<.*?>
< table.height() ) {
<.*?><.*?> * 1. `{*}` Data from the column cell to be prepared for ordering
13387
<.*?>
< table.height() ) {
<.*?><.*?> *
13388
<.*?>
< table.height() ) {
<.*?><.*?> * And return:
13389
<.*?>
< table.height() ) {
<.*?><.*?> *
13390
<.*?>
< table.height() ) {
<.*?><.*?> * * `{*}` Data to be sorted upon
13391
<.*?>
< table.height() ) {
<.*?><.*?> *
13392
<.*?>
< table.height() ) {
<.*?><.*?> * `{type}-asc` and `{type}-desc`: Functions are typical Javascript sort
13393
<.*?>
< table.height() ) {
<.*?><.*?> * functions, taking two parameters:
13394
<.*?>
< table.height() ) {
<.*?><.*?> *
13395
<.*?>
< table.height() ) {
<.*?><.*?> * 1. `{*}` Data to compare to the second parameter
13396
<.*?>
< table.height() ) {
<.*?><.*?> * 2. `{*}` Data to compare to the first parameter
13397
<.*?>
< table.height() ) {
<.*?><.*?> *
13398
<.*?>
< table.height() ) {
<.*?><.*?> * And returning:
13399
<.*?>
< table.height() ) {
<.*?><.*?> *
13400
<.*?>
< table.height() ) {
<.*?><.*?> * * `{*}` Ordering match: <0 if first parameter should be sorted lower
13401
<.*?>
< table.height() ) {
<.*?><.*?> * than the second parameter, ===0 if the two parameters are equal and
13402
<.*?>
< table.height() ) {
<.*?><.*?> * >0 if the first parameter should be sorted height than the second
13403
<.*?>
< table.height() ) {
<.*?><.*?> * parameter.
13404
<.*?>
< table.height() ) {
<.*?><.*?> *
13405
<.*?>
< table.height() ) {
<.*?><.*?> * @type object
13406
<.*?>
< table.height() ) {
<.*?><.*?> * @default {}
13407
<.*?>
< table.height() ) {
<.*?><.*?> *
13408
<.*?>
< table.height() ) {
<.*?><.*?> * @example
13409
<.*?>
< table.height() ) {
<.*?><.*?> * // Numeric ordering of formatted numbers with a pre-formatter
13410
<.*?>
< table.height() ) {
<.*?><.*?> * $.extend( $.fn.dataTable.ext.type.order, {
13411
<.*?>
< table.height() ) {
<.*?><.*?> * "string-pre": function(x) {
13412
<.*?>
< table.height() ) {
<.*?><.*?> * a = (a === "-" || a === "") ? 0 : a.replace( /[^\d\-\.]/g, "" );
13413
<.*?>
< table.height() ) {
<.*?><.*?> * return parseFloat( a );
13414
<.*?>
< table.height() ) {
<.*?><.*?> * }
13415
<.*?>
< table.height() ) {
<.*?><.*?> * } );
13416
<.*?>
< table.height() ) {
<.*?><.*?> *
13417
<.*?>
< table.height() ) {
<.*?><.*?> * @example
13418
<.*?>
< table.height() ) {
<.*?><.*?> * // Case-sensitive string ordering, with no pre-formatting method
13419
<.*?>
< table.height() ) {
<.*?><.*?> * $.extend( $.fn.dataTable.ext.order, {
13420
<.*?>
< table.height() ) {
<.*?><.*?> * "string-case-asc": function(x,y) {
13421
<.*?>
< table.height() ) {
<.*?><.*?> * return ((x < y) ? -1 : ((x > y) ? 1 : 0));
13422
<.*?>
< table.height() ) {
<.*?><.*?> * },
13423
<.*?>
< table.height() ) {
<.*?><.*?> * "string-case-desc": function(x,y) {
13424
<.*?>
< table.height() ) {
<.*?><.*?> * return ((x < y) ? 1 : ((x > y) ? -1 : 0));
13425
<.*?>
< table.height() ) {
<.*?><.*?> * }
13426
<.*?>
< table.height() ) {
<.*?><.*?> * } );
13427
<.*?>
< table.height() ) {
<.*?><.*?> */
13428
<.*?>
< table.height() ) {
<.*?><.*?> order: {}
13429
<.*?>
< table.height() ) {
<.*?><.*?> },
13430
 
13431
<.*?>
< table.height() ) {
<.*?><.*?> /**
13432
<.*?>
< table.height() ) {
<.*?><.*?> * Unique DataTables instance counter
13433
<.*?>
< table.height() ) {
<.*?><.*?> *
13434
<.*?>
< table.height() ) {
<.*?><.*?> * @type int
13435
<.*?>
< table.height() ) {
<.*?><.*?> * @private
13436
<.*?>
< table.height() ) {
<.*?><.*?> */
13437
<.*?>
< table.height() ) {
<.*?><.*?> _unique: 0,
13438
 
13439
 
13440
<.*?>
< table.height() ) {
<.*?><.*?> //
13441
<.*?>
< table.height() ) {
<.*?><.*?> // Depreciated
13442
<.*?>
< table.height() ) {
<.*?><.*?> // The following properties are retained for backwards compatiblity only.
13443
<.*?>
< table.height() ) {
<.*?><.*?> // The should not be used in new projects and will be removed in a future
13444
<.*?>
< table.height() ) {
<.*?><.*?> // version
13445
<.*?>
< table.height() ) {
<.*?><.*?> //
13446
 
13447
<.*?>
< table.height() ) {
<.*?><.*?> /**
13448
<.*?>
< table.height() ) {
<.*?><.*?> * Version check function.
13449
<.*?>
< table.height() ) {
<.*?><.*?> * @type function
13450
<.*?>
< table.height() ) {
<.*?><.*?> * @depreciated Since 1.10
13451
<.*?>
< table.height() ) {
<.*?><.*?> */
13452
<.*?>
< table.height() ) {
<.*?><.*?> fnVersionCheck: DataTable.fnVersionCheck,
13453
 
13454
 
13455
<.*?>
< table.height() ) {
<.*?><.*?> /**
13456
<.*?>
< table.height() ) {
<.*?><.*?> * Index for what 'this' index API functions should use
13457
<.*?>
< table.height() ) {
<.*?><.*?> * @type int
13458
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
13459
<.*?>
< table.height() ) {
<.*?><.*?> */
13460
<.*?>
< table.height() ) {
<.*?><.*?> iApiIndex: 0,
13461
 
13462
 
13463
<.*?>
< table.height() ) {
<.*?><.*?> /**
13464
<.*?>
< table.height() ) {
<.*?><.*?> * jQuery UI class container
13465
<.*?>
< table.height() ) {
<.*?><.*?> * @type object
13466
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
13467
<.*?>
< table.height() ) {
<.*?><.*?> */
13468
<.*?>
< table.height() ) {
<.*?><.*?> oJUIClasses: {},
13469
 
13470
 
13471
<.*?>
< table.height() ) {
<.*?><.*?> /**
13472
<.*?>
< table.height() ) {
<.*?><.*?> * Software version
13473
<.*?>
< table.height() ) {
<.*?><.*?> * @type string
13474
<.*?>
< table.height() ) {
<.*?><.*?> * @deprecated Since v1.10
13475
<.*?>
< table.height() ) {
<.*?><.*?> */
13476
<.*?>
< table.height() ) {
<.*?><.*?> sVersion: DataTable.version
13477
<.*?>
< table.height() ) {
<.*?><.*?> };
13478
 
13479
 
13480
<.*?>
< table.height() ) {
<.*?><.*?> //
13481
<.*?>
< table.height() ) {
<.*?><.*?> // Backwards compatibility. Alias to pre 1.10 Hungarian notation counter parts
13482
<.*?>
< table.height() ) {
<.*?><.*?> //
13483
<.*?>
< table.height() ) {
<.*?><.*?> $.extend( _ext, {
13484
<.*?>
< table.height() ) {
<.*?><.*?> afnFiltering: _ext.search,
13485
<.*?>
< table.height() ) {
<.*?><.*?> aTypes: _ext.type.detect,
13486
<.*?>
< table.height() ) {
<.*?><.*?> ofnSearch: _ext.type.search,
13487
<.*?>
< table.height() ) {
<.*?><.*?> oSort: _ext.type.order,
13488
<.*?>
< table.height() ) {
<.*?><.*?> afnSortData: _ext.order,
13489
<.*?>
< table.height() ) {
<.*?><.*?> aoFeatures: _ext.feature,
13490
<.*?>
< table.height() ) {
<.*?><.*?> oApi: _ext.internal,
13491
<.*?>
< table.height() ) {
<.*?><.*?> oStdClasses: _ext.classes,
13492
<.*?>
< table.height() ) {
<.*?><.*?> oPagination: _ext.pager
13493
<.*?>
< table.height() ) {
<.*?><.*?> } );
13494
 
13495
 
13496
<.*?>
< table.height() ) {
<.*?><.*?> $.extend( DataTable.ext.classes, {
13497
<.*?>
< table.height() ) {
<.*?><.*?> "sTable": "dataTable",
13498
<.*?>
< table.height() ) {
<.*?><.*?> "sNoFooter": "no-footer",
13499
 
13500
<.*?>
< table.height() ) {
<.*?><.*?> /* Paging buttons */
13501
<.*?>
< table.height() ) {
<.*?><.*?> "sPageButton": "paginate_button",
13502
<.*?>
< table.height() ) {
<.*?><.*?> "sPageButtonActive": "current",
13503
<.*?>
< table.height() ) {
<.*?><.*?> "sPageButtonDisabled": "disabled",
13504
 
13505
<.*?>
< table.height() ) {
<.*?><.*?> /* Striping classes */
13506
<.*?>
< table.height() ) {
<.*?><.*?> "sStripeOdd": "odd",
13507
<.*?>
< table.height() ) {
<.*?><.*?> "sStripeEven": "even",
13508
 
13509
<.*?>
< table.height() ) {
<.*?><.*?> /* Empty row */
13510
<.*?>
< table.height() ) {
<.*?><.*?> "sRowEmpty": "dataTables_empty",
13511
 
13512
<.*?>
< table.height() ) {
<.*?><.*?> /* Features */
13513
<.*?>
< table.height() ) {
<.*?><.*?> "sWrapper": "dataTables_wrapper",
13514
<.*?>
< table.height() ) {
<.*?><.*?> "sFilter": "dataTables_filter",
13515
<.*?>
< table.height() ) {
<.*?><.*?> "sInfo": "dataTables_info",
13516
<.*?>
< table.height() ) {
<.*?><.*?> "sPaging": "dataTables_paginate paging_", /* Note that the type is postfixed */
13517
<.*?>
< table.height() ) {
<.*?><.*?> "sLength": "dataTables_length",
13518
<.*?>
< table.height() ) {
<.*?><.*?> "sProcessing": "dataTables_processing",
13519
 
13520
<.*?>
< table.height() ) {
<.*?><.*?> /* Sorting */
13521
<.*?>
< table.height() ) {
<.*?><.*?> "sSortAsc": "sorting_asc",
13522
<.*?>
< table.height() ) {
<.*?><.*?> "sSortDesc": "sorting_desc",
13523
<.*?>
< table.height() ) {
<.*?><.*?> "sSortable": "sorting", /* Sortable in both directions */
13524
<.*?>
< table.height() ) {
<.*?><.*?> "sSortableAsc": "sorting_asc_disabled",
13525
<.*?>
< table.height() ) {
<.*?><.*?> "sSortableDesc": "sorting_desc_disabled",
13526
<.*?>
< table.height() ) {
<.*?><.*?> "sSortableNone": "sorting_disabled",
13527
<.*?>
< table.height() ) {
<.*?><.*?> "sSortColumn": "sorting_", /* Note that an int is postfixed for the sorting order */
13528
 
13529
<.*?>
< table.height() ) {
<.*?><.*?> /* Filtering */
13530
<.*?>
< table.height() ) {
<.*?><.*?> "sFilterInput": "",
13531
 
13532
<.*?>
< table.height() ) {
<.*?><.*?> /* Page length */
13533
<.*?>
< table.height() ) {
<.*?><.*?> "sLengthSelect": "",
13534
 
13535
<.*?>
< table.height() ) {
<.*?><.*?> /* Scrolling */
13536
<.*?>
< table.height() ) {
<.*?><.*?> "sScrollWrapper": "dataTables_scroll",
13537
<.*?>
< table.height() ) {
<.*?><.*?> "sScrollHead": "dataTables_scrollHead",
13538
<.*?>
< table.height() ) {
<.*?><.*?> "sScrollHeadInner": "dataTables_scrollHeadInner",
13539
<.*?>
< table.height() ) {
<.*?><.*?> "sScrollBody": "dataTables_scrollBody",
13540
<.*?>
< table.height() ) {
<.*?><.*?> "sScrollFoot": "dataTables_scrollFoot",
13541
<.*?>
< table.height() ) {
<.*?><.*?> "sScrollFootInner": "dataTables_scrollFootInner",
13542
 
13543
<.*?>
< table.height() ) {
<.*?><.*?> /* Misc */
13544
<.*?>
< table.height() ) {
<.*?><.*?> "sHeaderTH": "",
13545
<.*?>
< table.height() ) {
<.*?><.*?> "sFooterTH": "",
13546
 
13547
<.*?>
< table.height() ) {
<.*?><.*?> // Deprecated
13548
<.*?>
< table.height() ) {
<.*?><.*?> "sSortJUIAsc": "",
13549
<.*?>
< table.height() ) {
<.*?><.*?> "sSortJUIDesc": "",
13550
<.*?>
< table.height() ) {
<.*?><.*?> "sSortJUI": "",
13551
<.*?>
< table.height() ) {
<.*?><.*?> "sSortJUIAscAllowed": "",
13552
<.*?>
< table.height() ) {
<.*?><.*?> "sSortJUIDescAllowed": "",
13553
<.*?>
< table.height() ) {
<.*?><.*?> "sSortJUIWrapper": "",
13554
<.*?>
< table.height() ) {
<.*?><.*?> "sSortIcon": "",
13555
<.*?>
< table.height() ) {
<.*?><.*?> "sJUIHeader": "",
13556
<.*?>
< table.height() ) {
<.*?><.*?> "sJUIFooter": ""
13557
<.*?>
< table.height() ) {
<.*?><.*?> } );
13558
 
13559
 
13560
<.*?>
< table.height() ) {
<.*?><.*?> (function() {
13561
 
13562
<.*?>
< table.height() ) {
<.*?><.*?> // Reused strings for better compression. Closure compiler appears to have a
13563
<.*?>
< table.height() ) {
<.*?><.*?> // weird edge case where it is trying to expand strings rather than use the
13564
<.*?>
< table.height() ) {
<.*?><.*?> // variable version. This results in about 200 bytes being added, for very
13565
<.*?>
< table.height() ) {
<.*?><.*?> // little preference benefit since it this run on script load only.
13566
<.*?>
< table.height() ) {
<.*?><.*?> var _empty = '';
13567
<.*?>
< table.height() ) {
<.*?><.*?> _empty = '';
13568
 
13569
<.*?>
< table.height() ) {
<.*?><.*?> var _stateDefault = _empty + 'ui-state-default';
13570
<.*?>
< table.height() ) {
<.*?><.*?> var _sortIcon = _empty + 'css_right ui-icon ui-icon-';
13571
<.*?>
< table.height() ) {
<.*?><.*?> var _headerFooter = _empty + 'fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix';
13572
 
13573
<.*?>
< table.height() ) {
<.*?><.*?> $.extend( DataTable.ext.oJUIClasses, DataTable.ext.classes, {
13574
<.*?>
< table.height() ) {
<.*?><.*?> /* Full numbers paging buttons */
13575
<.*?>
< table.height() ) {
<.*?><.*?> "sPageButton": "fg-button ui-button "+_stateDefault,
13576
<.*?>
< table.height() ) {
<.*?><.*?> "sPageButtonActive": "ui-state-disabled",
13577
<.*?>
< table.height() ) {
<.*?><.*?> "sPageButtonDisabled": "ui-state-disabled",
13578
 
13579
<.*?>
< table.height() ) {
<.*?><.*?> /* Features */
13580
<.*?>
< table.height() ) {
<.*?><.*?> "sPaging": "dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi "+
13581
<.*?>
< table.height() ) {
<.*?><.*?> "ui-buttonset-multi paging_", /* Note that the type is postfixed */
13582
 
13583
<.*?>
< table.height() ) {
<.*?><.*?> /* Sorting */
13584
<.*?>
< table.height() ) {
<.*?><.*?> "sSortAsc": _stateDefault+" sorting_asc",
13585
<.*?>
< table.height() ) {
<.*?><.*?> "sSortDesc": _stateDefault+" sorting_desc",
13586
<.*?>
< table.height() ) {
<.*?><.*?> "sSortable": _stateDefault+" sorting",
13587
<.*?>
< table.height() ) {
<.*?><.*?> "sSortableAsc": _stateDefault+" sorting_asc_disabled",
13588
<.*?>
< table.height() ) {
<.*?><.*?> "sSortableDesc": _stateDefault+" sorting_desc_disabled",
13589
<.*?>
< table.height() ) {
<.*?><.*?> "sSortableNone": _stateDefault+" sorting_disabled",
13590
<.*?>
< table.height() ) {
<.*?><.*?> "sSortJUIAsc": _sortIcon+"triangle-1-n",
13591
<.*?>
< table.height() ) {
<.*?><.*?> "sSortJUIDesc": _sortIcon+"triangle-1-s",
13592
<.*?>
< table.height() ) {
<.*?><.*?> "sSortJUI": _sortIcon+"carat-2-n-s",
13593
<.*?>
< table.height() ) {
<.*?><.*?> "sSortJUIAscAllowed": _sortIcon+"carat-1-n",
13594
<.*?>
< table.height() ) {
<.*?><.*?> "sSortJUIDescAllowed": _sortIcon+"carat-1-s",
13595
<.*?>
< table.height() ) {
<.*?><.*?> "sSortJUIWrapper": "DataTables_sort_wrapper",
13596
<.*?>
< table.height() ) {
<.*?><.*?> "sSortIcon": "DataTables_sort_icon",
13597
 
13598
<.*?>
< table.height() ) {
<.*?><.*?> /* Scrolling */
13599
<.*?>
< table.height() ) {
<.*?><.*?> "sScrollHead": "dataTables_scrollHead "+_stateDefault,
13600
<.*?>
< table.height() ) {
<.*?><.*?> "sScrollFoot": "dataTables_scrollFoot "+_stateDefault,
13601
 
13602
<.*?>
< table.height() ) {
<.*?><.*?> /* Misc */
13603
<.*?>
< table.height() ) {
<.*?><.*?> "sHeaderTH": _stateDefault,
13604
<.*?>
< table.height() ) {
<.*?><.*?> "sFooterTH": _stateDefault,
13605
<.*?>
< table.height() ) {
<.*?><.*?> "sJUIHeader": _headerFooter+" ui-corner-tl ui-corner-tr",
13606
<.*?>
< table.height() ) {
<.*?><.*?> "sJUIFooter": _headerFooter+" ui-corner-bl ui-corner-br"
13607
<.*?>
< table.height() ) {
<.*?><.*?> } );
13608
 
13609
<.*?>
< table.height() ) {
<.*?><.*?> }());
13610
 
13611
 
13612
 
13613
<.*?>
< table.height() ) {
<.*?><.*?> var extPagination = DataTable.ext.pager;
13614
 
13615
<.*?>
< table.height() ) {
<.*?><.*?> function _numbers ( page, pages ) {
13616
<.*?>
< table.height() ) {
<.*?><.*?> var
13617
<.*?>
< table.height() ) {
<.*?><.*?> numbers = [],
13618
<.*?>
< table.height() ) {
<.*?><.*?> buttons = extPagination.numbers_length,
13619
<.*?>
< table.height() ) {
<.*?><.*?> half = Math.floor( buttons / 2 ),
13620
<.*?>
< table.height() ) {
<.*?><.*?> i = 1;
13621
 
13622
<.*?>
< table.height() ) {
<.*?><.*?> if ( pages <= buttons ) {
13623
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) { numbers = _range( 0, pages );
13624
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) { }
13625
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) { else if ( page <= half ) {
13626
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { numbers = _range( 0, buttons-2 );
13627
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { numbers.push( 'ellipsis' );
13628
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { numbers.push( pages-1 );
13629
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { }
13630
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { else if ( page >= pages - 1 - half ) {
13631
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { numbers = _range( pages-(buttons-2), pages );
13632
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { numbers.splice( 0, 0, 'ellipsis' ); // no unshift in ie6
13633
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { numbers.splice( 0, 0, 0 );
13634
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { }
13635
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { else {
13636
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { numbers = _range( page-1, page+2 );
13637
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { numbers.push( 'ellipsis' );
13638
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { numbers.push( pages-1 );
13639
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { numbers.splice( 0, 0, 'ellipsis' );
13640
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { numbers.splice( 0, 0, 0 );
13641
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { }
13642
 
13643
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { numbers.DT_el = 'span';
13644
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { return numbers;
13645
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { }
13646
 
13647
 
13648
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { $.extend( extPagination, {
13649
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { simple: function ( page, pages ) {
13650
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { return [ 'previous', 'next' ];
13651
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { },
13652
 
13653
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { full: function ( page, pages ) {
13654
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { return [ 'first', 'previous', 'next', 'last' ];
13655
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { },
13656
 
13657
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { simple_numbers: function ( page, pages ) {
13658
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { return [ 'previous', _numbers(page, pages), 'next' ];
13659
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { },
13660
 
13661
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { full_numbers: function ( page, pages ) {
13662
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { return [ 'first', 'previous', _numbers(page, pages), 'next', 'last' ];
13663
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { },
13664
 
13665
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { // For testing and plug-ins to use
13666
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { _numbers: _numbers,
13667
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { numbers_length: 7
13668
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { } );
13669
 
13670
 
13671
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { $.extend( true, DataTable.ext.renderer, {
13672
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { pageButton: {
13673
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { _: function ( settings, host, idx, buttons, page, pages ) {
13674
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { var classes = settings.oClasses;
13675
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { var lang = settings.oLanguage.oPaginate;
13676
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { var btnDisplay, btnClass, counter=0;
13677
 
13678
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { var attach = function( container, buttons ) {
13679
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { var i, ien, node, button;
13680
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { var clickHandler = function ( e ) {
13681
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { _fnPageChange( settings, e.data.action, true );
13682
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { };
13683
 
13684
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { for ( i=0, ien=buttons.length ; i
13685
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {
13686
 
13687
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {
13688
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {>' )
13689
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { .appendTo( container );
13690
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { attach( inner, button );
13691
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { }
13692
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { else {
13693
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { btnDisplay = '';
13694
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { btnClass = '';
13695
 
13696
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { switch ( button ) {
13697
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { case 'ellipsis':
13698
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { container.append('<span>&hellip;</span>');
13699
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { break;
13700
 
13701
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { case 'first':
13702
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { btnDisplay = lang.sFirst;
13703
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { btnClass = button + (page > 0 ?
13704
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { '' : ' '+classes.sPageButtonDisabled);
13705
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { break;
13706
 
13707
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { case 'previous':
13708
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { btnDisplay = lang.sPrevious;
13709
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { btnClass = button + (page > 0 ?
13710
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { '' : ' '+classes.sPageButtonDisabled);
13711
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { break;
13712
 
13713
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { case 'next':
13714
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { btnDisplay = lang.sNext;
13715
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) { btnClass = button + (page < pages-1 ?
13716
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ? '' : ' '+classes.sPageButtonDisabled);
13717
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ? break;
13718
 
13719
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ? case 'last':
13720
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ? btnDisplay = lang.sLast;
13721
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ? btnClass = button + (page < pages-1 ?
13722
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? '' : ' '+classes.sPageButtonDisabled);
13723
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? break;
13724
 
13725
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? default:
13726
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? btnDisplay = button + 1;
13727
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? btnClass = page === button ?
13728
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? classes.sPageButtonActive : '';
13729
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? break;
13730
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? }
13731
 
13732
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? if ( btnDisplay ) {
13733
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? node = $('', {
13734
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? 'class': classes.sPageButton+' '+btnClass,
13735
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? 'aria-controls': settings.sTableId,
13736
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? 'data-dt-idx': counter,
13737
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? 'tabindex': settings.iTabIndex,
13738
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? 'id': idx === 0 && typeof button === 'string' ?
13739
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? settings.sTableId +'_'+ button :
13740
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? null
13741
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? } )
13742
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? .html( btnDisplay )
13743
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? .appendTo( container );
13744
 
13745
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? _fnBindAction(
13746
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? node, {action: button}, clickHandler
13747
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? );
13748
 
13749
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? counter++;
13750
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? }
13751
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? }
13752
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? }
13753
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? };
13754
 
13755
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? // Because this approach is destroying and recreating the paging
13756
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? // elements, focus is lost on the select button which is bad for
13757
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? // accessibility. So we want to restore focus once the draw has
13758
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? // completed
13759
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? var activeEl = $(document.activeElement).data('dt-idx');
13760
 
13761
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? attach( $(host).empty(), buttons );
13762
 
13763
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? if ( activeEl !== null ) {
13764
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? $(host).find( '[data-dt-idx='+activeEl+']' ).focus();
13765
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? }
13766
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? }
13767
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? }
13768
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? } );
13769
 
13770
 
13771
 
13772
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? var __numericReplace = function ( d, decimalPlace, re1, re2 ) {
13773
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? if ( !d || d === '-' ) {
13774
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? return -Infinity;
13775
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? }
13776
 
13777
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? // If a decimal place other than `.` is used, it needs to be given to the
13778
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? // function so we can detect it and replace with a `.` which is the only
13779
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? // decimal place Javascript recognises - it is not locale aware.
13780
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? if ( decimalPlace ) {
13781
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? d = _numToDecimal( d, decimalPlace );
13782
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? }
13783
 
13784
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? if ( d.replace ) {
13785
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? if ( re1 ) {
13786
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? d = d.replace( re1, '' );
13787
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? }
13788
 
13789
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? if ( re2 ) {
13790
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? d = d.replace( re2, '' );
13791
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? }
13792
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? }
13793
 
13794
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? return d * 1;
13795
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? };
13796
 
13797
 
13798
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? // Add the numeric 'deformatting' functions for sorting. This is done in a
13799
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? // function to provide an easy ability for the language options to add
13800
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? // additional methods if a non-period decimal place is used.
13801
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? function _addNumericSort ( decimalPlace ) {
13802
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? $.each(
13803
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? {
13804
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? // Plain numbers
13805
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? "num": function ( d ) {
13806
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? return __numericReplace( d, decimalPlace );
13807
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? },
13808
 
13809
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? // Formatted numbers
13810
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? "num-fmt": function ( d ) {
13811
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? return __numericReplace( d, decimalPlace, _re_formatted_numeric );
13812
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? },
13813
 
13814
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? // HTML numeric
13815
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? "html-num": function ( d ) {
13816
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? return __numericReplace( d, decimalPlace, _re_html );
13817
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? },
13818
 
13819
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? // HTML numeric, formatted
13820
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? "html-num-fmt": function ( d ) {
13821
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? return __numericReplace( d, decimalPlace, _re_html, _re_formatted_numeric );
13822
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? }
13823
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? },
13824
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? function ( key, fn ) {
13825
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? _ext.type.order[ key+decimalPlace+'-pre' ] = fn;
13826
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? }
13827
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? );
13828
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? }
13829
 
13830
 
13831
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? // Default sort methods
13832
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? $.extend( _ext.type.order, {
13833
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? // Dates
13834
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? "date-pre": function ( d ) {
13835
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? return Date.parse( d ) || 0;
13836
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? },
13837
 
13838
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? // html
13839
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? "html-pre": function ( a ) {
13840
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? return ! a ?
13841
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? '' :
13842
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? a.replace ?
13843
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? a.replace( /<.*?>/g, "" ).toLowerCase() :
13844
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? a+'';
13845
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? },
13846
 
13847
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? // string
13848
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? "string-pre": function ( a ) {
13849
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? return typeof a === 'string' ?
13850
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? a.toLowerCase() :
13851
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? ! a || ! a.toString ?
13852
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? '' :
13853
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? a.toString();
13854
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? },
13855
 
13856
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? // string-asc and -desc are retained only for compatibility with the old
13857
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? // sort methods
13858
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? "string-asc": function ( x, y ) {
13859
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ? return ((x < y) ? -1 : ((x > y) ? 1 : 0));
13860
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x > },
13861
 
13862
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x > "string-desc": function ( x, y ) {
13863
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x > return ((x < y) ? 1 : ((x > y) ? -1 : 0));
13864
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > }
13865
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > } );
13866
 
13867
 
13868
<.*?>
< table.height() ) {
13869
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > _addNumericSort( '' );
13870
 
13871
 
13872
<.*?>
< table.height() ) {
13873
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > // what is required from this methods.
13874
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > $.extend( DataTable.ext.type.detect, [
13875
<.*?>
< table.height() ) {
13876
<.*?>
< table.height() ) {
13877
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > function ( d, settings )
13878
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > {
13879
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > var decimal = settings.oLanguage.sDecimal;
13880
<.*?>
< table.height() ) {
13881
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > },
13882
 
13883
<.*?>
< table.height() ) {
13884
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > function ( d, settings )
13885
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > {
13886
<.*?>
< table.height() ) {
13887
<.*?>
< table.height() ) {
13888
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > // forum thread 18941 for detail.
13889
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > if ( d && ! _re_date_start.test(d) ) {
13890
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > return null;
13891
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > }
13892
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > var parsed = Date.parse(d);
13893
<.*?>
< table.height() ) {
13894
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > },
13895
 
13896
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > // Formatted numbers
13897
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > function ( d, settings )
13898
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > {
13899
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > var decimal = settings.oLanguage.sDecimal;
13900
<.*?>
< table.height() ) {
13901
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > },
13902
 
13903
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > // HTML numeric
13904
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > function ( d, settings )
13905
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > {
13906
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > var decimal = settings.oLanguage.sDecimal;
13907
<.*?>
< table.height() ) {
13908
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > },
13909
 
13910
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > // HTML numeric, formatted
13911
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > function ( d, settings )
13912
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > {
13913
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > var decimal = settings.oLanguage.sDecimal;
13914
<.*?>
< table.height() ) {
13915
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > },
13916
 
13917
<.*?>
< table.height() ) {
13918
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > function ( d, settings )
13919
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x > {
13920
<.*?>
< table.height() ) {
13921
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? 'html' : null;
13922
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? }
13923
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? ] );
13924
 
13925
 
13926
 
13927
<.*?>
13928
<.*?>
< table.height() ) {
13929
 
13930
 
13931
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? $.extend( DataTable.ext.type.search, {
13932
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? html: function ( data ) {
13933
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? return _empty(data) ?
13934
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? '' :
13935
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? typeof data === 'string' ?
13936
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? data
13937
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? .replace( _re_new_lines, " " )
13938
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? .replace( _re_html, "" ) :
13939
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? '';
13940
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? },
13941
 
13942
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? string: function ( data ) {
13943
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? return _empty(data) ?
13944
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? '' :
13945
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? typeof data === 'string' ?
13946
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? data.replace( _re_new_lines, " " ) :
13947
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? data;
13948
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? }
13949
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? } );
13950
 
13951
 
13952
 
13953
<.*?>
< table.height() ) {
13954
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? header: {
13955
<.*?>
< table.height() ) {
13956
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? // No additional mark-up required
13957
<.*?>
< table.height() ) {
13958
<.*?>
< table.height() ) {
13959
<.*?>
< table.height() ) {
13960
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? // listening for
13961
<.*?>
13962
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? var colIdx = column.idx;
13963
 
13964
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? cell
13965
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? .removeClass(
13966
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? column.sSortingClass +' '+
13967
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? classes.sSortAsc +' '+
13968
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? classes.sSortDesc
13969
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? )
13970
<.*?>
< table.height() ) {
13971
<.*?>
< table.height() ) {
13972
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? classes.sSortDesc :
13973
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? column.sSortingClass
13974
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? );
13975
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? } );
13976
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? },
13977
 
13978
<.*?>
< table.height() ) {
13979
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? var colIdx = column.idx;
13980
 
13981
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ? $('
>')
13982
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
.addClass( classes.sSortJUIWrapper )
13983
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
.append( cell.contents() )
13984
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
.append( $('<span/>')
13985
<.*?>
< table.height() ) {
13986
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
)
13987
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
.appendTo( cell );
13988
 
13989
<.*?>
< table.height() ) {
13990
<.*?>
13991
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
cell
13992
<.*?>
< table.height() ) {
13993
<.*?>
< table.height() ) {
13994
<.*?>
< table.height() ) {
13995
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
classes.sSortDesc :
13996
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
column.sSortingClass
13997
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
);
13998
 
13999
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
cell
14000
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
.find( 'span.'+classes.sSortIcon )
14001
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
.removeClass(
14002
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
classes.sSortJUIAsc +" "+
14003
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
classes.sSortJUIDesc +" "+
14004
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
classes.sSortJUI +" "+
14005
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
classes.sSortJUIAscAllowed +" "+
14006
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
classes.sSortJUIDescAllowed
14007
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
)
14008
<.*?>
< table.height() ) {
14009
<.*?>
< table.height() ) {
14010
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
classes.sSortJUIDesc :
14011
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
column.sSortingClassJUI
14012
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
);
14013
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
} );
14014
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
}
14015
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
}
14016
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
} );
14017
 
14018
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
/*
14019
<.*?>
14020
<.*?>
14021
<.*?>
14022
<.*?>
< table.height() ) {
14023
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*/
14024
 
14025
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
/**
14026
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* Helpers for `columns.render`.
14027
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*
14028
<.*?>
14029
<.*?>
14030
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*
14031
<.*?>
14032
<.*?>
14033
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* It takes 4 parameters:
14034
<.*?>
< table.height() ) {
14035
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* * `string` - Decimal point indicator
14036
<.*?>
< table.height() ) {
14037
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* * `string` (optional) - Prefix.
14038
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*
14039
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @example
14040
<.*?>
< table.height() ) {
14041
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* {
14042
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* data: "salary",
14043
<.*?>
< table.height() ) {
14044
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* }
14045
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*
14046
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @namespace
14047
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*/
14048
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
DataTable.render = {
14049
<.*?>
< table.height() ) {
14050
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
return {
14051
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
display: function ( d ) {
14052
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
d = parseFloat( d );
14053
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
var intPart = parseInt( d, 10 );
14054
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
var floatPart = precision ?
14055
<.*?>
< table.height() ) {
14056
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
'';
14057
 
14058
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
return (prefix||'') +
14059
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
intPart.toString().replace(
14060
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
/\B(?=(\d{3})+(?!\d))/g, thousands
14061
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
) +
14062
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
floatPart;
14063
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
}
14064
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
};
14065
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
}
14066
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
};
14067
 
14068
 
14069
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
/*
14070
<.*?>
14071
<.*?>
< table.height() ) {
14072
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*/
14073
 
14074
 
14075
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
/**
14076
<.*?>
14077
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @param {string} fn API function name
14078
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @returns {function} wrapped function
14079
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @memberof DataTable#internal
14080
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*/
14081
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
function _fnExternApiFunc (fn)
14082
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
{
14083
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
return function() {
14084
<.*?>
14085
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
Array.prototype.slice.call(arguments)
14086
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
);
14087
<.*?>
< table.height() ) {
14088
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
};
14089
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
}
14090
 
14091
 
14092
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
/**
14093
<.*?>
14094
<.*?>
14095
<.*?>
14096
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* between versions.
14097
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @namespace
14098
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*/
14099
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
$.extend( DataTable.ext.internal, {
14100
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnExternApiFunc: _fnExternApiFunc,
14101
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnBuildAjax: _fnBuildAjax,
14102
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnAjaxUpdate: _fnAjaxUpdate,
14103
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnAjaxParameters: _fnAjaxParameters,
14104
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnAjaxUpdateDraw: _fnAjaxUpdateDraw,
14105
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnAjaxDataSrc: _fnAjaxDataSrc,
14106
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnAddColumn: _fnAddColumn,
14107
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnColumnOptions: _fnColumnOptions,
14108
<.*?>
< table.height() ) {
14109
<.*?>
< table.height() ) {
14110
<.*?>
< table.height() ) {
14111
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnVisbleColumns: _fnVisbleColumns,
14112
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnGetColumns: _fnGetColumns,
14113
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnColumnTypes: _fnColumnTypes,
14114
<.*?>
< table.height() ) {
14115
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnHungarianMap: _fnHungarianMap,
14116
<.*?>
< table.height() ) {
14117
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnLanguageCompat: _fnLanguageCompat,
14118
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnBrowserDetect: _fnBrowserDetect,
14119
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnAddData: _fnAddData,
14120
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnAddTr: _fnAddTr,
14121
<.*?>
< table.height() ) {
14122
<.*?>
< table.height() ) {
14123
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnGetCellData: _fnGetCellData,
14124
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnSetCellData: _fnSetCellData,
14125
<.*?>
< table.height() ) {
14126
<.*?>
< table.height() ) {
14127
<.*?>
< table.height() ) {
14128
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnGetDataMaster: _fnGetDataMaster,
14129
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnClearTable: _fnClearTable,
14130
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnDeleteIndex: _fnDeleteIndex,
14131
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnInvalidateRow: _fnInvalidateRow,
14132
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnGetRowElements: _fnGetRowElements,
14133
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnCreateTr: _fnCreateTr,
14134
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnBuildHead: _fnBuildHead,
14135
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnDrawHead: _fnDrawHead,
14136
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnDraw: _fnDraw,
14137
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnReDraw: _fnReDraw,
14138
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnAddOptionsHtml: _fnAddOptionsHtml,
14139
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnDetectHeader: _fnDetectHeader,
14140
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnGetUniqueThs: _fnGetUniqueThs,
14141
<.*?>
< table.height() ) {
14142
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnFilterComplete: _fnFilterComplete,
14143
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnFilterCustom: _fnFilterCustom,
14144
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnFilterColumn: _fnFilterColumn,
14145
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnFilter: _fnFilter,
14146
<.*?>
< table.height() ) {
14147
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnEscapeRegex: _fnEscapeRegex,
14148
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnFilterData: _fnFilterData,
14149
<.*?>
< table.height() ) {
14150
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnUpdateInfo: _fnUpdateInfo,
14151
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnInfoMacros: _fnInfoMacros,
14152
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnInitialise: _fnInitialise,
14153
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnInitComplete: _fnInitComplete,
14154
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnLengthChange: _fnLengthChange,
14155
<.*?>
< table.height() ) {
14156
<.*?>
< table.height() ) {
14157
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnPageChange: _fnPageChange,
14158
<.*?>
< table.height() ) {
14159
<.*?>
< table.height() ) {
14160
<.*?>
< table.height() ) {
14161
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnScrollDraw: _fnScrollDraw,
14162
<.*?>
< table.height() ) {
14163
<.*?>
< table.height() ) {
14164
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnThrottle: _fnThrottle,
14165
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnConvertToWidth: _fnConvertToWidth,
14166
<.*?>
< table.height() ) {
14167
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnGetWidestNode: _fnGetWidestNode,
14168
<.*?>
< table.height() ) {
14169
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnStringToCss: _fnStringToCss,
14170
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnScrollBarWidth: _fnScrollBarWidth,
14171
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnSortFlatten: _fnSortFlatten,
14172
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnSort: _fnSort,
14173
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnSortAria: _fnSortAria,
14174
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnSortListener: _fnSortListener,
14175
<.*?>
< table.height() ) {
14176
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnSortingClasses: _fnSortingClasses,
14177
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnSortData: _fnSortData,
14178
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnSaveState: _fnSaveState,
14179
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnLoadState: _fnLoadState,
14180
<.*?>
< table.height() ) {
14181
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnLog: _fnLog,
14182
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnMap: _fnMap,
14183
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnBindAction: _fnBindAction,
14184
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnCallbackReg: _fnCallbackReg,
14185
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnCallbackFire: _fnCallbackFire,
14186
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnLengthOverflow: _fnLengthOverflow,
14187
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnRenderer: _fnRenderer,
14188
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnDataSource: _fnDataSource,
14189
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
_fnRowAttributes: _fnRowAttributes,
14190
<.*?>
14191
<.*?>
< table.height() ) {
14192
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
// added to prevent errors
14193
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
} );
14194
 
14195
 
14196
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
// jQuery access
14197
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
$.fn.dataTable = DataTable;
14198
 
14199
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
// Legacy aliases
14200
<.*?>
< table.height() ) {
14201
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
$.fn.dataTableExt = DataTable.ext;
14202
 
14203
<.*?>
14204
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
// jQuery object
14205
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
$.fn.DataTable = function ( opts ) {
14206
<.*?>
< table.height() ) {
14207
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
};
14208
 
14209
<.*?>
14210
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
// available on $.fn.DataTable
14211
<.*?>
< table.height() ) {
14212
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
$.fn.DataTable[ prop ] = val;
14213
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
} );
14214
 
14215
 
14216
<.*?>
< table.height() ) {
14217
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
/**
14218
<.*?>
14219
<.*?>
< table.height() ) {
14220
<.*?>
< table.height() ) {
14221
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @name DataTable#draw.dt
14222
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @event
14223
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @param {event} e jQuery event object
14224
<.*?>
14225
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*/
14226
 
14227
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
/**
14228
<.*?>
14229
<.*?>
< table.height() ) {
14230
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @name DataTable#search.dt
14231
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @event
14232
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @param {event} e jQuery event object
14233
<.*?>
14234
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*/
14235
 
14236
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
/**
14237
<.*?>
< table.height() ) {
14238
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @name DataTable#page.dt
14239
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @event
14240
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @param {event} e jQuery event object
14241
<.*?>
14242
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*/
14243
 
14244
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
/**
14245
<.*?>
14246
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @name DataTable#order.dt
14247
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @event
14248
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @param {event} e jQuery event object
14249
<.*?>
14250
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*/
14251
 
14252
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
/**
14253
<.*?>
14254
<.*?>
< table.height() ) {
14255
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @name DataTable#init.dt
14256
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @event
14257
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @param {event} e jQuery event object
14258
<.*?>
< table.height() ) {
14259
<.*?>
14260
<.*?>
< table.height() ) {
14261
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*/
14262
 
14263
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
/**
14264
<.*?>
14265
<.*?>
14266
<.*?>
14267
<.*?>
14268
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @name DataTable#stateSaveParams.dt
14269
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @event
14270
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @param {event} e jQuery event object
14271
<.*?>
< table.height() ) {
14272
<.*?>
< table.height() ) {
14273
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*/
14274
 
14275
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
/**
14276
<.*?>
14277
<.*?>
14278
<.*?>
14279
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* state for a plug-in.
14280
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @name DataTable#stateLoadParams.dt
14281
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @event
14282
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @param {event} e jQuery event object
14283
<.*?>
< table.height() ) {
14284
<.*?>
< table.height() ) {
14285
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*/
14286
 
14287
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
/**
14288
<.*?>
14289
<.*?>
< table.height() ) {
14290
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @name DataTable#stateLoaded.dt
14291
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @event
14292
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @param {event} e jQuery event object
14293
<.*?>
< table.height() ) {
14294
<.*?>
< table.height() ) {
14295
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*/
14296
 
14297
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
/**
14298
<.*?>
14299
<.*?>
14300
<.*?>
14301
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* finished.
14302
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @name DataTable#processing.dt
14303
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @event
14304
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @param {event} e jQuery event object
14305
<.*?>
< table.height() ) {
14306
<.*?>
14307
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*/
14308
 
14309
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
/**
14310
<.*?>
14311
<.*?>
14312
<.*?>
14313
<.*?>
< table.height() ) {
14314
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*
14315
<.*?>
14316
<.*?>
14317
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* success function.
14318
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @name DataTable#xhr.dt
14319
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @event
14320
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @param {event} e jQuery event object
14321
<.*?>
14322
<.*?>
< table.height() ) {
14323
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*
14324
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @example
14325
<.*?>
14326
<.*?>
14327
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* $('#status').html( json.status );
14328
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* } );
14329
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*
14330
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @example
14331
<.*?>
< table.height() ) {
14332
<.*?>
14333
<.*?>
< table.height() ) {
14334
<.*?>
< table.height() ) {
14335
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* }
14336
<.*?>
14337
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* } );
14338
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*/
14339
 
14340
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
/**
14341
<.*?>
14342
<.*?>
14343
<.*?>
< table.height() ) {
14344
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @name DataTable#destroy.dt
14345
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @event
14346
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @param {event} e jQuery event object
14347
<.*?>
14348
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*/
14349
 
14350
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
/**
14351
<.*?>
14352
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* page (the length) is changed.
14353
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @name DataTable#length.dt
14354
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @event
14355
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @param {event} e jQuery event object
14356
<.*?>
14357
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @param {integer} len New length
14358
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*/
14359
 
14360
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
/**
14361
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* Column sizing has changed.
14362
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @name DataTable#column-sizing.dt
14363
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @event
14364
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @param {event} e jQuery event object
14365
<.*?>
14366
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*/
14367
 
14368
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
/**
14369
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* Column visibility has changed.
14370
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @name DataTable#column-visibility.dt
14371
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @event
14372
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @param {event} e jQuery event object
14373
<.*?>
14374
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
* @param {int} column Column index
14375
<.*?>
14376
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
*/
14377
 
14378
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
return $.fn.dataTable;
14379
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
}));
14380
 
14381
<.*?>
< table.height() ) {
<.*?><.*?><= buttons ) {<= half ) {< pages-1 ?< pages-1 ?< y) ? -1 : ((x >< y) ? 1 : ((x ><') !== -1) ?
}(window, document));
14382