What to put in sDom to display lengthmenu with bootstrap
What to put in sDom to display lengthmenu with bootstrap
madaweb
Posts: 17Questions: 0Answers: 0
Hi!
Before using Tabletools in my datatable, I have on top of my table: listbox of lines number
[code]"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]][/code]
but when I use tabletools like this: http://datatables.net/release-datatables/extras/TableTools/bootstrap.html
it disappears, it remains tabletools buttons and search box
I find that it is caused by the "sDom" value, I don't understand how to configure it!
I want to display the 3 elements: tabletools menu - number lines listbox - search box!
Before using Tabletools in my datatable, I have on top of my table: listbox of lines number
[code]"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]][/code]
but when I use tabletools like this: http://datatables.net/release-datatables/extras/TableTools/bootstrap.html
it disappears, it remains tabletools buttons and search box
I find that it is caused by the "sDom" value, I don't understand how to configure it!
I want to display the 3 elements: tabletools menu - number lines listbox - search box!
This discussion has been closed.
Replies
[code]"sDom": "<'row-fluid'<'span6'T><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>"[/code]
But how to display length menu too?
I tried:
[code]"sDom": "<'row-fluid'<'span6'T><'span6'f>r>t<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6 center'p>>",[/code]
The result is ridiculous!
Allan
TableTool toolbar - search box
Number listbox - search box
So, "search box" repeated and presentation is 2 lines instead of just one line.
[code]"sDom": "<'row-fluid'<'span4'T><'span4'l><'span4'f>r>t<'row-fluid'<'span6'i><'span6 center'p>>"[/code]