Advertisement
Guest User

Untitled

a guest
Jan 18th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.56 KB | None | 0 0
  1. $dt_config=array(
  2.                 "initComplete" => 'function(settings, json) {
  3.                     pageLoaded = true;
  4.                 }',
  5.                 "deferRender" => "true",
  6.                 "processing" => "true",
  7.                 "serverSide" => "true",
  8.                 "ajax" => "{ url: '/movimenti/query_json', type: 'POST' }",                
  9.                 "iDisplayLength" => 25,
  10.                 "pagingType" => "'full_numbers'",
  11.                 "autoWidth" => "false",
  12.                 "css_class" => "table table-hover table-bordered datagrid",
  13.                 "firstDay" => 1,
  14.                 "fnInitComplete" => 'loadColumnsLayout()',
  15.                 "scrollX" => "true",
  16.                 "stateSave" => "true",
  17.                 "stateSaveCallback" => 'function (settings, data) {
  18.                     // Send an Ajax request to the server with the state object                    
  19.                     if (pageLoaded) {
  20.                     $.ajax( {
  21.                         "url": "/json/table_state_save/movimenti",
  22.                         "data": { state : data },
  23.                         "dataType": "json",
  24.                         "type": "POST",
  25.                         "success": function () {}
  26.                     } );
  27.                     }}',
  28.                 "stateLoadCallback" => 'function (settings) {
  29.                 var o;        
  30.                 $.ajax( {
  31.                     url: "/json/table_state_load/movimenti",
  32.                     async: false,
  33.                     dataType: "json",
  34.                         success: function (json) {
  35.                             o = json;
  36.                         }
  37.                     } );
  38.                 return o;
  39.                 }',
  40.                 "stateLoadParams" => 'function (settings, data) {
  41.                 data.search.search = "";           
  42.                 data.start=0;                          
  43.                 }'                     
  44.             );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement