How can I add text to my Bootstrap panel header. Datatables DOM.
How can I add text to my Bootstrap panel header. Datatables DOM.
phpMick
Posts: 17Questions: 5Answers: 1
H,
I am using the Datatables dom options to place the table in a Bootstrap panel.
"dom": '<"panel panel-default"<"panel-heading"l>t <"panel-footer"p>>'
How can I get some text in the panel-header?
I'd also like to move the length changing input control to the right.
Thanks,
Mick
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Move the length changing input with:
Put additional text in the DOM with the Toolbar:
https://datatables.net/examples/advanced_init/dom_toolbar
Great, got that working.
Now I need to horizontally align the title and the length changing input control.
I'm trying here:
https://jsfiddle.net/PHPMickB/rbnd1yvh/
Mick
I think this is just down to CSS, I'm nearly there with: