Extending DataTables Settings?

Extending DataTables Settings?

gregigregi Posts: 7Questions: 0Answers: 0
edited October 2012 in DataTables 1.9
Hi there,

I just thougt, it should be possible to add some custom configurations to my DataTables settings.
Like this:
[code]
$('#table').dataTable({
"aoColumns" : [ ... ],
"oDialogSettings":
{
"iDialogWidth": 800
}
});
[/code]

After trying out and searching at the forum I found a comment in 2010 by allan:

[quote]You are quite correct - that this is something that DataTables is lacking in at the moment.[...]
A future modification will make this much smoother...[/quote]
in
http://datatables.net/forums/discussion/1511/custom-instance-settings

Is there any way in the version 1.9 to attach custom settings?

Replies

  • allanallan Posts: 63,213Questions: 1Answers: 10,415 Site admin
    Not really. You can access the original initialisation object through `fnSettings().oInit` (which is a reference to the object you pass in), so technically yes it can be accessed, but not they aren't directly mapped onto the settings object.

    Allan
  • gregigregi Posts: 7Questions: 0Answers: 0
    Hi allan,

    that's it.
    Exactly what I need.

    Thanks a lot.
This discussion has been closed.