Having multiple initialisations to a single table. Possible?
Having multiple initialisations to a single table. Possible?
I would like to setup a default initialisation for every table that has the class .dataTable. But I would also like to extend that initialisation if it has certain other classes added to it.
Example. I have a cars table with 2 classes: .dataTable and .carsDataTable. I want all tables with .dataTable to have 'full_numbers' for 'sPaginationType' and 'bJQueryUI' to be 'true'.
But for this .carsDataTable I also want to add 'bStateSave' to be 'true' and a custom function for allowing to click a row and select the checkbox in that specific row.
Is it possible to define multiple initialisations to a single table? I searched for this, but I couldn't find it. I would appriciate an example if possible :)
Example. I have a cars table with 2 classes: .dataTable and .carsDataTable. I want all tables with .dataTable to have 'full_numbers' for 'sPaginationType' and 'bJQueryUI' to be 'true'.
But for this .carsDataTable I also want to add 'bStateSave' to be 'true' and a custom function for allowing to click a row and select the checkbox in that specific row.
Is it possible to define multiple initialisations to a single table? I searched for this, but I couldn't find it. I would appriciate an example if possible :)
This discussion has been closed.
Replies
Allan