Is it possible to set the default print orientation to landscape?
Currently I have my print button set up like so:
I've tried adding an orientation attribute but that doesn't seem to work.
`
"buttons" => [
array(
"extend" => "print",
"orientation" => "landscape",
'footer' => TRUE,
'exportOptions' => [
"format" => [
"body" => "function ( data, row, column, node ) {
if (!window.columnIndex) window.columnIndex = 0;
if (column != 0) return data;
else {
if(columnIndex > row){
columnIndex = 0
}
window.columnIndex += 1;
return window.columnIndex;
}
}"
]
]
),