How to change number of rows per page (add drop-down list) in editor examples?

How to change number of rows per page (add drop-down list) in editor examples?

aspraspr Posts: 2Questions: 1Answers: 0
edited February 2016 in Editor

Hello,
I'm new to editor/datatables and I'd like to change number of rows per page (add drop-down list) in editor examples from datatables website. What should I add to eg. inline editing example? And where?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,864Questions: 1Answers: 10,136 Site admin
    Answer ✓

    The page length menu is added tot he document using the l option of the dom parameter. Most of the examples don't specify it, instead showing the buttons, but there is no reason you can't have both:

    dom: "Blfrtip",

    Or if you want a page length menu which is visually the same as the editing buttons you can use the pageLength button type - example.

    Allan

  • aspraspr Posts: 2Questions: 1Answers: 0

    Works fine, thank you

This discussion has been closed.