hei , change the buttons position
hei , change the buttons position
icehota
Posts: 3Questions: 3Answers: 0
I change the DataTable -1.10.7 to 1.10.10 to use rowReorder
got one problem
I used set like this to make the button show on the right top
dom: 'T<"clear">lfrtip',
tableTools: {
"aButtons": [{
"sExtends": "copy",
"sButtonText": "复制"
}, {
"sExtends": "xls",
"sButtonText": "导出"
}],
"sSwfPath": "../DataTables-1.10.7/extensions/TableTools/swf/copy_csv_xls.swf"
}
and now I change to Buttons
dom: 'Bfrtip',
buttons: ['excel', 'pdf'],
but I don't know how to set the dom to make the buttons float right
I want them to show on the right top
This discussion has been closed.
Answers
You can use the
buttons.buttons.className
to specify a class, then just use CSS to style the class.Or what I did, was use the
buttons().container()
to put the buttons in their own container, as opposed to storing them on top of DataTables