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

Function _fnRenderer

external/.datatables.js:6015–6031  ·  view source on GitHub ↗
(settings, type)

Source from the content-addressed store, hash-verified

6013 }
6014
6015 function _fnRenderer(settings, type) {
6016 var renderer = settings.renderer
6017 var host = DataTable.ext.renderer[type]
6018
6019 if ($.isPlainObject(renderer) && renderer[type]) {
6020 // Specific renderer for this type. If available use it, otherwise use
6021 // the default.
6022 return host[renderer[type]] || host._
6023 } else if (typeof renderer === "string") {
6024 // Common renderer - if there is one available for this type use it,
6025 // otherwise use the default
6026 return host[renderer] || host._
6027 }
6028
6029 // Use the default
6030 return host._
6031 }
6032
6033 /**
6034 * Detect the data source being used for the table. Used to simplify the code

Callers 3

_fnBuildHeadFunction · 0.85
_fnAddOptionsHtmlFunction · 0.85
_pagingDrawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected