Option which params are saved with stateSave

Option which params are saved with stateSave

s1738bergers1738berger Posts: 2Questions: 2Answers: 0

Hi,
which params are stored when stateSave is set to true?
Is there a way to define which params are being saved when stateSave is used?
For example to exclude pageLength because this changes with every call of datatables.
Thanks for your help.
Stefan

Answers

  • allanallan Posts: 62,312Questions: 1Answers: 10,225 Site admin

    Hi Stefan,

    The state save parameter object is documented in the stateSaveCallback reference.

    If you want to remove the page length you could do something like delete data.length; in stateSaveParams.

    Allan

This discussion has been closed.