1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-02-17 15:54:14 +01:00

Dev fix: Add renderer as an initialisation parameter

- The core logic was already present, it just wasn't in the defaults or
  available to be set in the init object
This commit is contained in:
Allan Jardine 2013-12-27 22:43:44 +00:00
parent f3a7f909bb
commit ab13fcfcfd
2 changed files with 21 additions and 2 deletions

View File

@ -1 +1 @@
edb86ae044f713f531cfd4ff945034901f50f82a
36c1b4956c69e3f29913f7a64db290f276f0d7d8

View File

@ -5915,6 +5915,7 @@
"iTabIndex",
"fnStateLoadCallback",
"fnStateSaveCallback",
"renderer",
[ "iCookieDuration", "iStateDuration" ], // backwards compat
[ "oSearch", "oPreviousSearch" ],
[ "aoSearchCols", "aoPreSearchCols" ],
@ -11070,7 +11071,25 @@
*
* @deprecated 1.10. Please use `ajax` for this functionality now.
*/
"sServerMethod": "GET"
"sServerMethod": "GET",
/**
* DataTables makes use of renderers when displaying HTML elements for
* a table. These renderers can be added or modified by plug-ins to
* generate suitable mark-up for a site. For example the Bootstrap
* integration plug-in for DataTables uses a paging button renderer to
* display pagination buttons in the mark-up required by Bootstrap.
*
* For further information about the renderers available see
* DataTable.ext.renderer
* @type string|object
* @default null
*
* @name DataTable.defaults.renderer
*
*/
"renderer": null
};
_fnHungarianMap( DataTable.defaults );