Include parameter in every datatables instance by default
Include parameter in every datatables instance by default
I am using datatables across a large number of views, and in each of them I am using the fnServerData parameter. Is it possible to automatically include this parameter by default when new tables are initialized, rather than cutting and pasting the line:
fnServerData: myFunction,
into the list of initialization parameters in every view?
fnServerData: myFunction,
into the list of initialization parameters in every view?
This discussion has been closed.
Replies
However, I have a couple tables that don't use serverside data. Will these break in any way if I include an fnServerData parameter in my defaults, or will it just not get called and otherwise work fine?
Allan