MCPcopy Create free account
hub / github.com/breck7/scroll / _fnDataSource

Function _fnDataSource

external/.datatables.js:6041–6048  ·  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

6039 * @memberof DataTable#oApi
6040 */
6041 function _fnDataSource(settings) {
6042 if (settings.oFeatures.bServerSide) {
6043 return "ssp"
6044 } else if (settings.ajax) {
6045 return "ajax"
6046 }
6047 return "dom"
6048 }
6049
6050 /**
6051 * Common replacement for language strings

Callers 10

DataTableFunction · 0.85
_fnDrawFunction · 0.85
_emptyRowFunction · 0.85
_fnStartFunction · 0.85
_fnFilterCompleteFunction · 0.85
_fnInitialiseFunction · 0.85
_fnSortFunction · 0.85
.datatables.jsFile · 0.85
__reloadFunction · 0.85
_selector_row_indexesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected