Global property override

Global property override

jnelsonjnelson Posts: 3Questions: 0Answers: 0
edited December 2010 in General
Not sure what to call this for the topic, but here is what im trying to do and can't seem to figure this out from the docs.

I would like to override the default properties at a global level so that if I call .dataTables(); I get a different default behaviour without having to add a property object.

the reason for this is that I will be using dataTables throughout my application and I need all tables to have a default set of behaviour. I would like to do this without modifying the plugin itself if this is possible.

I also could just create an object with the properties I want and just call dataTables and pass that object, but was wondering if there was a different way to do this.

is this something that can be done?

Replies

  • allanallan Posts: 63,512Questions: 1Answers: 10,472 Site admin
    At this time, I'm afraid that it can't be done - sorry. This is a limitation with DataTables at the moment and one I certainly plan to address in future revisions. For the moment what you can do is define a common initialisation object and always pass that into the .dataTable() call.

    Allan
  • jnelsonjnelson Posts: 3Questions: 0Answers: 0
    Cool, thanks for the reply. Honestly, amazing product!
This discussion has been closed.