Custom Init Variables

Custom Init Variables

miljanmiljan Posts: 2Questions: 0Answers: 0
edited March 2013 in Feature requests
Hi,

this is my first post and would like to express my biggest gratitute to the developers for this AMAZING peace of ART!


About the post, I found my self doing advanced customizations and API integrations but I miss or don't know how to pass custom init variables the oSettings object. My intention is to change the behaviour of my extensions passing them variables during the table initiliazation.

That's not possible as any custom var is stripped out by the main script and, yes, I could modifiy the oSettings using the Callbacks but it's definetly not the best way.


Thanks :)

Miljan

Replies

  • allanallan Posts: 55,108Questions: 1Answers: 8,653 Site admin
    In your plug-in you can check `oSettings.oInit` . `oInit` is the object that is passed into DataTables as the constructor.

    Allan
  • miljanmiljan Posts: 2Questions: 0Answers: 0
    Checked, that will do the trick, thanks!
This discussion has been closed.