column_visibility dropdown position under #id or at the end of body tag

column_visibility dropdown position under #id or at the end of body tag

CreatorsGururCreatorsGurur Posts: 1Questions: 1Answers: 0

demo:

https://datatables.net/extensions/buttons/examples/column_visibility/simple.html

Description of problem:

in this latest version in demo, when you click on column visibility button, dropdown .dt-button-collection gets appended/added under div .dt-buttons.
but, i old version .dt-button-collection gets appended/added at the end of body.

is there any option available to change the position of dropdown div .dt-button-collection? otherwise i will need to change the complete template structure.

Answers

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin

    No sorry there is no option for that.

    We did it that way as there were issues with the display of the buttons if they were inside a scrolling container - keeping it aligned when attached to the body is non-trivial.

    Allan

Sign In or Register to comment.