Getting settings

Getting settings

greenflashgreenflash Posts: 58Questions: 5Answers: 0

I'm struggling to work out how I get the settings in 1.10. Previously I used to use fnSettings(). However the new equivalent is settings(), but the documentation says that the information in the object is considered to be private. But I can't work out what the approved way of doing it is. For example what are the equivalents of oSettings.ajax and oSettings.bServerSide, where oSettings = table.fnSettings()?

Answers

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

    settings() returns an API instance of settings objects - so you would need to do settings()[0]. ....

    However, as the documentation says - please don't use the settings object! If you can get the information from the public API you should. For example to find if server-side processing is enabled use page.info().

    Allan

  • greenflashgreenflash Posts: 58Questions: 5Answers: 0

    Many thanks for a quick response!

This discussion has been closed.