Can only see records per page OR export buttons

Can only see records per page OR export buttons

mediatomcatmediatomcat Posts: 7Questions: 2Answers: 0

I am trying to add export buttons, but it seems I can only have the export buttons displayed or the records per page drop down, not both at the same time. Can anyone offer any help on this?

This question has an accepted answers - jump to answer

Answers

  • mediatomcatmediatomcat Posts: 7Questions: 2Answers: 0

    Any ideas anyone...

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin
    Answer ✓

    Just add the l option into your dom option. As the documentation describes, each letter in that parameter is a feature. If you remove the l option (as most options do) then the length menu is removed.

    This has come up a number of times, so I've recently added a new button type to Buttons which will perform the same actions as the default length menu, but with styling fully integrated into Buttons. That will be available when Buttons 1.1.0 is released.

    Allan

  • mediatomcatmediatomcat Posts: 7Questions: 2Answers: 0

    Worked a treat. Thank Allen.

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    For reference, Buttons 1.1.0 is now available with pageLength built in. There is an example available here.

    Allan

This discussion has been closed.