Table Length changing don`t work with button
Table Length changing don`t work with button
When i use DataTables without buttons option, Length changing is displayed.
But after adding Buttons:
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
]
this buttons are displayed instead of the Table Length changing.
This discussion has been closed.
Answers
You need to pass the , dom: parameter in your dataTables initialization.
, dom: "lBfrtip"
l = length
B = buttons
f = filter (search)
r = processing
t = the actual table
I= table info summary
p = page control
You can order the elements however you want.
I like this setup
, dom: 'lf<"floatright"B>rtip'in css also add
div.floatright {display:inline,float:right,padding-left:5px;}Very Thanks!