Rearranging the Pagesize selector between the Pagination Elements
Rearranging the Pagesize selector between the Pagination Elements
Hello,
as stated in the Topic, this is what i am trying to accomplish. I think i need
$.fn.dataTableExt.oPagination.myOwnPaginationStyle and create it there. What's the best practice to use the sLengthMenu provided in
the declaration of the Table?
regards
as stated in the Topic, this is what i am trying to accomplish. I think i need
$.fn.dataTableExt.oPagination.myOwnPaginationStyle and create it there. What's the best practice to use the sLengthMenu provided in
the declaration of the Table?
regards
This discussion has been closed.
Replies
It didnt work at first, because i was hiding the length-setter via sDom, which disables its features as well.
i put the "l" in sDom again, now i had two length setters, that both worked.
I then used a dirty hack, i assigned display:hidden to the class dataTables_length, and manually set display: inline on the element returned from oApi._fnFeatureHtmlLength. This somehow doesnt feel right ;), is there a better way?
You can access sLengthMenu using `settings.oLanguage.sLengthMenu` (where `settings` is the settings object). You could use the private function `_fnFeatureHtmlLength` , but just be aware that it might well change between versions (since it is a private function).
In short, there isn't currently a public API to get sLengthMenu directly.
Allan