MCPcopy Create free account
hub / github.com/blockstrap/framework / _fnDataSource

Function _fnDataSource

blockstrap/js/dependencies/tables.js:5051–5060  ·  view source on GitHub ↗

* Detect the data source being used for the table. Used to simplify the code * a little (ajax) and to make it compress a little smaller. * * @param {object} settings dataTables settings object * @returns {string} Data source * @memberof DataTable#oApi

( settings )

Source from the content-addressed store, hash-verified

5049 * @memberof DataTable#oApi
5050 */
5051 function _fnDataSource ( settings )
5052 {
5053 if ( settings.oFeatures.bServerSide ) {
5054 return 'ssp';
5055 }
5056 else if ( settings.ajax || settings.sAjaxSource ) {
5057 return 'ajax';
5058 }
5059 return 'dom';
5060 }
5061
5062
5063 DataTable = function( options )

Callers 9

_fnDrawFunction · 0.85
_fnFeatureHtmlFilterFunction · 0.85
_fnFilterCompleteFunction · 0.85
_fnInitialiseFunction · 0.85
_fnSortFunction · 0.85
_fnSortAttachListenerFunction · 0.85
tables.jsFile · 0.85
__reloadFunction · 0.85
_selector_row_indexesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected