Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #28661
Closed
Open
Issue created Apr 15, 2019 by Administrator@rootContributor

Allow us to pass other Popper.js configurations to dropdowns and tooltips

Created by: istratos

Popper.js provides a lot of configuration that can be used for our utilities, but most of them are not being used by the plugins themselves.

I'm in a situation where I require a dropdown to be of fixed position rather than absolute, popper allows this via:

Popper.Defaults.positionFixed = true

However that would change everything that is using Popper in my page. I can't really change this configuration per-element basis.

It would be of great help to let us pass a second param to the built in functions, being the Popper options (not supported in the plugin) to be merged in the Popper config when initializing an object.

$('.dropdown-toggle').dropdown({
    boundary:'viewport' // Plugin config
}, {
    positionFixed: true // Popper config
});
Assignee
Assign to
Time tracking