I've created a plugin of DataTable, but I would just like it be loaded after the DataTable ('t' in sDom) is initialized. Is this supported or not? If so, what should I do? Thanks!
I integrated another jquery plugin (jquery treeTable - http://ludo.cubicphuse.nl/jquery-plugins/treeTable/doc/#usage) into DataTable which supports to display rows as a tree.
I've created a git repo(https://github.com/RoyLING/jquery.dataTables.TreeTable) for this plugin I worked out - integrate jquery.treeTable plugin into DataTables.
Appreciate if you can provide some suggestions :-)
See the live example - http://live.datatables.net/utayag/12/edit#javascript,html,live
- Seems there's some issue in 'Render' view, but ok in preview panel, so check out the result in preview panel
- The fnPreInit option in my plugin is not working as expected when the table data source is DOM (I will check why). Instead I did the preparation work in fnCreatedRow callback to get the same
Replies
[code]oTable.oApi._fnCallbackReg(oSettings, "aoInitComplete",
function() {
// initialise my plugin
}, "myPluginName");[/code]
Allan
Allan
Allan
I've created a git repo(https://github.com/RoyLING/jquery.dataTables.TreeTable) for this plugin I worked out - integrate jquery.treeTable plugin into DataTables.
Appreciate if you can provide some suggestions :-)
Regards,
Roy
Allan
- Seems there's some issue in 'Render' view, but ok in preview panel, so check out the result in preview panel
- The fnPreInit option in my plugin is not working as expected when the table data source is DOM (I will check why). Instead I did the preparation work in fnCreatedRow callback to get the same