Skip to content

Can't get right-aligned colvis dropdown #140

@miken32

Description

@miken32

According to latest Bootstrap 4 documentation, I should be able to add .dropdown-menu-right to the existing div.dropdown-menu to get a right-aligned menu, but this is not working. I suspect something in DT is overriding the Bootstrap positioning code (positioning for Bootstrap dropdowns is done by popper.js, not CSS.)

I simply add this before creating the table with buttons:

$.fn.dataTable.Buttons.defaults.dom.collection.className += " dropdown-menu-right";

And I see the class appears on the element as expected, but there's no positioning change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions