Paging disappears with buttons

Paging disappears with buttons

schongschong Posts: 3Questions: 1Answers: 0

Hi There

When I tried this example https://datatables.net/extensions/buttons/examples/styling/icons.html, the functionality to change page size disappears. I thought it was hidden behind the buttons initially. Please advise

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    Hi @schong ,

    We're happy to take a look, but it would help, as per the forum rules, if you could link to a running test case showing the issue so we can offer some help. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • schongschong Posts: 3Questions: 1Answers: 0

    Thanks for letting me know. I have reproduced the example here http://jsfiddle.net/soongsta/smdL9kbx/
    So the combobox with the page sizes disappear when I added the lines :
    dom: 'Bfrtip',
    buttons: [
    'copyHtml5',
    'excelHtml5',
    'csvHtml5',
    'pdfHtml5'
    ]
    When I remove the above lines, it comes back

  • kthorngrenkthorngren Posts: 20,144Questions: 26Answers: 4,736
    Answer ✓

    You need to add the l to the dom option to display the page length, for example:

    dom: 'Blfrtip',

    Kevin

  • schongschong Posts: 3Questions: 1Answers: 0

    Thanks, that worked :-)

This discussion has been closed.