Search bar
Search bar
Hello!
I am just playing around with datatables and noticed there is a search bar and a "show x amount of rows" feature.
I am trying to move the search bar to a different place on the page that fit's in with the breadcrumb, is this possible? If so how?
I have not changed any default code so there is nothing to really paste, though I am using twitter bootstrap for the design, I am using the latest release.
Cheers in advance
I am just playing around with datatables and noticed there is a search bar and a "show x amount of rows" feature.
I am trying to move the search bar to a different place on the page that fit's in with the breadcrumb, is this possible? If so how?
I have not changed any default code so there is nothing to really paste, though I am using twitter bootstrap for the design, I am using the latest release.
Cheers in advance
This discussion has been closed.
Replies
Yes - with CSS and sDom to tell DataTables where in the DOM to put the element. See http://datatables.net/styling/
Allan
[code]
"sPaginationType": "bootstrap",
[/code]
Breaks it all and stops the table from showing for some weird reason, removing it from the document on load, so it now looks like
[code]
$(document).ready(function() {
$('#example').dataTable( {
"sDom": "<'row'<'span6'l><'span6'f>r>t<'row'<'span6'i><'span6'p>>",
"oLanguage":
{
"sLengthMenu": "_MENU_ records per page"
}
});
});
[/code]
Works fine, is there any fix or am I going about it the wrong way?
Cheers
Allan
Cheers