Rearranging the Pagesize selector between the Pagination Elements

Rearranging the Pagesize selector between the Pagination Elements

morgiummorgium Posts: 3Questions: 0Answers: 0
edited November 2013 in General
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

Replies

  • morgiummorgium Posts: 3Questions: 0Answers: 0
    edited November 2013
    is this a stupid question? i solved it by calling oSettings.oApi._fnFeatureHtmlLength ( oSettings ) to get the DOM-Element.
    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?
  • morgiummorgium Posts: 3Questions: 0Answers: 0
    noone?
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Sorry for the delay in replying. Too many threads to keep up in the forum these days!

    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
This discussion has been closed.