Skip to content

Instantly share code, notes, and snippets.

@Made-of-Clay
Last active October 18, 2016 14:39
Show Gist options
  • Save Made-of-Clay/76bd057c7c24467c3781d282d720eef0 to your computer and use it in GitHub Desktop.
Save Made-of-Clay/76bd057c7c24467c3781d282d720eef0 to your computer and use it in GitHub Desktop.
Datatables parameter conversion map for converting Hungarian (1.9-) to camelCase (1.10+)
{
"__note": "keys with value of 'null' have been removed",
"aaData" : "data",
"aaSorting" : "order",
"aaSortingFixed" : "orderFixed",
"aDataSort" : "columns.orderData",
"aLengthMenu" : "lengthMenu",
"aTargets" : "columnDefs.targets",
"aoColumns" : "columns",
"aoColumnDefs" : "columnDefs",
"aoSearchCols" : "searchCols",
"asSorting" : "columns.orderSequence",
"asStripeClasses" : "stripeClasses",
"bAutoWidth" : "autoWidth",
"bDeferRender" : "deferRender",
"bDestroy" : "destroy",
"bFilter" : "searching",
"bInfo" : "info",
"bJQueryUI" : "jQueryUI",
"bLengthChange" : "lengthChange",
"bPaginate" : "paging",
"bProcessin" : "rocessing",
"bRetrieve" : "retrieve",
"bScrollAutoCss" : null,
"bScrollCollapse" : "scrollCollapse",
"bScrollInfinite" : null,
"bSearchable" : "columns.searchable",
"bServerSide" : "serverSide",
"bSort" : "ordering",
"bSortable" : "columns.orderable",
"bSortCellsTop" : "orderCellsTop",
"bSortClasses" : "orderClasses",
"bStateSave" : "stateSave",
"bUseRendered" : null,
"bVisible" : "columns.visible",
"fnCookieCallback" : null,
"fnCreatedCell" : "columns.createdCell",
"fnCreatedRow" : "createdRow",
"fnDrawCallback" : "drawCallback",
"fnFooterCallback" : "footerCallback",
"fnFormatNumber" : "formatNumber",
"fnHeaderCallback" : "headerCallback",
"fnInfoCallback" : "infoCallback",
"fnInitComplete" : "initComplete",
"fnPreDrawCallback" : "preDrawCallback",
"fnRender" : null,
"fnRowCallback" : "rowCallback",
"fnServerData" : "ajax",
"fnServerParams" : "ajax",
"fnStateLoad" : "stateLoadCallback",
"fnStateLoaded" : "stateLoaded",
"fnStateLoadParams" : "stateLoadParams",
"fnStateSave" : "stateSaveCallback",
"fnStateSaveParams" : "stateSaveParams",
"iCookieDuration" : "stateDuration",
"iDataSort" : "columns.orderData",
"iDeferLoading" : "deferLoading",
"iDisplayLength" : "pageLength",
"iDisplayStart" : "displayStart",
"iScrollLoadGap" : null,
"iTabIndex" : "tabIndex",
"mData" : "columns.data",
"mRender" : "columns.render",
"oLanguage.oAria.sSortAscending" : "language.aria.sortAscending",
"oLanguage.oAria.sSortDescending" : "language.aria.sortDescending",
"oLanguage.oPaginate.sFirst" : "language.paginate.first",
"oLanguage.oPaginate.sLast" : "language.paginate.last",
"oLanguage.oPaginate.sNext" : "language.paginate.next",
"oLanguage.oPaginate.sPrevious" : "language.paginate.previous",
"oLanguage.sEmptyTable" : "language.emptyTable",
"oLanguage.sInfo" : "language.info",
"oLanguage.sInfoEmpty" : "language.infoEmpty",
"oLanguage.sInfoFiltered" : "language.infoFiltered",
"oLanguage.sInfoPostFix" : "language.infoPostFix",
"oLanguage.sInfoThousands" : "language.thousands",
"oLanguage.sLengthMenu" : "language.lengthMenu",
"oLanguage.sLoadingRecords" : "language.loadingRecords",
"oLanguage.sProcessing" : "language.processing",
"oLanguage.sSearch" : "language.search",
"oLanguage.sUrl" : "language.url",
"oLanguage.sZeroRecords" : "language.zeroRecords",
"oSearch" : "search",
"sAjaxDataProp" : "ajax.dataSrc",
"sAjaxSource" : "ajax",
"sCellType" : "columns.cellType",
"sClass" : "columns.className",
"sContentPadding" : "contentPadding",
"sCookiePrefix" : null,
"sDefaultContent" : "columns.defaultContent",
"sDom" : "dom",
"sName" : "columns.name",
"sPaginationType" : "pagingType",
"sScrollX" : "scrollX",
"sScrollXInner" : "scrollXInner",
"sScrollY" : "scrollY",
"sServerMethod" : "ajax",
"sSortDataType" : "columns.orderDataType",
"sTitle" : "columns.title",
"sType" : "columns.type",
"sWidth" : "columns.width"
}
@Made-of-Clay
Copy link
Author

This map was created based on the options table on DataTables' website covering the same topic.
https://datatables.net/upgrade/1.10-convert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment