DataTable -positioning Custom button on the left and Filtering input + Length changing on the right.
DataTable -positioning Custom button on the left and Filtering input + Length changing on the right.
deepak_menon07
Posts: 1Questions: 0Answers: 0
I am looking for an SDom where in i can position a custom button on the left and Filtering input + Length changing on the right.
I am attaching the sDom i am working with ..Here Filter appears on the left ...Custom button and length changing appear on the right.
Can someone help me in creating the sDom as per my requirement.
$('#productTable').dataTable( {
"sDom" : "<'dt-top-row'Tlf>r<'dt-wrapper't><'dt-row dt-bottom-row'<'row'<'col-sm-6'i><'col-sm-6 text-right'p>>",
"oTableTools": {
"aButtons": [
{
"sExtends": "text",
"sButtonText": "New",
}
]
}
});
I am attaching the sDom i am working with ..Here Filter appears on the left ...Custom button and length changing appear on the right.
Can someone help me in creating the sDom as per my requirement.
$('#productTable').dataTable( {
"sDom" : "<'dt-top-row'Tlf>r<'dt-wrapper't><'dt-row dt-bottom-row'<'row'<'col-sm-6'i><'col-sm-6 text-right'p>>",
"oTableTools": {
"aButtons": [
{
"sExtends": "text",
"sButtonText": "New",
}
]
}
});
This discussion has been closed.