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

Function _fnReDraw

blockstrap/js/dependencies/tables.js:1982–2006  ·  view source on GitHub ↗

* Redraw the table - taking account of the various features which are enabled * @param {object} oSettings dataTables settings object * @param {boolean} [holdPosition] Keep the current paging position. By default * the paging is reset to the first page * @memberof DataTable#oApi

( settings, holdPosition )

Source from the content-addressed store, hash-verified

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 /**

Callers 4

_fnInitialiseFunction · 0.85
_fnSortListenerFunction · 0.85
tables.jsFile · 0.85
__reloadFunction · 0.85

Calls 3

_fnSortFunction · 0.85
_fnFilterCompleteFunction · 0.85
_fnDrawFunction · 0.85

Tested by

no test coverage detected