We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi Can I get responsive instance from DataTables instance? Thanks
The text was updated successfully, but these errors were encountered:
You may save the instance when you first initialize in preDrawCallback:
preDrawCallback
'use strict'; $(document).ready(function () { var breakpointDefinition = { tablet: 1024, phone : 480 }; var tableElement = $('#example'); tableElement.dataTable({ autoWidth : false, ajax : './arrays.txt', preDrawCallback: function () { // Initialize the responsive datatables helper once. if (!this.responsiveHelper) { this.responsiveHelper = new ResponsiveDatatablesHelper(tableElement, breakpointDefinition); } }, rowCallback : function (nRow) { this.responsiveHelper.createExpandIcon(nRow); }, drawCallback : function (oSettings) { this.responsiveHelper.respond(); } }); });
Sorry, something went wrong.
Thanks. But I'm looking for retrieving instance from a function which contain just DataTable instance.
No branches or pull requests
Hi
Can I get responsive instance from DataTables instance?
Thanks
The text was updated successfully, but these errors were encountered: