jQuery theming mix with "sDom": 'T<"clear">lfrtip' -AND- "sDom": 'C<"clear">lfrtip'

jQuery theming mix with "sDom": 'T<"clear">lfrtip' -AND- "sDom": 'C<"clear">lfrtip'

mr_phillipusmr_phillipus Posts: 5Questions: 0Answers: 0
edited March 2012 in General
Hi There,

Long story short, if I use 'theming' together with sDom, the layout of the table is not as pretty as without sDom
A slap on my face is might what I need?

Thanks in advance,


Here is my coding, re-locate all css, js, images, all confirmed working fine (link path, etc)


@import "css_js/demo_page.css";
@import "css_js/demo_table_jui.css";
@import "css_js/jquery-ui-1.8.4.custom.css";
@import "css_js/TableTools.css";






$(document).ready(function() {
TableTools.DEFAULTS.aButtons = [ "copy", "csv", "xls" ];
$('#example').dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "server_processing.php",
"sDom": 'T<"clear">lfrtip'
} );
} );

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    The default sDom when bJQueryUI is true is: '<"H"lfr>t<"F"ip>', so you will want to stick the T option for TableTools into that. See this example: http://datatables.net/release-datatables/extras/TableTools/theme.html

    Allan
This discussion has been closed.