Reputation: 964
When we are using datatable.js then it will be displayed pagination at bottom. But we need pagination at top besides filters.
And also hide pagination when length is to short. I mean default pagination length is 10. If table have total records below 10, that time pagination will not be displayed. When table have more than 10 records that time pagination will be displayed.
Any one have any idea? Hows we can do this? Thanks in advance.
Upvotes: 1
Views: 1566
Reputation: 2800
add this property
"sDom": '<"top"pi>rt<"bottom"fl><"clear">'
Upvotes: 1