kyoty commented on pull request #32223:
URL: https://github.com/apache/spark/pull/32223#issuecomment-823004730


   @sarutak , thanks for your suggestion. How about custom the stateSave load 
function? like below:
   ```javascript
   "stateLoadCallback": function(settings) {
     var storageData = JSON.parse( localStorage.getItem(settings.sInstance) )};
     if(storageData.length) {
         var savedPageSize = storageData['length'];
         // if savedPageSize doesn't in lengthMenu, we just simply set current 
pageSize = totalTasksToShow
         if( !settings.lengthMenu.contains(savedPageSize )) {
              savedPageSize  = totalTasksToShow;
         }
      }
   ...............
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to