How to remove apparent newline after div in sDom
How to remove apparent newline after div in sDom
My sDom looks like this:
"sDom": 'l<"#tableHeader">Tftip',
I then have this:
$('#tableHeader').addClass('datatablesHeader');
$('#tableHeader').html("Some Text");
I have set the styles datatablesHeader and dataTables_filter to have display:inline
However there is an apparent newline between the text "Some Text", and the filter label "Search:".
Any suggestions on how to remove this?
Essentally I want all of the sDom items on one line.
"sDom": 'l<"#tableHeader">Tftip',
I then have this:
$('#tableHeader').addClass('datatablesHeader');
$('#tableHeader').html("Some Text");
I have set the styles datatablesHeader and dataTables_filter to have display:inline
However there is an apparent newline between the text "Some Text", and the filter label "Search:".
Any suggestions on how to remove this?
Essentally I want all of the sDom items on one line.
This discussion has been closed.
Replies
Allan
Allan
An example that illustrates my question. Like I stated, I simply want to get all of the items in sDom on one line.
http://gsilvey.com/datatablesexample.html
Thanks for your help...
Its just a case of altering the order of the DOM elements and making any CSS changes required. In the example you have, putting the filtering input before your extra header element will get it all on one line for example:
[code]
"sDom": 'lTf<"#tableHeader">tip',
[/code]
TableTools isn't loading due to a bunch of 404 errors, but that will at least get your example on one line.
Allan