mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-19 12:52:11 +01:00
a9035942d0
- When working with plug-ins such as TableTools, there is no clearly defined way at the moment to get at the plug-in instance, with each doing it its own way (TableTools as a static function, while Scroller attaches itself to the settings object and KeyTable is its own intialiser, amoung others...) so I'm introducing these methods to unify this. - plugin() is used by DataTables users to get their plugin instance, for example `table.plugin('tabletools')` would get the TableTools instance allowing full access to its API. - plugin.register() and plugin.deregister() are called by the plug-ins when they attach themselves to a DataTable. The 'extras' will all need to be updated to use this new method.
2 lines
41 B
Plaintext
2 lines
41 B
Plaintext
730e2b88377acb44e9db177e107b9d42ac8bf63f
|