Migrating Print button from SWF Version
Migrating Print button from SWF Version
Hi, Previously on old swf export options version when I clicked on "Print" a div was maximized and shows a message like: "Please use your browser's print function to print this table. Press escape when finished."
Print preview also shows a expanded div on datatables.
Recently I migrated to HTML5 buttons and I am seeing that print option opens on new tab and some divs are hidden. I think that does not use Browser view .. How can I keep old option of that famous PRINT BUTTON keeping chrome view and a div on same page (tab). Thank you !
Answers
Hi @nexoconsulting ,
I'm not familiar with the old swf version, but yep, that's the way it behaves now I'm afraid. The options for the
print
button now are here.Cheers,
Colin
Just to add to that, we were finding compatibilty issues with the old style both in the output (i.e. customising it specifically for print) and interaction with the rest of the page. So now a new table is generated from the table's data and showing it in a new tab/window.
Buttons doesn't have an option to act the same way as the old TableTools print button. You could probably port the code over if you wanted it like that, but it isn't something that is on our roadmap I'm afraid.
Allan